]> granicus.if.org Git - apache/commit
Improve Lua 5.2.0 compatibility.
authorRainer Jung <rjung@apache.org>
Wed, 1 Feb 2012 13:17:46 +0000 (13:17 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 1 Feb 2012 13:17:46 +0000 (13:17 +0000)
commita6a102f9d8705c872dbdc8efae0fc9bb03b9114d
treec656c15b01558db0e59ecfdd446da8f334e0c366
parentfc83e788bbab3b716f8c52b7f3c6d8b9073ab7ab
Improve Lua 5.2.0 compatibility.

This is not yet complete. Building should
still work with Lua 5.1.4, but needs
-DLUA_COMPAT_ALL in CPPFLAGS when compiled
against 5.2.0. Automatically handling
this in configure is still a TODO.

Backport from trunk of the following revisions:

r1221205: Make mod_lua compile with lua 5.2.x.
MOdified patch submitted by NormW (nornw gknw net).

r1239029: luaL_reg was already deprecated in Lua 5.1.4.
It is gone in Lua 5.2.0 and was replaced by luaL_Reg
which already existed in 5.1.4. So use that one.

r1239030: Remove luaL_reg macro definition no longer needed
and simplify lua_load compatibility macro.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1239120 13f79535-47bb-0310-9956-ffa450edef68
modules/lua/NWGNUmakefile
modules/lua/lua_apr.c
modules/lua/mod_lua.h