PostGIS  2.1.10dev-r@@SVN_REVISION@@
static GeomCache* PrepGeomCacheAllocator ( )
static

Definition at line 390 of file lwgeom_geos_prepared.c.

References PrepGeomCache::context_statement, and PrepGeomCache::type.

391 {
392  PrepGeomCache* prepcache = palloc(sizeof(PrepGeomCache));
393  memset(prepcache, 0, sizeof(PrepGeomCache));
394  prepcache->context_statement = CurrentMemoryContext;
395  prepcache->type = PREP_CACHE_ENTRY;
396  return (GeomCache*)prepcache;
397 }
MemoryContext context_statement