diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.84 2006/08/07 19:14:30 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.85 2006/08/30 13:19:58 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -276,7 +276,7 @@ | |||
276 | #include <readline/history.h> | 276 | #include <readline/history.h> |
277 | #define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) | 277 | #define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL) |
278 | #define lua_saveline(L,idx) \ | 278 | #define lua_saveline(L,idx) \ |
279 | if (lua_strlen(L,idx) > 0) /* non-empty line? */ \ | 279 | if (lua_objlen(L,idx) > 0) /* non-empty line? */ \ |
280 | add_history(lua_tostring(L, idx)); /* add it to history */ | 280 | add_history(lua_tostring(L, idx)); /* add it to history */ |
281 | #define lua_freeline(L,b) ((void)L, free(b)) | 281 | #define lua_freeline(L,b) ((void)L, free(b)) |
282 | #else | 282 | #else |