kmod: bump to version 24
[buildroot-gz.git] / package / lua / 5.3.4 / 0011-linenoise.patch
blob574e6c8f0b0383188951927e9dadd80dccac0a51
1 Add support of linenoise (replace readline)
3 see discussion, http://lua-users.org/lists/lua-l/2010-03/msg00879.html
5 Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
7 Index: b/src/lua.c
8 ===================================================================
9 --- a/src/lua.c
10 +++ b/src/lua.c
11 @@ -85,6 +85,13 @@
12 #define lua_saveline(L,line) ((void)L, add_history(line))
13 #define lua_freeline(L,b) ((void)L, free(b))
15 +#elif defined(LUA_USE_LINENOISE)
17 +#include <linenoise.h>
18 +#define lua_readline(L,b,p) ((void)L, ((b)=linenoise(p)) != NULL)
19 +#define lua_saveline(L,line) ((void)L, linenoiseHistoryAdd(line))
20 +#define lua_freeline(L,b) ((void)L, free(b))
22 #else /* }{ */
24 #define lua_readline(L,b,p) \