PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ PrepGeomCacheAllocator()

static GeomCache* PrepGeomCacheAllocator ( )
static

Definition at line 422 of file lwgeom_geos_prepared.c.

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

423 {
424  PrepGeomCache* prepcache = palloc(sizeof(PrepGeomCache));
425  memset(prepcache, 0, sizeof(PrepGeomCache));
426  prepcache->context_statement = CurrentMemoryContext;
427  prepcache->type = PREP_CACHE_ENTRY;
428  return (GeomCache*)prepcache;
429 }
MemoryContext context_statement