diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-10 15:06:58 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-10 15:06:58 -0300 |
| commit | c7b4f447724a7bf64e9522aeaf461cab32a7d023 (patch) | |
| tree | ac6db6a2465b865b20e279ab088f9961018fd1f8 | |
| parent | 44b19075c0fa4310d312147ee1d74dc11ff36eba (diff) | |
| download | lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.tar.gz lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.tar.bz2 lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.zip | |
correct name to open package library
| -rw-r--r-- | linit.c | 4 | ||||
| -rw-r--r-- | loadlib.c | 4 | ||||
| -rw-r--r-- | lualib.h | 4 |
3 files changed, 6 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: linit.c,v 1.10 2005/03/08 13:37:55 roberto Exp roberto $ | 2 | ** $Id: linit.c,v 1.11 2005/04/13 17:24:20 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 | */ |
| @@ -22,7 +22,7 @@ static const luaL_reg lualibs[] = { | |||
| 22 | {LUA_STRLIBNAME, luaopen_string}, | 22 | {LUA_STRLIBNAME, luaopen_string}, |
| 23 | {LUA_MATHLIBNAME, luaopen_math}, | 23 | {LUA_MATHLIBNAME, luaopen_math}, |
| 24 | {LUA_DBLIBNAME, luaopen_debug}, | 24 | {LUA_DBLIBNAME, luaopen_debug}, |
| 25 | {LUA_LOADLIBNAME, luaopen_loadlib}, | 25 | {LUA_LOADLIBNAME, luaopen_package}, |
| 26 | {NULL, NULL} | 26 | {NULL, NULL} |
| 27 | }; | 27 | }; |
| 28 | 28 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.35 2005/08/01 04:21:17 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.36 2005/08/09 17:58:09 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | ** | 5 | ** |
| @@ -583,7 +583,7 @@ static const lua_CFunction loaders[] = | |||
| 583 | {loader_preload, loader_Lua, loader_C, loader_Croot, NULL}; | 583 | {loader_preload, loader_Lua, loader_C, loader_Croot, NULL}; |
| 584 | 584 | ||
| 585 | 585 | ||
| 586 | LUALIB_API int luaopen_loadlib (lua_State *L) { | 586 | LUALIB_API int luaopen_package (lua_State *L) { |
| 587 | int i; | 587 | int i; |
| 588 | /* create new type _LOADLIB */ | 588 | /* create new type _LOADLIB */ |
| 589 | luaL_newmetatable(L, "_LOADLIB"); | 589 | luaL_newmetatable(L, "_LOADLIB"); |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lualib.h,v 1.33 2005/01/10 16:31:30 roberto Exp roberto $ | 2 | ** $Id: lualib.h,v 1.34 2005/04/13 17:24:20 roberto Exp roberto $ |
| 3 | ** Lua standard libraries | 3 | ** Lua standard libraries |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -37,7 +37,7 @@ LUALIB_API int (luaopen_math) (lua_State *L); | |||
| 37 | LUALIB_API int (luaopen_debug) (lua_State *L); | 37 | LUALIB_API int (luaopen_debug) (lua_State *L); |
| 38 | 38 | ||
| 39 | #define LUA_LOADLIBNAME "package" | 39 | #define LUA_LOADLIBNAME "package" |
| 40 | LUALIB_API int (luaopen_loadlib) (lua_State *L); | 40 | LUALIB_API int (luaopen_package) (lua_State *L); |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | /* open all previous libraries */ | 43 | /* open all previous libraries */ |
