diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-15 11:12:32 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-08-15 11:12:32 -0300 |
commit | 5e8a9e324ccdba03b326f8a8fafa0446042975a5 (patch) | |
tree | 0f752977249376dffd9a65690c1663be81166825 /ltests.c | |
parent | 16ddf86168998d500283e160977ef5ecea72c915 (diff) | |
download | lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.gz lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.tar.bz2 lua-5e8a9e324ccdba03b326f8a8fafa0446042975a5.zip |
luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.26 2005/07/11 14:00:59 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.27 2005/07/12 14:32:08 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -730,7 +730,7 @@ static int loadlib (lua_State *L) { | |||
730 | lua_State *L1 = cast(lua_State *, | 730 | lua_State *L1 = cast(lua_State *, |
731 | cast(unsigned long, luaL_checknumber(L, 1))); | 731 | cast(unsigned long, luaL_checknumber(L, 1))); |
732 | lua_pushvalue(L1, LUA_GLOBALSINDEX); | 732 | lua_pushvalue(L1, LUA_GLOBALSINDEX); |
733 | luaL_openlib(L1, NULL, libs, 0); | 733 | luaL_register(L1, NULL, libs); |
734 | return 0; | 734 | return 0; |
735 | } | 735 | } |
736 | 736 | ||
@@ -1161,7 +1161,7 @@ int luaB_opentests (lua_State *L) { | |||
1161 | lua_assert(ud == cast(void *, &memcontrol)); | 1161 | lua_assert(ud == cast(void *, &memcontrol)); |
1162 | lua_atpanic(L, l_panic); | 1162 | lua_atpanic(L, l_panic); |
1163 | lua_state = L; /* keep first state to be opened */ | 1163 | lua_state = L; /* keep first state to be opened */ |
1164 | luaL_openlib(L, "T", tests_funcs, 0); | 1164 | luaL_register(L, "T", tests_funcs); |
1165 | atexit(fim); | 1165 | atexit(fim); |
1166 | return 0; | 1166 | return 0; |
1167 | } | 1167 | } |