PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ PrepGeomCacheAllocator()

static GeomCache* PrepGeomCacheAllocator ( )
static

Definition at line 436 of file lwgeom_geos_prepared.c.

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

437 {
438  PrepGeomCache* prepcache = palloc(sizeof(PrepGeomCache));
439  memset(prepcache, 0, sizeof(PrepGeomCache));
440  prepcache->context_statement = CurrentMemoryContext;
441  prepcache->type = PREP_CACHE_ENTRY;
442  return (GeomCache*)prepcache;
443 }
MemoryContext context_statement