summaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-03 17:11:41 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-06-03 17:11:41 -0300
commitad7103ea3aed7f40a5cf7055af253b34320134bc (patch)
tree978a750ba9c4cb990ece1fe6280f3806acbe6fce /ltests.c
parent0079e0f57ce2bd4dc40b9b7c5831c58764a7938f (diff)
downloadlua-ad7103ea3aed7f40a5cf7055af253b34320134bc.tar.gz
lua-ad7103ea3aed7f40a5cf7055af253b34320134bc.tar.bz2
lua-ad7103ea3aed7f40a5cf7055af253b34320134bc.zip
lua_load* defined in auxlib (and so renamed to luaL_load*)
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltests.c b/ltests.c
index 02b74eb2..c348a87c 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.121 2002/05/13 13:10:04 roberto Exp roberto $ 2** $Id: ltests.c,v 1.122 2002/05/16 14:59:49 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*/
@@ -397,7 +397,7 @@ static int doonnewstack (lua_State *L) {
397 lua_State *L1 = lua_newthread(L); 397 lua_State *L1 = lua_newthread(L);
398 size_t l; 398 size_t l;
399 const char *s = luaL_check_lstr(L, 1, &l); 399 const char *s = luaL_check_lstr(L, 1, &l);
400 int status = lua_loadbuffer(L1, s, l, s); 400 int status = luaL_loadbuffer(L1, s, l, s);
401 if (status == 0) 401 if (status == 0)
402 status = lua_pcall(L1, 0, 0, 0); 402 status = lua_pcall(L1, 0, 0, 0);
403 lua_pushnumber(L, status); 403 lua_pushnumber(L, status);
@@ -641,10 +641,10 @@ static int testC (lua_State *L) {
641 else if EQ("loadstring") { 641 else if EQ("loadstring") {
642 size_t sl; 642 size_t sl;
643 const char *s = luaL_check_lstr(L, getnum, &sl); 643 const char *s = luaL_check_lstr(L, getnum, &sl);
644 lua_loadbuffer(L, s, sl, s); 644 luaL_loadbuffer(L, s, sl, s);
645 } 645 }
646 else if EQ("loadfile") { 646 else if EQ("loadfile") {
647 lua_loadfile(L, luaL_check_string(L, getnum)); 647 luaL_loadfile(L, luaL_check_string(L, getnum));
648 } 648 }
649 else if EQ("setmetatable") { 649 else if EQ("setmetatable") {
650 lua_setmetatable(L, getnum); 650 lua_setmetatable(L, getnum);