summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-02-23 00:18:12 -0600
committersanine <sanine.not@pm.me>2023-02-23 00:19:25 -0600
commit668d9bbdb48c3cb474398a8a185a4b5c3679cf9c (patch)
tree9a68836d7a5ae42c02df0d124313518e6983609c
parentcf20cf204aa076a1c174343161427b86cbe14ce6 (diff)
refactor: remove honeysuckle from util
-rw-r--r--src/util/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/util.c b/src/util/util.c
index 52e2a16..6f1ee44 100644
--- a/src/util/util.c
+++ b/src/util/util.c
@@ -1,6 +1,5 @@
#include <lua.h>
#include <lauxlib.h>
-#include <honeysuckle.h>
#include "util.h"
void create_table(lua_State *L, struct honey_tbl_t *tbl)
@@ -48,10 +47,11 @@ void setup_util(lua_State *L, int honey_tbl)
lua_setfield(L, -2, "__gc");
lua_pop(L, 1);
- hs_create_table(L,
- hs_str_cfunc("gc_canary", gc_canary),
- );
-
+ struct honey_tbl_t util[] = {
+ H_FUNC("gc_canary", gc_canary),
+ H_END,
+ };
+ create_table(L, util);
lua_setfield(L, honey_tbl, "util");
}