luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar

This commit is contained in:
Roberto Ierusalimschy
2005-08-15 11:12:32 -03:00
parent 16ddf86168
commit 5e8a9e324c
10 changed files with 45 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: loadlib.c,v 1.36 2005/08/09 17:58:09 roberto Exp roberto $
** $Id: loadlib.c,v 1.37 2005/08/10 18:06:58 roberto Exp roberto $
** Dynamic library loader for Lua
** See Copyright Notice in lua.h
**
@@ -625,7 +625,7 @@ LUALIB_API int luaopen_package (lua_State *L) {
#endif
lua_setfield(L, -2, "loadlib");
lua_pushvalue(L, LUA_GLOBALSINDEX);
luaL_openlib(L, NULL, ll_funcs, 0); /* open lib into global table */
luaL_register(L, NULL, ll_funcs); /* open lib into global table */
return 1;
}