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

Definition at line 400 of file lwgeom_geos_prepared.c.

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

401 {
402  PrepGeomCache* prepcache = palloc(sizeof(PrepGeomCache));
403  memset(prepcache, 0, sizeof(PrepGeomCache));
404  prepcache->context_statement = CurrentMemoryContext;
405  prepcache->type = PREP_CACHE_ENTRY;
406  return (GeomCache*)prepcache;
407 }
MemoryContext context_statement