[geos-commits] r2742 - trunk/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Nov 26 13:29:57 EST 2009
Author: warmerdam
Date: 2009-11-26 13:29:56 -0500 (Thu, 26 Nov 2009)
New Revision: 2742
Modified:
trunk/capi/geos_c.cpp
trunk/capi/geos_c.h.in
trunk/capi/geos_ts_c.cpp
Log:
clarify ownership of returned buffer from wkbwriter
Modified: trunk/capi/geos_c.cpp
===================================================================
--- trunk/capi/geos_c.cpp 2009-11-26 16:32:40 UTC (rev 2741)
+++ trunk/capi/geos_c.cpp 2009-11-26 18:29:56 UTC (rev 2742)
@@ -759,14 +759,14 @@
}
-/* The owner owns the result */
+/* The caller owns the result */
unsigned char*
GEOSWKBWriter_write(WKBWriter *writer, const Geometry *geom, size_t *size)
{
return GEOSWKBWriter_write_r( handle, writer, geom, size );
}
-/* The owner owns the result */
+/* The caller owns the result */
unsigned char*
GEOSWKBWriter_writeHEX(WKBWriter *writer, const Geometry *geom, size_t *size)
{
Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in 2009-11-26 16:32:40 UTC (rev 2741)
+++ trunk/capi/geos_c.h.in 2009-11-26 18:29:56 UTC (rev 2742)
@@ -908,7 +908,7 @@
extern void GEOS_DLL GEOSWKBWriter_destroy_r(GEOSContextHandle_t handle,
GEOSWKBWriter* writer);
-/* The owner owns the results for these two methods! */
+/* The caller owns the results for these two methods! */
extern unsigned char GEOS_DLL *GEOSWKBWriter_write(GEOSWKBWriter* writer, const GEOSGeometry* g, size_t *size);
extern unsigned char GEOS_DLL *GEOSWKBWriter_writeHEX(GEOSWKBWriter* writer, const GEOSGeometry* g, size_t *size);
Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp 2009-11-26 16:32:40 UTC (rev 2741)
+++ trunk/capi/geos_ts_c.cpp 2009-11-26 18:29:56 UTC (rev 2742)
@@ -3621,7 +3621,7 @@
}
-/* The owner owns the result */
+/* The caller owns the result */
unsigned char*
GEOSWKBWriter_write_r(GEOSContextHandle_t extHandle, WKBWriter *writer, const Geometry *geom, size_t *size)
{
@@ -3665,7 +3665,7 @@
return NULL;
}
-/* The owner owns the result */
+/* The caller owns the result */
unsigned char*
GEOSWKBWriter_writeHEX_r(GEOSContextHandle_t extHandle, WKBWriter *writer, const Geometry *geom, size_t *size)
{
More information about the geos-commits
mailing list