diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-03 17:16:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-06-03 17:16:16 -0300 |
commit | eca9fa02d2887d06cee5e2f742f7e3031ac76a51 (patch) | |
tree | d3ed46b827c28728ddc2a974391da76af6f990ec /lua.c | |
parent | e33d7bae45f5b29f83f893ba16a7f78d28b77245 (diff) | |
download | lua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.tar.gz lua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.tar.bz2 lua-eca9fa02d2887d06cee5e2f742f7e3031ac76a51.zip |
small improvement
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
150 | static int incomplete (lua_State *L, int status) { | 150 | static 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 | } |