Skip to content

Commit

Permalink
Remove SERIALIZED_FORM
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/postgis/trunk@8052 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
pramsey committed Oct 30, 2011
1 parent 32589f9 commit a7f6661
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 436 deletions.
60 changes: 0 additions & 60 deletions liblwgeom/profile.h

This file was deleted.

22 changes: 10 additions & 12 deletions libpgcommon/lwgeom_pg.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,11 @@ extern void pg_unparser_errhint(LWGEOM_UNPARSER_RESULT *lwg_unparser_result);
** GSERIALIED prototypes used outside the index functions
*/

/* Remove the embedded bounding box */
/**
* Remove the embedded bounding box
*/
GSERIALIZED* gserialized_drop_gidx(GSERIALIZED *g);


/**
* Utility method to call the serialization and then set the
* PgSQL varsize header appropriately with the serialized size.
Expand All @@ -109,20 +110,17 @@ GSERIALIZED* geography_serialize(LWGEOM *lwgeom);
*/
extern int pglwgeom_getbox2d_p(const GSERIALIZED *geom, GBOX *box);

/* PG-dependant */

/**
* Utility to convert cstrings to textp pointers
* Convert cstrings (null-terminated byte array) to textp pointers
* (PgSQL varlena structure with VARSIZE header).
*/
text* cstring2text(const char *cstring);
char* text2cstring(const text *textptr);

/*
* Use this macro to extract the char * required
* by most functions from an GSERIALIZED struct.
* (which is an GSERIALIZED w/out int32 size casted to char *)
*/
#define SERIALIZED_FORM(x) ((uint8_t *)VARDATA((x)))
/**
* Convert textp (PgSQL varlena structure with VARSIZE header) to
* cstrings (null-terminated byte array).
*/
char* text2cstring(const text *textptr);

/*
* For PostgreSQL >= 8.5 redefine the STATRELATT macro to its
Expand Down
292 changes: 0 additions & 292 deletions postgis/SERIALIZED_FORM

This file was deleted.

Loading

0 comments on commit a7f6661

Please sign in to comment.