Loading CHANGES +2 −0 Original line number Diff line number Diff line 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 Loading include/http_config.h +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading modules/generators/mod_info.c +3 −3 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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", Loading Loading @@ -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); Loading server/config.c +14 −14 Original line number Diff line number Diff line Loading @@ -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 *); Loading Loading @@ -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) Loading @@ -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; Loading @@ -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); } Loading @@ -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; Loading Loading @@ -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++; Loading Loading @@ -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 { Loading Loading @@ -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; } Loading Loading @@ -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') Loading Loading @@ -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; Loading Loading @@ -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))) { Loading Loading @@ -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); } Loading support/httpd.exp +1 −1 Original line number Diff line number Diff line Loading @@ -600,4 +600,4 @@ regerror regexec regfree setenvif_module top_module ap_top_module Loading
CHANGES +2 −0 Original line number Diff line number Diff line 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 Loading
include/http_config.h +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
modules/generators/mod_info.c +3 −3 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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", Loading Loading @@ -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); Loading
server/config.c +14 −14 Original line number Diff line number Diff line Loading @@ -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 *); Loading Loading @@ -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) Loading @@ -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; Loading @@ -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); } Loading @@ -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; Loading Loading @@ -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++; Loading Loading @@ -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 { Loading Loading @@ -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; } Loading Loading @@ -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') Loading Loading @@ -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; Loading Loading @@ -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))) { Loading Loading @@ -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); } Loading
support/httpd.exp +1 −1 Original line number Diff line number Diff line Loading @@ -600,4 +600,4 @@ regerror regexec regfree setenvif_module top_module ap_top_module