Hello, The attached patch Updates ELinks for Lua 5.2
-- أحمد المحمودي (Ahmed El-Mahmoudy) Digital design engineer GPG KeyID: 0xEDDDA1B7 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7
Index: elinks-0.13~20140630/configure =================================================================== --- elinks-0.13~20140630.orig/configure +++ elinks-0.13~20140630/configure @@ -9676,7 +9676,7 @@ if test -z "$disable_lua"; then withval=""; fi for luadir in "$withval" "" /usr /usr/local; do - for suffix in "" 5.1 51; do + for suffix in "" 5.2 52; do if test "$cf_result" = no && ( test -f "$luadir/include/lua.h" || \ test -f "$luadir/include/lua$suffix/lua.h" ) ; then LUA_LIBS="-L$luadir/lib -llua$suffix -lm" Index: elinks-0.13~20140630/src/scripting/lua/hooks.c =================================================================== --- elinks-0.13~20140630.orig/src/scripting/lua/hooks.c +++ elinks-0.13~20140630/src/scripting/lua/hooks.c @@ -144,7 +144,7 @@ script_hook_pre_format_html(va_list ap, if (err) return EVENT_HOOK_STATUS_NEXT; if (lua_isstring(L, -1)) { - int len = lua_strlen(L, -1); + int len = luaL_len(L, -1); add_fragment(cached, 0, (unsigned char *) lua_tostring(L, -1), len); normalize_cache_entry(cached, len);
signature.asc
Description: Digital signature
-- http://lists.linuxfromscratch.org/listinfo/elinks-dev Unsubscribe: See the above information page