From a89b8aee0a966b6f18cfd31536b7dfa1a585bb4d Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Tue, 12 Mar 2024 09:44:00 +1300 Subject: [PATCH] callisto: move luaopen_ prototypes outside of the header Previously they would have been public to any program that wanted to use them. --- callisto.c | 7 +++++++ callisto.h | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/callisto.c b/callisto.c index 03319cf..8d46b10 100644 --- a/callisto.c +++ b/callisto.c @@ -9,6 +9,13 @@ #include "callisto.h" +int luaopen_cl(lua_State *); +int luaopen_environ(lua_State *); +int luaopen_extra(lua_State *); +int luaopen_fs(lua_State *); +int luaopen_json(lua_State *); +int luaopen_process(lua_State *); + static const luaL_Reg loadedlibs[] = { {CALLISTO_CLLIBNAME, luaopen_cl}, {CALLISTO_ENVLIBNAME, luaopen_environ}, diff --git a/callisto.h b/callisto.h index f900042..6eeeb24 100644 --- a/callisto.h +++ b/callisto.h @@ -24,13 +24,6 @@ #define CALLISTO_ENVIRON "environ" -int luaopen_cl(lua_State *); -int luaopen_environ(lua_State *); -int luaopen_extra(lua_State *); -int luaopen_fs(lua_State *); -int luaopen_json(lua_State *); -int luaopen_process(lua_State *); - lua_State *callisto_newstate(void); void callisto_openall(lua_State *); void callisto_openlibs(lua_State *);