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

Definition at line 431 of file lwgeom_geos_prepared.c.

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

432 {
433  PrepGeomCache* prepcache = palloc(sizeof(PrepGeomCache));
434  memset(prepcache, 0, sizeof(PrepGeomCache));
435  prepcache->context_statement = CurrentMemoryContext;
436  prepcache->type = PREP_CACHE_ENTRY;
437  return (GeomCache*)prepcache;
438 }
MemoryContext context_statement