1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

Attempt to make mod_lua compile under a strict c89 compiler by moving all variable declarations to be before code.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728539 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Paul Querna
2008-12-21 22:38:07 +00:00
parent afa287e242
commit ce336c773a
5 changed files with 61 additions and 41 deletions

View File

@@ -20,15 +20,17 @@
static apl_dir_cfg *check_dir_config(lua_State *L, int index)
{
apl_dir_cfg *cfg;
luaL_checkudata(L, index, "Apache2.DirConfig");
apl_dir_cfg *cfg = (apl_dir_cfg *) lua_unboxpointer(L, index);
cfg = (apl_dir_cfg *) lua_unboxpointer(L, index);
return cfg;
}
static cmd_parms *check_cmd_parms(lua_State *L, int index)
{
cmd_parms *cmd;
luaL_checkudata(L, index, "Apache2.CommandParameters");
cmd_parms *cmd = (cmd_parms *) lua_unboxpointer(L, index);
cmd = (cmd_parms *) lua_unboxpointer(L, index);
return cmd;
}