]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
top_module global variable renamed to ap_top_module
authorDoug MacEachern <dougm@apache.org>
Mon, 26 Mar 2001 15:39:52 +0000 (15:39 +0000)
committerDoug MacEachern <dougm@apache.org>
Mon, 26 Mar 2001 15:39:52 +0000 (15:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88582 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
include/http_config.h
modules/generators/mod_info.c
server/config.c
support/httpd.exp

diff --git a/CHANGES b/CHANGES
index a0dbc839683e87b49c6eea9bf7a08a30fd8a54b6..9fd4fbd65033b81513c5ba66b27cf03883b67276 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
 Changes with Apache 2.0.16-dev
 
+  *) top_module global variable renamed to ap_top_module [Perl]
+
   *) Move ap_set_last_modified to the core.  This is a potentially 
      controversial change, because this is kind of HTTP specific.  However
      many protocols should be able to take advantage of this kind of
index f335bcf66013b098f858c179ea82fd2b9f542174..a54c25040d2c9f524e7345482253bef16d4344cd 100644 (file)
@@ -729,9 +729,9 @@ AP_DECLARE(const char *) ap_check_cmd_context(cmd_parms *cmd, unsigned forbidden
 
 /**
  * The topmost module in the list
- * @defvar module *top_module
+ * @defvar module *ap_top_module
  */
-AP_DECLARE_DATA extern module *top_module;
+AP_DECLARE_DATA extern module *ap_top_module;
 
 /**
  * Array of all statically linked modules
index 9624270c3161c3b7e0d007bc7a7555a55f6f036f..cfe57e2991eb646148954dd0dad18f26e9766a83 100644 (file)
@@ -296,7 +296,7 @@ static int display_info(request_rec *r)
     if (!r->args || strcasecmp(r->args, "list")) {
         if (!r->args) {
             ap_rputs("<tt><a href=\"#server\">Server Settings</a>, ", r);
-            for (modp = top_module; modp; modp = modp->next) {
+            for (modp = ap_top_module; modp; modp = modp->next) {
                 ap_rprintf(r, "<a href=\"#%s\">%s</a>", modp->name, modp->name);
                 if (modp->next) {
                     ap_rputs(", ", r);
@@ -337,7 +337,7 @@ static int display_info(request_rec *r)
                       "<tt>%s</tt><br>\n", SERVER_CONFIG_FILE);
         }
         ap_rputs("<hr><dl>", r);
-        for (modp = top_module; modp; modp = modp->next) {
+        for (modp = ap_top_module; modp; modp = modp->next) {
             if (!r->args || !strcasecmp(modp->name, r->args)) {
                 ap_rprintf(r, "<dt><a name=\"%s\"><strong>Module Name:</strong> "
                             "<font size=+1><tt>%s</tt></a></font>\n",
@@ -439,7 +439,7 @@ static int display_info(request_rec *r)
         }
     }
     else {
-        for (modp = top_module; modp; modp = modp->next) {
+        for (modp = ap_top_module; modp; modp = modp->next) {
             ap_rputs(modp->name, r);
             if (modp->next) {
                 ap_rputs("<br>", r);
index 38abcc8cc86f0ebbbd2b70b67045f976c0efb16d..aa91902690de8b6ac67b66ba43e917dc829b8a71 100644 (file)
@@ -148,7 +148,7 @@ static int total_modules = 0;
  * than DYNAMIC_MODULE_LIMIT.
  */
 static int dynamic_modules = 0;
-AP_DECLARE_DATA module *top_module = NULL;
+AP_DECLARE_DATA module *ap_top_module = NULL;
 AP_DECLARE_DATA module **ap_loaded_modules=NULL;
 
 typedef int (*handler_func) (request_rec *);
@@ -179,7 +179,7 @@ static ap_conf_vector_t *create_default_per_dir_config(apr_pool_t *p)
                                      (total_modules + DYNAMIC_MODULE_LIMIT));
     module *modp;
 
