aboutsummaryrefslogtreecommitdiff
path: root/src/reg.c
diff options
context:
space:
mode:
authorame <[email protected]>2023-12-04 01:04:57 -0600
committerame <[email protected]>2023-12-04 01:04:57 -0600
commit0cb307c50930d9aba2b1a6af46c1da75943778d3 (patch)
tree054f19eb9afeb242539cdf17bbed77898220c0cc /src/reg.c
parent7eb07ccdca178abffe5ffccf686b4f818db3601d (diff)
crypto stuff and (some) file io
Diffstat (limited to 'src/reg.c')
-rw-r--r--src/reg.c5
1 files changed, 5 insertions, 0 deletions
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;