diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-26 14:36:32 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-26 14:36:32 -0300 |
| commit | 3390f9a35ac66d01c7bb0114083a4cb384783ff5 (patch) | |
| tree | b1726d230beac862c99b0b1f2361484b2cf7ad3b /linit.c | |
| parent | 9273fbd131eb0be7d4e7ca4f44345b41f8a557cf (diff) | |
| download | lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.tar.gz lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.tar.bz2 lua-3390f9a35ac66d01c7bb0114083a4cb384783ff5.zip | |
detail
Diffstat (limited to 'linit.c')
| -rw-r--r-- | linit.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: linit.c,v 1.11 2005/04/13 17:24:20 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.12 2005/08/10 18:06:58 roberto Exp roberto $ |
| 3 | ** Initialization of libraries for lua.c | 3 | ** Initialization of libraries for lua.c |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -14,7 +14,7 @@ | |||
| 14 | #include "lauxlib.h" | 14 | #include "lauxlib.h" |
| 15 | 15 | ||
| 16 | 16 | ||
| 17 | static const luaL_reg lualibs[] = { | 17 | static const luaL_Reg lualibs[] = { |
| 18 | {"", luaopen_base}, | 18 | {"", luaopen_base}, |
| 19 | {LUA_TABLIBNAME, luaopen_table}, | 19 | {LUA_TABLIBNAME, luaopen_table}, |
| 20 | {LUA_IOLIBNAME, luaopen_io}, | 20 | {LUA_IOLIBNAME, luaopen_io}, |
| @@ -28,7 +28,7 @@ static const luaL_reg lualibs[] = { | |||
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | LUALIB_API void luaL_openlibs (lua_State *L) { | 30 | LUALIB_API void luaL_openlibs (lua_State *L) { |
| 31 | const luaL_reg *lib = lualibs; | 31 | const luaL_Reg *lib = lualibs; |
| 32 | for (; lib->func; lib++) { | 32 | for (; lib->func; lib++) { |
| 33 | lua_pushcfunction(L, lib->func); | 33 | lua_pushcfunction(L, lib->func); |
| 34 | lua_pushstring(L, lib->name); | 34 | lua_pushstring(L, lib->name); |
