[postgis-devel] Naming Nit

strk strk at keybit.net
Thu Jan 8 12:40:43 PST 2009


On Thu, Jan 08, 2009 at 08:18:34PM +0000, Mark Cave-Ayland wrote:
> Paul Ramsey wrote:
> 
...
> >A second nit, we've got
> >
> >extern POINTARRAY *pointArray_construct(uchar *points, char hasz, char 
> >hasm, uint32 npoints);
> >which lives in lwgeom_api.c
> >
> >and
> >
> >extern POINTARRAY *ptarray_construct(char hasz, char hasm, unsigned int 
> >npoints);
> >which lives in ptarray.c
> >
> >w00t!
> 
> ???!

The second version allocates tha actual points, the first doesn't.
The POINTARRAY constructed with the first version doesn't need
deep memory release, the second does.

--strk; 

 GIS & Flash consultant/developer           ()  ASCII Ribbon Campaign
 http://foo.keybit.net/~strk/services.html  /\  Keep it simple! 



More information about the postgis-devel mailing list