aboutsummaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-15 11:12:32 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-08-15 11:12:32 -0300
commit5e8a9e324ccdba03b326f8a8fafa0446042975a5 (patch)
tree0f752977249376dffd9a65690c1663be81166825 /lbaselib.c
parent16ddf86168998d500283e160977ef5ecea72c915 (diff)
downloadlua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.gz
lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.bz2
lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.zip
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lbaselib.c b/lbaselib.c
index 00f613cf..d4a93005 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbaselib.c,v 1.179 2005/07/07 15:48:29 roberto Exp roberto $ 2** $Id: lbaselib.c,v 1.180 2005/07/12 18:15:11 roberto Exp roberto $
3** Basic library 3** Basic library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -602,7 +602,7 @@ static void auxopen (lua_State *L, const char *name,
602 602
603static void base_open (lua_State *L) { 603static void base_open (lua_State *L) {
604 lua_pushvalue(L, LUA_GLOBALSINDEX); 604 lua_pushvalue(L, LUA_GLOBALSINDEX);
605 luaL_openlib(L, NULL, base_funcs, 0); /* open lib into global table */ 605 luaL_register(L, NULL, base_funcs); /* open lib into global table */
606 lua_pushliteral(L, LUA_VERSION); 606 lua_pushliteral(L, LUA_VERSION);
607 lua_setglobal(L, "_VERSION"); /* set global _VERSION */ 607 lua_setglobal(L, "_VERSION"); /* set global _VERSION */
608 /* `ipairs' and `pairs' need auxiliary functions as upvalues */ 608 /* `ipairs' and `pairs' need auxiliary functions as upvalues */
@@ -627,7 +627,7 @@ static void base_open (lua_State *L) {
627 627
628LUALIB_API int luaopen_base (lua_State *L) { 628LUALIB_API int luaopen_base (lua_State *L) {
629 base_open(L); 629 base_open(L);
630 luaL_openlib(L, LUA_COLIBNAME, co_funcs, 0); 630 luaL_register(L, LUA_COLIBNAME, co_funcs);
631 return 2; 631 return 2;
632} 632}
633 633