From 941722cb010393bc117f5d72e5a51b222f959e6c Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Sat, 8 Jul 2023 18:35:59 +1200 Subject: [PATCH] Rename callistoopen_* functions to luaopen_* --- lcallisto.c | 18 +++++++++--------- lcallisto.h | 18 +++++++++--------- lcl.c | 2 +- lenviron.c | 2 +- lextra.c | 2 +- lfile.c | 2 +- ljson.c | 2 +- lmath.c | 2 +- los.c | 2 +- lprocess.c | 2 +- lsocket.c | 2 +- 11 files changed, 27 insertions(+), 27 deletions(-) diff --git a/lcallisto.c b/lcallisto.c index 09dc949..2728220 100644 --- a/lcallisto.c +++ b/lcallisto.c @@ -10,15 +10,15 @@ static const luaL_Reg loadedlibs[] = { - {CALLISTO_CLLIBNAME, callistoopen_cl}, - {CALLISTO_ENVLIBNAME, callistoopen_environ}, - {CALLISTO_EXTLIBNAME, callistoopen_extra}, - {CALLISTO_FILELIBNAME, callistoopen_file}, - {CALLISTO_JSONLIBNAME, callistoopen_json}, - {CALLISTO_MATHLIBNAME, callistoopen_math}, - {CALLISTO_OSLIBNAME, callistoopen_os}, - {CALLISTO_PROCLIBNAME, callistoopen_process}, - {CALLISTO_SOCKLIBNAME, callistoopen_socket}, + {CALLISTO_CLLIBNAME, luaopen_cl}, + {CALLISTO_ENVLIBNAME, luaopen_environ}, + {CALLISTO_EXTLIBNAME, luaopen_extra}, + {CALLISTO_FILELIBNAME, luaopen_file}, + {CALLISTO_JSONLIBNAME, luaopen_json}, + {CALLISTO_MATHLIBNAME, luaopen_math}, + {CALLISTO_OSLIBNAME, luaopen_os}, + {CALLISTO_PROCLIBNAME, luaopen_process}, + {CALLISTO_SOCKLIBNAME, luaopen_socket}, {NULL, NULL} }; diff --git a/lcallisto.h b/lcallisto.h index f2aaa30..468029e 100644 --- a/lcallisto.h +++ b/lcallisto.h @@ -27,15 +27,15 @@ #define CALLISTO_ENVIRON "environ" -int callistoopen_cl(lua_State *); -int callistoopen_environ(lua_State *); -int callistoopen_extra(lua_State *); -int callistoopen_file(lua_State *); -int callistoopen_json(lua_State *); -int callistoopen_math(lua_State *); -int callistoopen_os(lua_State *); -int callistoopen_process(lua_State *); -int callistoopen_socket(lua_State *); +int luaopen_cl(lua_State *); +int luaopen_environ(lua_State *); +int luaopen_extra(lua_State *); +int luaopen_file(lua_State *); +int luaopen_json(lua_State *); +int luaopen_math(lua_State *); +int luaopen_os(lua_State *); +int luaopen_process(lua_State *); +int luaopen_socket(lua_State *); lua_State *callisto_newstate(void); void callisto_openlibs(lua_State *); diff --git a/lcl.c b/lcl.c index 9fd610b..3f90dc7 100644 --- a/lcl.c +++ b/lcl.c @@ -291,7 +291,7 @@ static const luaL_Reg cllib[] = { }; int -callistoopen_cl(lua_State *L) +luaopen_cl(lua_State *L) { luaL_newlib(L, cllib); return 0; diff --git a/lenviron.c b/lenviron.c index e38b256..94cb3c6 100644 --- a/lenviron.c +++ b/lenviron.c @@ -99,7 +99,7 @@ static const luaL_Reg mt[] = { }; int -callistoopen_environ(lua_State *L) +luaopen_environ(lua_State *L) { const luaL_Reg *lib; diff --git a/lextra.c b/lextra.c index df10fc6..f75001f 100644 --- a/lextra.c +++ b/lextra.c @@ -61,7 +61,7 @@ static const luaL_Reg extlib[] = { }; int -callistoopen_extra(lua_State *L) +luaopen_extra(lua_State *L) { newoverride(L, extlib, CALLISTO_EXTLIBNAME); return 1; diff --git a/lfile.c b/lfile.c index 29a4f22..5dfbf74 100644 --- a/lfile.c +++ b/lfile.c @@ -350,7 +350,7 @@ static const luaL_Reg filelib[] = { }; int -callistoopen_file(lua_State *L) +luaopen_file(lua_State *L) { luaL_newlib(L, filelib); return 1; diff --git a/ljson.c b/ljson.c index b59dac6..d7a0e0a 100644 --- a/ljson.c +++ b/ljson.c @@ -140,7 +140,7 @@ local t = json.decode(j) int luaopen_cjson(lua_State *L); int -callistoopen_json(lua_State *L) +luaopen_json(lua_State *L) { luaopen_cjson(L); return 1; diff --git a/lmath.c b/lmath.c index 4e86786..ee305c8 100644 --- a/lmath.c +++ b/lmath.c @@ -41,7 +41,7 @@ static const luaL_Reg mathlib[] = { }; int -callistoopen_math(lua_State *L) +luaopen_math(lua_State *L) { newoverride(L, mathlib, CALLISTO_MATHLIBNAME); return 0; diff --git a/los.c b/los.c index e46401e..21fcc97 100644 --- a/los.c +++ b/los.c @@ -47,7 +47,7 @@ static const luaL_Reg oslib[] = { }; int -callistoopen_os(lua_State *L) +luaopen_os(lua_State *L) { newoverride(L, oslib, CALLISTO_OSLIBNAME); return 1; diff --git a/lprocess.c b/lprocess.c index d88f2d5..69219bb 100644 --- a/lprocess.c +++ b/lprocess.c @@ -285,7 +285,7 @@ static const luaL_Reg proclib[] = { }; int -callistoopen_process(lua_State *L) +luaopen_process(lua_State *L) { luaL_newlib(L, proclib); return 0; diff --git a/lsocket.c b/lsocket.c index 6abebe3..d4ba7e6 100644 --- a/lsocket.c +++ b/lsocket.c @@ -17,7 +17,7 @@ int luaopen_socket_core(lua_State *L); int -callistoopen_socket(lua_State *L) +luaopen_socket(lua_State *L) { luaopen_socket_core(L); return 1;