-    for (modp = top_module; modp; modp = modp->next) {
+    for (modp = ap_top_module; modp; modp = modp->next) {
        dir_maker_func df = modp->create_dir_config;
 
        if (df)
@@ -198,7 +198,7 @@ ap_conf_vector_t *ap_merge_per_dir_configs(apr_pool_t *p,
     void **new_vector = (void **) new_conf;
     module *modp;
 
-    for (modp = top_module; modp; modp = modp->next) {
+    for (modp = ap_top_module; modp; modp = modp->next) {
        merger_func df = modp->merge_dir_config;
        int i = modp->module_index;
 
@@ -217,7 +217,7 @@ static ap_conf_vector_t *create_server_config(apr_pool_t *p, server_rec *s)
                                      (total_modules + DYNAMIC_MODULE_LIMIT));
     module *modp;
 
-    for (modp = top_module; modp; modp = modp->next) {
+    for (modp = ap_top_module; modp; modp = modp->next) {
        if (modp->create_server_config)
            conf_vector[modp->module_index] = (*modp->create_server_config) (p, s);
     }
@@ -236,7 +236,7 @@ static void merge_server_configs(apr_pool_t *p, ap_conf_vector_t *base,
     void **virt_vector = (void **) virt;
     module *modp;
 
-    for (modp = top_module; modp; modp = modp->next) {
+    for (modp = ap_top_module; modp; modp = modp->next) {
        merger_func df = modp->merge_server_config;
        int i = modp->module_index;
 
@@ -356,8 +356,8 @@ AP_DECLARE(void) ap_add_module(module *m, apr_pool_t *p)
     }
 
     if (m->next == NULL) {
-       m->next = top_module;
-       top_module = m;
+       m->next = ap_top_module;
+       ap_top_module = m;
     }
     if (m->module_index == -1) {
        m->module_index = total_modules++;
@@ -411,10 +411,10 @@ AP_DECLARE(void) ap_remove_module(module *m)
 {
     module *modp;
 
-    modp = top_module;
+    modp = ap_top_module;
     if (modp == m) {
        /* We are the top module, special case */
-       top_module = modp->next;
+       ap_top_module = modp->next;
        m->next = NULL;
     }
     else {
@@ -539,7 +539,7 @@ AP_DECLARE(module *) ap_find_linked_module(const char *name)
 {
     module *modp;
 
-    for (modp = top_module; modp; modp = modp->next) {
+    for (modp = ap_top_module; modp; modp = modp->next) {
        if (strcmp(modp->name, name) == 0)
            return modp;
     }
@@ -786,7 +786,7 @@ static const char * ap_build_config_sub(apr_pool_t *p, apr_pool_t *temp_pool,
     const char *args;
     char *cmd_name;
     ap_directive_t *newdir;
-    module *mod = top_module;
+    module *mod = ap_top_module;
     const command_rec *cmd;
 
     if (*l == '#' || *l == '\0')
@@ -922,7 +922,7 @@ static const char *ap_walk_config_sub(const ap_directive_t *current,
                                      cmd_parms *parms,
                                       ap_conf_vector_t *section_vector)
 {
-    module *mod = top_module;
+    module *mod = ap_top_module;
 
     while (1) {
        const command_rec *cmd;
@@ -1157,7 +1157,7 @@ static const char *execute_now(char *cmd_line, const char *args, cmd_parms *parm
                          apr_pool_t *p, apr_pool_t *ptemp, 
                          ap_directive_t **sub_tree, ap_directive_t *parent)
 {
-    module *mod = top_module;
+    module *mod = ap_top_module;
     const command_rec *cmd;
 
     if (!(cmd = ap_find_command_in_modules(cmd_line, &mod))) {
@@ -1625,7 +1625,7 @@ AP_DECLARE(void) ap_run_rewrite_args(process_rec *process)
 {
     module *m;
 
-    for (m = top_module; m; m = m->next)
+    for (m = ap_top_module; m; m = m->next)
         if (m->rewrite_args)
             (*m->rewrite_args) (process);
 }
index 3eef602b6b4a0ed3f0a3a071c155b405344806c1..3c5693bcd7379fdbc61df8be5cd704f078ca2cc8 100644 (file)
@@ -600,4 +600,4 @@ regerror
 regexec
 regfree
 setenvif_module
-top_module
+ap_top_module