[prev in list] [next in list] [prev in thread] [next in thread]
List: geos-commits
Subject: [geos-commits] r2742 - trunk/capi
From: svn_geos () osgeo ! org
Date: 2009-11-26 18:29:57
Message-ID: 20091126182957.C9B7BE0068D () lists ! osgeo ! org
[Download RAW message or body]
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) {
_______________________________________________
geos-commits mailing list
geos-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic