This clears the list of renames pending in apr-util.
Parts of this list was alreadu done, but the pending list hadn't been updated.
apr_hook_debug_current from apr_current_hooking_module
apr_hook_debug_show from apr_show_hook
apr_hook_global_pool from apr_global_hook_pool
apr_hook_sort_all from apr_sort_hooks
apr_uri_port_of_scheme from apr_uri_default_port_for_scheme
apr_uri_unparse from apr_uri_unparse_components
apr_uri_parse from apr_uri_parse_components
apr_uri_parse_hostinfo from apr_uri_parse_hostinfo_components
apr_uri_t from apr_uri_components
All APR_URI_* from all APU_URI_* symbols
All APR_UNP_* from all UNP_* symbols
PR:
Obtained from:
Submitted by: Thom May
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95966
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.40
+ *) APR-Util Renames pending have been completed [Thom May]
+
*) Performance improvements for the code that reads request
headers (ap_rgetline_core() and related functions) [Brian Pane]
/* insert a port if the URI did not contain one */
if (comp.port == 0)
- comp.port = apr_uri_default_port_for_scheme(comp.scheme);
+ comp.port = apr_uri_port_of_scheme(comp.scheme);
/* now, verify that the URI uses the same scheme as the current.
request. the port must match our port.
ap_str_tolower(p + 3); /* lowercase hostname */
if (port == -1) {
- port = apr_uri_default_port_for_scheme(scheme);
+ port = apr_uri_port_of_scheme(scheme);
}
new = apr_array_push(conf->proxies);
else {
return DECLINED;
}
- def_port = apr_uri_default_port_for_scheme("ftp");
+ def_port = apr_uri_port_of_scheme("ftp");
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy: FTP: canonicalising URL %s", url);
connectname = r->parsed_uri.hostname;
connectport = (r->parsed_uri.port != 0)
? r->parsed_uri.port
- : apr_uri_default_port_for_scheme("ftp");
+ : apr_uri_port_of_scheme("ftp");
path = apr_pstrdup(p, r->parsed_uri.path);
path = (path != NULL && path[0] != '\0') ? &path[1] : "";
const char *scheme;
apr_port_t port, def_port;
- /* ap_default_port_for_scheme() */
+ /* ap_port_of_scheme() */
if (strncasecmp(url, "http:", 5) == 0) {
url += 5;
scheme = "http";
else {
return DECLINED;
}
- def_port = apr_uri_default_port_for_scheme(scheme);
+ def_port = apr_uri_port_of_scheme(scheme);
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
"proxy: HTTP: canonicalising URL %s", url);
NULL));
}
if (!uri->port) {
- uri->port = apr_uri_default_port_for_scheme(uri->scheme);
+ uri->port = apr_uri_port_of_scheme(uri->scheme);
}
ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
ap_LINK_post_config_t *pHook;
if (!_hooks.link_post_config) {
- _hooks.link_post_config = apr_array_make(apr_global_hook_pool, 1,
+ _hooks.link_post_config = apr_array_make(apr_hook_global_pool, 1,
sizeof(ap_LINK_post_config_t));
apr_hook_sort_register("post_config", &_hooks.link_post_config);
}
pHook->aszPredecessors = aszPre;
pHook->aszSuccessors = aszSucc;
pHook->nOrder = nOrder;
- pHook->szName = apr_current_hooking_module;
+ pHook->szName = apr_hook_debug_current;
- if (apr_debug_module_hooks)
- apr_show_hook("post_config", aszPre, aszSucc);
+ if (apr_hook_debug_enabled)
+ apr_hook_debug_show("post_config", aszPre, aszSucc);
}
AP_DECLARE(apr_array_header_t *) ap_hook_get_post_config(void) {
if (m->register_hooks) {
if (getenv("SHOW_HOOKS")) {
printf("Registering hooks for %s\n", m->name);
- apr_debug_module_hooks = 1;
+ apr_hook_debug_enabled = 1;
}
- apr_current_hooking_module = m->name;
+ apr_hook_debug_current = m->name;
m->register_hooks(p);
}
}
module **m;
module **m2;
- apr_global_hook_pool=process->pconf;
+ apr_hook_global_pool=process->pconf;
/*
* Initialise total_modules variable and module indices
for (m = ap_prelinked_modules; *m != NULL; m++)
ap_add_module(*m, process->pconf);
- apr_sort_hooks();
+ apr_hook_sort_all();
}
AP_DECLARE(const char *) ap_find_module_name(module *m)
AP_DECLARE(apr_size_t) ap_register_request_note(void)
{
- apr_pool_cleanup_register(apr_global_hook_pool, NULL, reset_request_notes,
+ apr_pool_cleanup_register(apr_hook_global_pool, NULL, reset_request_notes,
apr_pool_cleanup_null);
return num_request_notes++;
}
/* NOTE: Apache's current design doesn't allow a pool to be passed thru,
so we depend on a global to hold the correct pool
*/
-#define FILTER_POOL apr_global_hook_pool
-#include "apr_hooks.h" /* for apr_global_hook_pool */
+#define FILTER_POOL apr_hook_global_pool
+#include "apr_hooks.h" /* for apr_hook_global_pool */
/*
** This macro returns true/false if a given filter should be inserted BEFORE