diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/LuaJIT-1.1.7/src/linit.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/libraries/LuaJIT-1.1.7/src/linit.c b/libraries/LuaJIT-1.1.7/src/linit.c deleted file mode 100644 index db24ccd..0000000 --- a/libraries/LuaJIT-1.1.7/src/linit.c +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | /* | ||
2 | ** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ | ||
3 | ** Initialization of libraries for lua.c | ||
4 | ** See Copyright Notice in lua.h | ||
5 | */ | ||
6 | |||
7 | |||
8 | #define linit_c | ||
9 | #define LUA_LIB | ||
10 | |||
11 | #include "lua.h" | ||
12 | |||
13 | #include "lualib.h" | ||
14 | #include "lauxlib.h" | ||
15 | |||
16 | |||
17 | static const luaL_Reg lualibs[] = { | ||
18 | {"", luaopen_base}, | ||
19 | {LUA_LOADLIBNAME, luaopen_package}, | ||
20 | {LUA_TABLIBNAME, luaopen_table}, | ||
21 | {LUA_IOLIBNAME, luaopen_io}, | ||
22 | {LUA_OSLIBNAME, luaopen_os}, | ||
23 | {LUA_STRLIBNAME, luaopen_string}, | ||
24 | {LUA_MATHLIBNAME, luaopen_math}, | ||
25 | {LUA_DBLIBNAME, luaopen_debug}, | ||
26 | {LUA_JITLIBNAME, luaopen_jit}, | ||
27 | {NULL, NULL} | ||
28 | }; | ||
29 | |||
30 | |||
31 | LUALIB_API void luaL_openlibs (lua_State *L) { | ||
32 | const luaL_Reg *lib = lualibs; | ||
33 | for (; lib->func; lib++) { | ||
34 | lua_pushcfunction(L, lib->func); | ||
35 | lua_pushstring(L, lib->name); | ||
36 | lua_call(L, 1, 0); | ||
37 | } | ||
38 | } | ||
39 | |||