1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Remove luaL_reg macro definition no longer needed

and simplify lua_load compatibility macro.

Note that in order to successfully compile with
Lua 5.2.0 we still need to add LUA_COMPAT_ALL
to CPPFLAGS. Detection in config.m4 is still
missing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239030 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Jung
2012-02-01 09:51:59 +00:00
parent d0257e2db8
commit 7b167c68d3

View File

@@ -46,9 +46,7 @@
#if LUA_VERSION_NUM > 501
/* Load mode for lua_load() */
#define DFLT_LUA_LOAD_MODE "bt"
#define lua_load(a,b,c,d) lua_load(a,b,c,d,DFLT_LUA_LOAD_MODE)
#define luaL_reg luaL_Reg
#define lua_load(a,b,c,d) lua_load(a,b,c,d,NULL)
#endif
/* Create a set of AP_LUA_DECLARE(type), AP_LUA_DECLARE_NONSTD(type) and