Update for Lua 5.2

أحمد المحمودي <[email protected]> Sat, 23 Aug 2014 11:37:00 +0300
Newsgroups gmane.comp.web.links
Message-ID <[email protected]>
--===============5028566348296232486==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="MfFXiAuoTsnnDAfZ"
Content-Disposition: inline


--MfFXiAuoTsnnDAfZ
Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA"
Content-Disposition: inline


--W/nzBZO5zC0uMSeA
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

  The attached patch Updates ELinks for Lua 5.2

--=20
 =E2=80=8E=D8=A3=D8=AD=D9=85=D8=AF =D8=A7=D9=84=D9=85=D8=AD=D9=85=D9=88=D8=
=AF=D9=8A (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7

--W/nzBZO5zC0uMSeA
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="lua52.diff"
Content-Transfer-Encoding: quoted-printable

Index: elinks-0.13~20140630/configure
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- elinks-0.13~20140630.orig/configure
+++ elinks-0.13~20140630/configure
@@ -9676,7 +9676,7 @@ if test -z "$disable_lua"; then
 		withval=3D"";
 	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" =3D no && ( test -f "$luadir/include/lua.h" || \
 			   test -f "$luadir/include/lua$suffix/lua.h" ) ; then
 				LUA_LIBS=3D"-L$luadir/lib -llua$suffix -lm"
Index: elinks-0.13~20140630/src/scripting/lua/hooks.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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;
=20
 	if (lua_isstring(L, -1)) {
-		int len =3D lua_strlen(L, -1);
+		int len =3D luaL_len(L, -1);
=20
 		add_fragment(cached, 0, (unsigned char *) lua_tostring(L, -1), len);
 		normalize_cache_entry(cached, len);

--W/nzBZO5zC0uMSeA--

--MfFXiAuoTsnnDAfZ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJT+FKsAAoJELwZapTt3aG3NQUH+QEa5PKfJ3h6//Gy9ekYBA0F
cKhtSKc0B2LkuYLMwD6pbtYFVYNEICq/TyxfSGgpLvIfdUzZL+jO5fkJcpL7P80q
x+3J9VQfu7jFK0Dtz8a9DYEhZoDXQamiZ8JusYZlV/gJqTrAOuYcC88iKz4PlHia
vqbvzvvisyqpw/U6N4wXGZLhnXZn/B1UstMtHgcuDlakImFfg5KT6m8inDTILEh9
RLfQ3m7hr86fuesidUcLRUmlBElyxZ9zhafcuYiGQwknDxsLJ8eMPrWku8JUZQ58
l3BguI/ataV0UBlDoqYZxPhCnh8S6Pj1I9/MI/WSI9ocpX+DGLuL0B16KPX4We4=
=VHF2
-----END PGP SIGNATURE-----

--MfFXiAuoTsnnDAfZ--

--===============5028566348296232486==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
http://lists.linuxfromscratch.org/listinfo/elinks-dev
Unsubscribe: See the above information page

--===============5028566348296232486==--