From 0cb307c50930d9aba2b1a6af46c1da75943778d3 Mon Sep 17 00:00:00 2001 From: ame Date: Mon, 4 Dec 2023 01:04:57 -0600 Subject: crypto stuff and (some) file io --- src/reg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/reg.c') diff --git a/src/reg.c b/src/reg.c index cdc6267..50dc8b9 100644 --- a/src/reg.c +++ b/src/reg.c @@ -1,6 +1,7 @@ #include "lua.h" #include "table.h" #include "crypto.h" +#include "io.h" int luaopen_llib(lua_State* L) { lua_newtable(L); @@ -13,6 +14,10 @@ int luaopen_llib(lua_State* L) { lua_newtable(L); luaL_register(L, NULL, crypto_function_list); lua_setfield(L, 2, "crypto"); + + lua_newtable(L); + luaL_register(L, NULL, io_function_list); + lua_setfield(L, 2, "io"); //make llib global lua_setglobal(L, "llib"); return 1; -- cgit v1.2.3