aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
commitd22526ec30c32f7ed422d2cd63d4b5c426769597 (patch)
treef49002e0365ec2e33b18abaad9c853af2eee05b9 /lua.c
parentbd869c7b3147c277a974c896a5e3a013979ac64e (diff)
downloadlua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.gz
lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.bz2
lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.zip
'lua_strlen' is for compatibility only
Diffstat (limited to 'lua.c')
-rw-r--r--lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua.c b/lua.c
index 425c1290..e0f56fc0 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.161 2006/06/23 16:09:15 roberto Exp roberto $ 2** $Id: lua.c,v 1.162 2006/09/11 14:07:24 roberto Exp roberto $
3** Lua stand-alone interpreter 3** Lua stand-alone interpreter
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -199,7 +199,7 @@ static int loadline (lua_State *L) {
199 if (!pushline(L, 1)) 199 if (!pushline(L, 1))
200 return -1; /* no input */ 200 return -1; /* no input */
201 for (;;) { /* repeat until gets a complete line */ 201 for (;;) { /* repeat until gets a complete line */
202 status = luaL_loadbuffer(L, lua_tostring(L, 1), lua_strlen(L, 1), "=stdin"); 202 status = luaL_loadbuffer(L, lua_tostring(L, 1), lua_objlen(L, 1), "=stdin");
203 if (!incomplete(L, status)) break; /* cannot try to add lines? */ 203 if (!incomplete(L, status)) break; /* cannot try to add lines? */
204 if (!pushline(L, 0)) /* no more input? */ 204 if (!pushline(L, 0)) /* no more input? */
205 return -1; 205 return -1;