aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
commitd22526ec30c32f7ed422d2cd63d4b5c426769597 (patch)
treef49002e0365ec2e33b18abaad9c853af2eee05b9 /luaconf.h
parentbd869c7b3147c277a974c896a5e3a013979ac64e (diff)
downloadlua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.gz
lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.bz2
lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.zip
'lua_strlen' is for compatibility only
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/luaconf.h b/luaconf.h
index e9489dcd..cad62896 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -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