Commit 70c3acb4 authored by Rainer Jung's avatar Rainer Jung
Browse files

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
parent 188e95f3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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