PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ PrepGeomCacheAllocator()

static GeomCache* PrepGeomCacheAllocator ( )
static

Definition at line 432 of file lwgeom_geos_prepared.c.

References PrepGeomCache::context_statement, and PrepGeomCache::gcache.

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