From 668d9bbdb48c3cb474398a8a185a4b5c3679cf9c Mon Sep 17 00:00:00 2001 From: sanine Date: Thu, 23 Feb 2023 00:18:12 -0600 Subject: refactor: remove honeysuckle from util --- src/util/util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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 #include -#include #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"); } -- cgit v1.2.1