]> granicus.if.org Git - apache/commitdiff
Remove luaL_reg macro definition no longer needed
authorRainer Jung <rjung@apache.org>
Wed, 1 Feb 2012 09:51:59 +0000 (09:51 +0000)
committerRainer Jung <rjung@apache.org>
Wed, 1 Feb 2012 09:51:59 +0000 (09:51 +0000)
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

modules/lua/mod_lua.h

index 29ab38afe3ae8e1b932c19eb6058331aadb9892c..5394f7a48501d621e721d78134a3c3d4f7c3aee4 100644 (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