diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-14 01:05:00 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-14 21:33:59 -0700 |
commit | 9d51433ef6329e65938c5655586ea915493ba8ac (patch) | |
tree | a904d02f87629deaddb5cca83ff205eb836e53ba /crawl-ref/source/util/lua/src/linit.c | |
parent | 59134ed3b2808e4e48ecc64ed8579b84431af057 (diff) | |
download | crawl-ref-9d51433ef6329e65938c5655586ea915493ba8ac.tar.gz crawl-ref-9d51433ef6329e65938c5655586ea915493ba8ac.zip |
contribs: moved to contribs dir, added as submodules
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/util/lua/src/linit.c')
-rw-r--r-- | crawl-ref/source/util/lua/src/linit.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/crawl-ref/source/util/lua/src/linit.c b/crawl-ref/source/util/lua/src/linit.c deleted file mode 100644 index c1f90dfab7..0000000000 --- a/crawl-ref/source/util/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); - } -} - |