override CFLAGS += -DUSE_STATS
endif
-OBJS=lwgeom_api.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o lwgeom_box2dfloat4.o lex.yy.o wktparse.tab.o lwgparse.o wktunparse.o $(GEOS_WRAPPER)
+OBJS=lwgeom_pg.o lwgeom_api.o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_geos.o lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o stringBuffer.o lwgeom_box2dfloat4.o lex.yy.o wktparse.tab.o lwgparse.o wktunparse.o $(GEOS_WRAPPER)
OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwgeom.sql lwpostgis.sql
--- /dev/null
+#include "postgres.h"
+
+void *palloc_fn(size_t size)
+{
+ void * result;
+ result = palloc(size);
+ //elog(NOTICE," palloc(%d) = %p", size, result);
+ return result;
+}
+
+void free_fn(void *ptr)
+{
+ //elog(NOTICE," pfree(%p)", ptr);
+ pfree(ptr);
+}
--- /dev/null
+void *palloc_fn(size_t size);
+void free_fn(void *ptr);
+