]> granicus.if.org Git - apache/commitdiff
Rename all files in mod_lua to have a lua_ prefix, as things like 'config.h' are...
authorPaul Querna <pquerna@apache.org>
Sun, 21 Dec 2008 21:27:01 +0000 (21:27 +0000)
committerPaul Querna <pquerna@apache.org>
Sun, 21 Dec 2008 21:27:01 +0000 (21:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728508 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/config.m4
modules/lua/lua_apr.c [moved from modules/lua/apr_lua.c with 98% similarity]
modules/lua/lua_apr.h [moved from modules/lua/apr_lua.h with 72% similarity]
modules/lua/lua_config.c [moved from modules/lua/config.c with 99% similarity]
modules/lua/lua_config.h [moved from modules/lua/config.h with 100% similarity]
modules/lua/lua_request.c [moved from modules/lua/request.c with 99% similarity]
modules/lua/lua_request.h [moved from modules/lua/request.h with 93% similarity]
modules/lua/lua_vmprep.c [moved from modules/lua/vmprep.c with 99% similarity]
modules/lua/lua_vmprep.h [moved from modules/lua/vmprep.h with 100% similarity]
modules/lua/mod_lua.c
modules/lua/mod_lua.h

index 035f34b1c8ea60cd7d663807e3d1268b7de1edfb..5d123948b7029260b74159cc85a76725644d0574 100644 (file)
@@ -92,7 +92,7 @@ else
 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,
 [
similarity index 98%
rename from modules/lua/apr_lua.c
rename to modules/lua/lua_apr.c
index d248fe88224cd531b0cc7e671bc2dc875dee60f5..655156ed1e42d0cd0e857cc04e95d7220d1a7973 100644 (file)
@@ -4,7 +4,7 @@
 #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
similarity index 72%
rename from modules/lua/apr_lua.h
rename to modules/lua/lua_apr.h
index 07862778afd06f4104def5f5ae91e731a590e2eb..b7bdf53425b8da69d45b3e374814fe7dcf0a3c73 100644 (file)
@@ -1,8 +1,8 @@
-#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_ */
similarity index 99%
rename from modules/lua/config.c
rename to modules/lua/lua_config.c
index c4e1d7eab065838851094941a36e2262db091ee5..7848b06a47aa66836522baa5424806631fd9bbac 100644 (file)
@@ -15,8 +15,8 @@
  * 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");
similarity index 99%
rename from modules/lua/request.c
rename to modules/lua/lua_request.c
index ed6175629f9a762e3c6a6656013e29e9aae3266c..7b555f9b45e691e814671109650156f4faaddd59 100644 (file)
@@ -17,7 +17,7 @@
 
 #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);
similarity index 93%
rename from modules/lua/request.h
rename to modules/lua/lua_request.h
index e4f867c4783f5479a505858226b381137202a3a6..a5ecb44a2697ac1c297185caa494eb74f51967fe 100644 (file)
@@ -15,8 +15,8 @@
  * 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);
@@ -33,5 +33,5 @@ typedef struct {
 } req_fun_t;
 
 
-#endif
+#endif /* !_LUA_REQUEST_H_ */
 
similarity index 99%
rename from modules/lua/vmprep.c
rename to modules/lua/lua_vmprep.c
index bbe288c72a1dd9619bf7b85622c49c39148c0b99..6be8fab11bd3ca24e33cfae42d4cb3fc4e177f81 100644 (file)
  * 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 */
index bde119191e2d92c892cc6b04fe5e023c9eee27a1..b7b77d6b113666c84b17f3b62152f24bc4f07b8a 100644 (file)
@@ -21,7 +21,7 @@
 #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),
index c718544efff8480c2bad68ded8fde8e8e80ee796..0b656faac632592c3727e9df80b33f44284b08d4 100644 (file)
@@ -44,8 +44,8 @@
 #include "lauxlib.h"
 #include "lualib.h"
 
-#include "request.h"
-#include "vmprep.h"
+#include "lua_request.h"
+#include "lua_vmprep.h"
 
 
 /**