aboutsummaryrefslogtreecommitdiff
path: root/lbuiltin.c
diff options
context:
space:
mode:
Diffstat (limited to 'lbuiltin.c')
-rw-r--r--lbuiltin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lbuiltin.c b/lbuiltin.c
index f4368f56..348214e4 100644
--- a/lbuiltin.c
+++ b/lbuiltin.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lbuiltin.c,v 1.125 2000/08/31 14:08:27 roberto Exp roberto $ 2** $Id: lbuiltin.c,v 1.126 2000/08/31 16:52:06 roberto Exp roberto $
3** Built-in functions 3** Built-in functions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -92,7 +92,7 @@ int luaB_print (lua_State *L) {
92 lua_error(L, "`tostring' must return a string to `print'"); 92 lua_error(L, "`tostring' must return a string to `print'");
93 if (i>1) fputs("\t", stdout); 93 if (i>1) fputs("\t", stdout);
94 fputs(s, stdout); 94 fputs(s, stdout);
95 lua_settop(L, -1); /* pop result */ 95 lua_pop(L, 1); /* pop result */
96 } 96 }
97 fputs("\n", stdout); 97 fputs("\n", stdout);
98 return 0; 98 return 0;
@@ -201,7 +201,7 @@ int luaB_settagmethod (lua_State *L) {
201 lua_pushnil(L); /* to get its tag */ 201 lua_pushnil(L); /* to get its tag */
202 if (strcmp(event, "gc") == 0 && tag != lua_tag(L, -1)) 202 if (strcmp(event, "gc") == 0 && tag != lua_tag(L, -1))
203 lua_error(L, "deprecated use: cannot set the `gc' tag method from Lua"); 203 lua_error(L, "deprecated use: cannot set the `gc' tag method from Lua");
204 lua_settop(L, -1); /* remove the nil */ 204 lua_pop(L, 1); /* remove the nil */
205 lua_settagmethod(L, tag, event); 205 lua_settagmethod(L, tag, event);
206 return 1; 206 return 1;
207} 207}
@@ -501,7 +501,7 @@ static int luaB_foreach (lua_State *L) {
501 if (lua_call(L, 2, 1) != 0) lua_error(L, NULL); 501 if (lua_call(L, 2, 1) != 0) lua_error(L, NULL);
502 if (!lua_isnil(L, -1)) 502 if (!lua_isnil(L, -1))
503 return 1; 503 return 1;
504 lua_settop(L, -2); /* remove value and result */ 504 lua_pop(L, 2); /* remove value and result */
505 } 505 }
506} 506}
507 507