]> granicus.if.org Git - postgis/commitdiff
C++ style comments removed, fixed return from void function.
authorSandro Santilli <strk@keybit.net>
Mon, 9 Jan 2006 12:39:05 +0000 (12:39 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 9 Jan 2006 12:39:05 +0000 (12:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2266 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/liblwgeom.c

index d6450462f3db31972306a9e36a5ce238eb8e73a2..ab0cd4f4d4b76d658d41e678c7b1332fa1d03e48 100644 (file)
@@ -5,7 +5,7 @@
 #define CONTEXT_PG 0
 #define CONTEXT_SA 1
 
-//#define PGIS_DEBUG_ALLOCS 1
+/* #define PGIS_DEBUG_ALLOCS 1 */
 
 
 #ifdef STANDALONE
@@ -122,7 +122,7 @@ lwalloc(size_t size)
        void *mem = lwalloc_var(size);
        lwnotice("lwalloc: %d@%p", size, mem);
        return mem;
-#else // ! PGIS_DEBUG_ALLOCS
+#else /* ! PGIS_DEBUG_ALLOCS */
        return lwalloc_var(size);
 #endif
 }
@@ -139,7 +139,7 @@ lwrealloc(void *mem, size_t size)
 void
 lwfree(void *mem)
 {
-       return lwfree_var(mem);
+       lwfree_var(mem);
 }
 
 /*
@@ -153,12 +153,16 @@ trim_trailing_zeros(char *str)
        int len;
        int i;
 
-       //lwnotice("input: %s", str);
+#ifdef PGIS_DEBUG
+       lwnotice("input: %s", str);
+#endif
        
        ptr = strchr(str, '.');
-       if ( ! ptr ) return; // no dot, no decimal digits
+       if ( ! ptr ) return; /* no dot, no decimal digits */
 
-       //lwnotice("ptr: %s", ptr);
+#ifdef PGIS_DEBUG
+       lwnotice("ptr: %s", ptr);
+#endif
 
        len = strlen(ptr);
        for (i=len-1; i; i--)
@@ -172,16 +176,19 @@ trim_trailing_zeros(char *str)
                else *totrim = '\0';
        }
        
-       //lwnotice("output: %s", str);
+#ifdef PGIS_DEBUG
+       lwnotice("output: %s", str);
+#endif
 }
 
 char
 getMachineEndian(void)
 {
-       static int endian_check_int = 1; // dont modify this!!!
+       static int endian_check_int = 1; /* dont modify this!!! */
 
-       return *((char *) &endian_check_int); // 0 = big endian | xdr,
-                                             // 1 = little endian | ndr
+       return *((char *) &endian_check_int); /* 0 = big endian | xdr,
+                                              * 1 = little endian | ndr
+                                              */
 }