You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rj...@apache.org on 2012/02/01 10:52:00 UTC
svn commit: r1239030 - /httpd/httpd/trunk/modules/lua/mod_lua.h
Author: rjung
Date: Wed Feb 1 09:51:59 2012
New Revision: 1239030
URL: http://svn.apache.org/viewvc?rev=1239030&view=rev
Log:
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.
Modified:
httpd/httpd/trunk/modules/lua/mod_lua.h
Modified: httpd/httpd/trunk/modules/lua/mod_lua.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.h?rev=1239030&r1=1239029&r2=1239030&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.h (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.h Wed Feb 1 09:51:59 2012
@@ -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