From 4c00c7fb9a648e336973de6d4d40f535dab1410c Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 18 Oct 2023 16:30:38 -0500 Subject: md5 and sorting improvments --- src/reg.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/reg.c (limited to 'src/reg.c') diff --git a/src/reg.c b/src/reg.c new file mode 100644 index 0000000..cdc6267 --- /dev/null +++ b/src/reg.c @@ -0,0 +1,19 @@ +#include "lua.h" +#include "table.h" +#include "crypto.h" + +int luaopen_llib(lua_State* L) { + lua_newtable(L); + + //create .array functions + lua_newtable(L); + luaL_register(L, NULL, array_function_list); + lua_setfield(L, 2, "array"); + + lua_newtable(L); + luaL_register(L, NULL, crypto_function_list); + lua_setfield(L, 2, "crypto"); + //make llib global + lua_setglobal(L, "llib"); + return 1; +} -- cgit v1.2.3