From: Sandro Santilli Date: Wed, 22 Sep 2004 17:13:26 +0000 (+0000) Subject: indentation fixes X-Git-Tag: pgis_1_0_0RC1~387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03dc6cbb48ef65111b0d64205cace1d18a7f10cd;p=postgis indentation fixes git-svn-id: http://svn.osgeo.org/postgis/trunk@885 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_api.c b/lwgeom/lwgeom_api.c index afdcf6c6f..0f6332fcc 100644 --- a/lwgeom/lwgeom_api.c +++ b/lwgeom/lwgeom_api.c @@ -614,22 +614,23 @@ void getPoint3d_p(POINTARRAY *pa, int n, char *point) // copies a point from the point array into the parameter point // z value (if present is not returned) -// NOTE: point is a real POINT3D *not* a pointer -POINT2D getPoint2d(POINTARRAY *pa, int n) +// NOTE: point is a real POINT2D *not* a pointer +POINT2D +getPoint2d(POINTARRAY *pa, int n) { - POINT2D result; - int size; + POINT2D result; + int size; - if ( (n<0) || (n>=pa->npoints)) - { - return result; //error - } + if ( (n<0) || (n>=pa->npoints)) + { + return result; //error + } - size = pointArray_ptsize(pa); + size = pointArray_ptsize(pa); - // this does x,y - memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 ); - return result; + // this does x,y + memcpy(&result.x, &pa->serialized_pointlist[size*n],sizeof(double)*2 ); + return result; } // copies a point from the point array into the parameter point