diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-03 12:28:55 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-03 12:28:55 +0300 |
commit | e4f7f97e6c79cda72dec7cd6fea5b85328b75894 (patch) | |
tree | fabb8e2c981e4052802d31787ea376fefd415267 /src/lua/src/linit.c | |
parent | ee89e29ae10d58a2a3d00641f4e459600a49e09e (diff) | |
download | minetest-e4f7f97e6c79cda72dec7cd6fea5b85328b75894.tar.gz minetest-e4f7f97e6c79cda72dec7cd6fea5b85328b75894.tar.bz2 minetest-e4f7f97e6c79cda72dec7cd6fea5b85328b75894.zip |
Removed lua stuff
Diffstat (limited to 'src/lua/src/linit.c')
-rw-r--r-- | src/lua/src/linit.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/lua/src/linit.c b/src/lua/src/linit.c deleted file mode 100644 index c1f90dfab..000000000 --- a/src/lua/src/linit.c +++ /dev/null @@ -1,38 +0,0 @@ -/* -** $Id: linit.c,v 1.14.1.1 2007/12/27 13:02:25 roberto Exp $ -** Initialization of libraries for lua.c -** See Copyright Notice in lua.h -*/ - - -#define linit_c -#define LUA_LIB - -#include "lua.h" - -#include "lualib.h" -#include "lauxlib.h" - - -static const luaL_Reg lualibs[] = { - {"", luaopen_base}, - {LUA_LOADLIBNAME, luaopen_package}, - {LUA_TABLIBNAME, luaopen_table}, - {LUA_IOLIBNAME, luaopen_io}, - {LUA_OSLIBNAME, luaopen_os}, - {LUA_STRLIBNAME, luaopen_string}, - {LUA_MATHLIBNAME, luaopen_math}, - {LUA_DBLIBNAME, luaopen_debug}, - {NULL, NULL} -}; - - -LUALIB_API void luaL_openlibs (lua_State *L) { - const luaL_Reg *lib = lualibs; - for (; lib->func; lib++) { - lua_pushcfunction(L, lib->func); - lua_pushstring(L, lib->name); - lua_call(L, 1, 0); - } -} - |