diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-15 11:12:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-15 11:12:32 -0300 |
commit | 5e8a9e324ccdba03b326f8a8fafa0446042975a5 (patch) | |
tree | 0f752977249376dffd9a65690c1663be81166825 /loadlib.c | |
parent | 16ddf86168998d500283e160977ef5ecea72c915 (diff) | |
download | lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.gz lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.bz2 lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.zip |
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
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.36 2005/08/09 17:58:09 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.37 2005/08/10 18:06:58 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 | ** |
@@ -625,7 +625,7 @@ LUALIB_API int luaopen_package (lua_State *L) { | |||
625 | #endif | 625 | #endif |
626 | lua_setfield(L, -2, "loadlib"); | 626 | lua_setfield(L, -2, "loadlib"); |
627 | lua_pushvalue(L, LUA_GLOBALSINDEX); | 627 | lua_pushvalue(L, LUA_GLOBALSINDEX); |
628 | luaL_openlib(L, NULL, ll_funcs, 0); /* open lib into global table */ | 628 | luaL_register(L, NULL, ll_funcs); /* open lib into global table */ |
629 | return 1; | 629 | return 1; |
630 | } | 630 | } |
631 | 631 | ||