]> granicus.if.org Git - postgis/commitdiff
Patch up and comment out some DEBUGF lines that don't compile due to changes in function
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 3 Oct 2008 17:37:42 +0000 (17:37 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 3 Oct 2008 17:37:42 +0000 (17:37 +0000)
signatures in liblwgeom

git-svn-id: http://svn.osgeo.org/postgis/trunk@3061 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos_c.c
lwgeom/lwgeom_gist.c
lwgeom/lwgeom_inout.c

index bc67f844cc50b28ae58571d9e8969c6fa2e4811c..56f8efc2bb5fdcf7b5157cad1a453d2a8e09491a 100644 (file)
@@ -3168,7 +3168,9 @@ Datum GEOSnoop(PG_FUNCTION_ARGS)
 
        geom = (PG_LWGEOM *)PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
 
+       /* TODO: serialized_lwgeom_to_ewkt doesn't return string, this needs fixing
        POSTGIS_DEBUGF(2, "GEOSnoop: IN: %s", serialized_lwgeom_to_ewkt(SERIALIZED_FORM(geom), PARSER_CHECK_NONE));
+       */
 
        geosgeom = POSTGIS2GEOS(geom);
        if ( ! geosgeom ) PG_RETURN_NULL();
@@ -3181,8 +3183,10 @@ Datum GEOSnoop(PG_FUNCTION_ARGS)
        result = GEOS2POSTGIS(geosgeom, TYPE_HASZ(geom->type));
        GEOSGeom_destroy(geosgeom);
 
+       /* TODO: serialized_lwgeom_to_ewkt doesn't return string, this needs fixing
        POSTGIS_DEBUGF(4, "GEOSnoop: OUT: %s", serialized_lwgeom_to_ewkt(SERIALIZED_FORM(result), PARSER_CHECK_NONE));
-
+       */
+       
        PG_FREE_IF_COPY(geom, 0);
 
        PG_RETURN_POINTER(result);
@@ -3636,7 +3640,7 @@ PreparedCacheDelete(MemoryContext context)
        if (!pghe)
                elog(ERROR, "PreparedCacheDelete: Trying to delete non-existant hash entry object with MemoryContext key (%p)", (void *)context);
 
-       LWDEBUGF(3, "deleting geom object (%p) and prepared geom object (%p) with MemoryContext key (%p)", pghe.geom, pghe.prepared_geom, context);
+       LWDEBUGF(3, "deleting geom object (%p) and prepared geom object (%p) with MemoryContext key (%p)", pghe->geom, pghe->prepared_geom, context);
 
        /* Free them */
        if( pghe->prepared_geom )
index 10e461eca5c88856dffc7f4d4ce753f4e1f772f9..005c798c8f54417c71a2646c979763880a7a8bca 100644 (file)
@@ -465,8 +465,10 @@ Datum LWGEOM_gist_compress(PG_FUNCTION_ARGS)
                        /* lwgeom serialized form */
                        in = (PG_LWGEOM*)PG_DETOAST_DATUM(entry->key);
 
+                       /* TODO, fix this, serialized_lwgeom_to_wkt doesn't return string anymore, returns status
                        POSTGIS_DEBUGF(4, "GIST: LWGEOM_gist_compress detoasted entry->key: %s", serialized_lwgeom_to_ewkt((uchar *)in+VARHDRSZ, PARSER_CHECK_NONE));
-
+                       */
+                       
                        if (in == NULL)
                        {
                                elog(ERROR, "PG_DETOAST_DATUM(<notnull>) returned NULL ??");
index bc36002a02f801beef5f43e8387f0a3a58931d2d..d4ef4affa72070c992f5bbc18cb752a52bddb7cb 100644 (file)
@@ -313,7 +313,7 @@ Datum WKBFromLWGEOM(PG_FUNCTION_ARGS)
 #endif
 
        LWDEBUGF(3, "Output size is %lu (comp: %lu)",
-               VARSIZE(lwgeom_result), (unsigned long)size);
+               VARSIZE(lwgeom_result), (unsigned long)size_result);
 
        PG_RETURN_POINTER(lwgeom_result);
 }