From bfdcbbcd76c7187022fe2d35675de0b1c92eeadf Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Dec 2005 14:23:32 -0200 Subject: small optimizations (lua_newtable -> lua_createtable) --- linit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linit.c') diff --git a/linit.c b/linit.c index cfc47e66..5f3ceda7 100644 --- a/linit.c +++ b/linit.c @@ -1,5 +1,5 @@ /* -** $Id: linit.c,v 1.12 2005/08/10 18:06:58 roberto Exp roberto $ +** $Id: linit.c,v 1.13 2005/08/26 17:36:32 roberto Exp roberto $ ** Initialization of libraries for lua.c ** See Copyright Notice in lua.h */ @@ -16,13 +16,13 @@ static const luaL_Reg lualibs[] = { {"", luaopen_base}, + {LUA_LOADLIBNAME, luaopen_package}, {LUA_TABLIBNAME, luaopen_table}, {LUA_IOLIBNAME, luaopen_io}, {LUA_OSLIBNAME, luaopen_os}, {LUA_STRLIBNAME, luaopen_string}, {LUA_MATHLIBNAME, luaopen_math}, {LUA_DBLIBNAME, luaopen_debug}, - {LUA_LOADLIBNAME, luaopen_package}, {NULL, NULL} }; -- cgit v1.2.3-55-g6feb