callisto: move luaopen_ prototypes outside of the header

Previously they would have been public to any program that wanted to
use them.
This commit is contained in:
Jeremy Baxter 2024-03-12 09:44:00 +13:00
parent 35773d12f7
commit a89b8aee0a
2 changed files with 7 additions and 7 deletions

View file

@ -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},

View file

@ -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 *);