diff options
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 | } |
