aboutsummaryrefslogtreecommitdiff
path: root/linit.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-29 14:23:32 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-12-29 14:23:32 -0200
commitbfdcbbcd76c7187022fe2d35675de0b1c92eeadf (patch)
treee312b2b1d54e4854693c2e410fb6f0f9bd37c84d /linit.c
parent30eebb2d1cc2cdd14426b9e80a9e1c576b955f6b (diff)
downloadlua-bfdcbbcd76c7187022fe2d35675de0b1c92eeadf.tar.gz
lua-bfdcbbcd76c7187022fe2d35675de0b1c92eeadf.tar.bz2
lua-bfdcbbcd76c7187022fe2d35675de0b1c92eeadf.zip
small optimizations (lua_newtable -> lua_createtable)
Diffstat (limited to 'linit.c')
-rw-r--r--linit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linit.c b/linit.c
index cfc47e66..5f3ceda7 100644
--- a/linit.c
+++ b/linit.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: linit.c,v 1.12 2005/08/10 18:06:58 roberto Exp roberto $ 2** $Id: linit.c,v 1.13 2005/08/26 17:36:32 roberto Exp roberto $
3** Initialization of libraries for lua.c 3** Initialization of libraries for lua.c
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,13 +16,13 @@
16 16
17static const luaL_Reg lualibs[] = { 17static const luaL_Reg lualibs[] = {
18 {"", luaopen_base}, 18 {"", luaopen_base},
19 {LUA_LOADLIBNAME, luaopen_package},
19 {LUA_TABLIBNAME, luaopen_table}, 20 {LUA_TABLIBNAME, luaopen_table},
20 {LUA_IOLIBNAME, luaopen_io}, 21 {LUA_IOLIBNAME, luaopen_io},
21 {LUA_OSLIBNAME, luaopen_os}, 22 {LUA_OSLIBNAME, luaopen_os},
22 {LUA_STRLIBNAME, luaopen_string}, 23 {LUA_STRLIBNAME, luaopen_string},
23 {LUA_MATHLIBNAME, luaopen_math}, 24 {LUA_MATHLIBNAME, luaopen_math},
24 {LUA_DBLIBNAME, luaopen_debug}, 25 {LUA_DBLIBNAME, luaopen_debug},
25 {LUA_LOADLIBNAME, luaopen_package},
26 {NULL, NULL} 26 {NULL, NULL}
27}; 27};
28 28