aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-10 14:58:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-01-10 14:58:11 -0200
commit4ff55457095728b95cc5dcdbab0bca7255bd5387 (patch)
tree661c6a3b6143aa66f2171811a1c87493abb17fc8 /liolib.c
parent595e449537eb6ff17fa6c58742920a1a609fc5c5 (diff)
downloadlua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.gz
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.tar.bz2
lua-4ff55457095728b95cc5dcdbab0bca7255bd5387.zip
new macro pushliteral
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 354dc849..2828cb5b 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.95 2000/12/22 16:57:13 roberto Exp roberto $ 2** $Id: liolib.c,v 1.96 2000/12/22 17:32:28 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -327,7 +327,7 @@ static int io_read (lua_State *L) {
327 if (firstarg > lastarg) { /* no arguments? */ 327 if (firstarg > lastarg) { /* no arguments? */
328 lua_settop(L, 0); /* erase upvalue and other eventual garbage */ 328 lua_settop(L, 0); /* erase upvalue and other eventual garbage */
329 firstarg = lastarg = 1; /* correct indices */ 329 firstarg = lastarg = 1; /* correct indices */
330 lua_pushstring(L, "*l"); /* push default argument */ 330 lua_pushliteral(L, "*l"); /* push default argument */
331 } 331 }
332 else /* ensure stack space for all results and for auxlib's buffer */ 332 else /* ensure stack space for all results and for auxlib's buffer */
333 luaL_checkstack(L, lastarg-firstarg+1+LUA_MINSTACK, "too many arguments"); 333 luaL_checkstack(L, lastarg-firstarg+1+LUA_MINSTACK, "too many arguments");