From 62abe7b846b55d5449c3eaac8b9df5be4279f47e Mon Sep 17 00:00:00 2001 From: yukkop Date: Sat, 19 Apr 2025 22:38:58 +0000 Subject: [PATCH] feat: `hel`: "" -> <> --- package/c/hel/Makefile | 6 +++--- package/c/hel/hel.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package/c/hel/Makefile b/package/c/hel/Makefile index ef2e3f0..47f4bab 100644 --- a/package/c/hel/Makefile +++ b/package/c/hel/Makefile @@ -1,12 +1,11 @@ MODULE_big = hel OBJS = hel.o EXTENSION = hel -DATA = hel--0.1.sql + +DATA = $(wildcard *.sql) PG_CONFIG = pg_config -PGXS := $(shell $(PG_CONFIG) --pgxs) - HECTIC_CONFIG = hectic-config CFLAGS += $(shell $(HECTIC_CONFIG) --cflags) @@ -14,4 +13,5 @@ LDFLAGS += $(shell $(HECTIC_CONFIG) --libs) SHLIB_LINK := $(LIBS) +PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) \ No newline at end of file diff --git a/package/c/hel/hel.c b/package/c/hel/hel.c index 027012a..5027234 100755 --- a/package/c/hel/hel.c +++ b/package/c/hel/hel.c @@ -1,8 +1,8 @@ -#include "postgres.h" -#include "fmgr.h" -#include "utils/builtins.h" -#include "utils/json.h" -#include "hectic.h" +#include +#include +#include +#include +#include #include #ifdef PG_MODULE_MAGIC @@ -304,4 +304,4 @@ Datum render(PG_FUNCTION_ARGS) arena_free(&arena); PG_RETURN_TEXT_P(result); -} \ No newline at end of file +}