fi
])
-lua_objects="apr_lua.lo config.lo mod_lua.lo request.lo vmprep.lo"
+lua_objects="lua_apr.lo lua_config.lo mod_lua.lo lua_request.lo lua_vmprep.lo"
APACHE_MODULE(lua, Apache Lua Framework, $lua_objects, , no,
[
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
-#include "apr_lua.h"
+#include "lua_apr.h"
/**
* make a userdata out of a C pointer, and vice versa
-#ifndef _APR_LUA_H_
-#define _APR_LUA_H_
+#ifndef _LUA_APR_H_
+#define _LUA_APR_H_
int apr_lua_init(lua_State *L, apr_pool_t *p);
apr_table_t* check_apr_table(lua_State* L, int index);
void apl_push_apr_table(lua_State* L, const char *name, apr_table_t *t);
-#endif
+#endif /* !_LUA_APR_H_ */
* limitations under the License.
*/
-#include "config.h"
-#include "vmprep.h"
+#include "lua_config.h"
+#include "lua_vmprep.h"
static apw_dir_cfg* check_dir_config(lua_State* L, int index) {
luaL_checkudata(L, index, "Apache2.DirConfig");
#include "mod_lua.h"
#include "util_script.h"
-#include "apr_lua.h"
+#include "lua_apr.h"
typedef char* (*req_field_string_f) (request_rec* r);
typedef int (*req_field_int_f) (request_rec* r);
* limitations under the License.
*/
-#ifndef REQUEST_H
-#define REQUEST_H
+#ifndef _LUA_REQUEST_H_
+#define _LUA_REQUEST_H_
APR_DECLARE(void) apl_push_request(lua_State* L, request_rec* r);
APR_DECLARE(void) apl_load_request_lmodule(lua_State *L, apr_pool_t *p);
} req_fun_t;
-#endif
+#endif /* !_LUA_REQUEST_H_ */
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-#include "vmprep.h"
#include "mod_lua.h"
#include "http_log.h"
#include "apr_reslist.h"
#include "apr_uuid.h"
-#include "config.h"
+#include "lua_config.h"
#include "apr_file_info.h"
/* forward dec'l from this file */
#include <stdlib.h>
#include <ctype.h>
-#include "apr_lua.h"
+#include "lua_apr.h"
APR_IMPLEMENT_OPTIONAL_HOOK_RUN_ALL(apl, AP_LUA, int, lua_open,
(lua_State *L, apr_pool_t *p),
#include "lauxlib.h"
#include "lualib.h"
-#include "request.h"
-#include "vmprep.h"
+#include "lua_request.h"
+#include "lua_vmprep.h"
/**