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 /loadlib.c | |
| parent | 44b19075c0fa4310d312147ee1d74dc11ff36eba (diff) | |
| download | lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.tar.gz lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.tar.bz2 lua-c7b4f447724a7bf64e9522aeaf461cab32a7d023.zip | |
correct name to open package library
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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"); |
