diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-03 13:01:57 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-05-03 13:01:57 -0300 |
| commit | ad2531a0eefb6950d589c0d508b1f959f3f58d8b (patch) | |
| tree | 706eca04d13655367b3743bd6a4e8c544a2b0928 /lua.c | |
| parent | bc1c718cc02d4a0163110cb21bcbdd2985e4d28d (diff) | |
| download | lua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.tar.gz lua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.tar.bz2 lua-ad2531a0eefb6950d589c0d508b1f959f3f58d8b.zip | |
more complete (and hopefuly more correct) handling of 'sizeof(char)'
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.196 2011/02/07 12:27:13 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.197 2011/03/14 15:39:42 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 | */ |
| @@ -246,7 +246,7 @@ static const char *get_prompt (lua_State *L, int firstline) { | |||
| 246 | 246 | ||
| 247 | /* mark in error messages for incomplete statements */ | 247 | /* mark in error messages for incomplete statements */ |
| 248 | #define EOFMARK "<eof>" | 248 | #define EOFMARK "<eof>" |
| 249 | #define marklen (sizeof(EOFMARK) - 1) | 249 | #define marklen (sizeof(EOFMARK)/sizeof(char) - 1) |
| 250 | 250 | ||
| 251 | static int incomplete (lua_State *L, int status) { | 251 | static int incomplete (lua_State *L, int status) { |
| 252 | if (status == LUA_ERRSYNTAX) { | 252 | if (status == LUA_ERRSYNTAX) { |
