summaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-03 17:16:16 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-06-03 17:16:16 -0300
commiteca9fa02d2887d06cee5e2f742f7e3031ac76a51 (patch)
treed3ed46b827c28728ddc2a974391da76af6f990ec /lua.c
parente33d7bae45f5b29f83f893ba16a7f78d28b77245 (diff)
downloadlua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.tar.gz
lua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.tar.bz2
lua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.zip
small improvement
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 31564ce8..8d2671a0 100644
--- a/lua.c
+++ b/lua.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.c,v 1.143 2005/05/16 21:19:00 roberto Exp roberto $ 2** $Id: lua.c,v 1.144 2005/05/17 19:49:15 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*/
@@ -149,7 +149,7 @@ static const char *get_prompt (lua_State *L, int firstline) {
149 149
150static int incomplete (lua_State *L, int status) { 150static int incomplete (lua_State *L, int status) {
151 if (status == LUA_ERRSYNTAX && 151 if (status == LUA_ERRSYNTAX &&
152 strstr(lua_tostring(L, -1), "<eof>") != NULL) { 152 strstr(lua_tostring(L, -1), LUA_QL("<eof>")) != NULL) {
153 lua_pop(L, 1); 153 lua_pop(L, 1);
154 return 1; 154 return 1;
155 } 155 }