From 5e8a9e324ccdba03b326f8a8fafa0446042975a5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 15 Aug 2005 11:12:32 -0300 Subject: luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar --- loadlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loadlib.c') diff --git a/loadlib.c b/loadlib.c index 55c9d477..d50a587a 100644 --- a/loadlib.c +++ b/loadlib.c @@ -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; } -- cgit v1.2.3-55-g6feb