diff options
author | Ryan Bloom <rbb@apache.org> | 2000-04-14 17:59:20 +0200 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-04-14 17:59:20 +0200 |
commit | de3a77dc016d09f7a065448efa3c745b73cf9c42 (patch) | |
tree | 67f5e3fba093eb416fe4bbca701cd6187d3364cc /modules/http | |
parent | Fix minor configuration & platform dependencies (diff) | |
download | apache2-de3a77dc016d09f7a065448efa3c745b73cf9c42.tar.xz apache2-de3a77dc016d09f7a065448efa3c745b73cf9c42.zip |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/http')
-rw-r--r-- | modules/http/http_core.c | 22 | ||||
-rw-r--r-- | modules/http/http_protocol.c | 4 | ||||
-rw-r--r-- | modules/http/http_request.c | 6 | ||||
-rw-r--r-- | modules/http/mod_mime.c | 8 |
4 files changed, 20 insertions, 20 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c index b5e460214c..b444edee16 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -110,7 +110,7 @@ * the http_conf_globals. */ -static void *create_core_dir_config(ap_context_t *a, char *dir) +static void *create_core_dir_config(ap_pool_t *a, char *dir) { core_dir_config *conf; @@ -153,7 +153,7 @@ static void *create_core_dir_config(ap_context_t *a, char *dir) return (void *)conf; } -static void *merge_core_dir_configs(ap_context_t *a, void *basev, void *newv) +static void *merge_core_dir_configs(ap_pool_t *a, void *basev, void *newv) { core_dir_config *base = (core_dir_config *)basev; core_dir_config *new = (core_dir_config *)newv; @@ -272,7 +272,7 @@ static void *merge_core_dir_configs(ap_context_t *a, void *basev, void *newv) return (void*)conf; } -static void *create_core_server_config(ap_context_t *a, server_rec *s) +static void *create_core_server_config(ap_pool_t *a, server_rec *s) { core_server_config *conf; int is_virtual = s->is_virtual; @@ -289,7 +289,7 @@ static void *create_core_server_config(ap_context_t *a, server_rec *s) return (void *)conf; } -static void *merge_core_server_configs(ap_context_t *p, void *basev, void *virtv) +static void *merge_core_server_configs(ap_pool_t *p, void *basev, void *virtv) { core_server_config *base = (core_server_config *)basev; core_server_config *virt = (core_server_config *)virtv; @@ -397,7 +397,7 @@ static int reorder_sorter(const void *va, const void *vb) return a->orig_index - b->orig_index; } -void ap_core_reorder_directories(ap_context_t *p, server_rec *s) +void ap_core_reorder_directories(ap_pool_t *p, server_rec *s) { core_server_config *sconf; ap_array_header_t *sec; @@ -405,7 +405,7 @@ void ap_core_reorder_directories(ap_context_t *p, server_rec *s) int nelts; void **elts; int i; - ap_context_t *tmp; + ap_pool_t *tmp; sconf = ap_get_module_config(s->module_config, &core_module); sec = sconf->sec; @@ -413,7 +413,7 @@ void ap_core_reorder_directories(ap_context_t *p, server_rec *s) elts = (void **)sec->elts; /* we have to allocate tmp space to do a stable sort */ - ap_create_context(&tmp, p); + ap_create_pool(&tmp, p); sortbin = ap_palloc(tmp, sec->nelts * sizeof(*sortbin)); for (i = 0; i < nelts; ++i) { sortbin[i].orig_index = i; @@ -712,7 +712,7 @@ API_EXPORT(unsigned) ap_get_server_port(const request_rec *r) return port; } -API_EXPORT(char *) ap_construct_url(ap_context_t *p, const char *uri, +API_EXPORT(char *) ap_construct_url(ap_pool_t *p, const char *uri, request_rec *r) { unsigned port = ap_get_server_port(r); @@ -733,7 +733,7 @@ API_EXPORT(unsigned long) ap_get_limit_req_body(const request_rec *r) } #ifdef WIN32 -static char* get_interpreter_from_win32_registry(ap_context_t *p, const char* ext) +static char* get_interpreter_from_win32_registry(ap_pool_t *p, const char* ext) { char extension_path[] = "SOFTWARE\\Classes\\"; char executable_path[] = "\\SHELL\\OPEN\\COMMAND"; @@ -1723,7 +1723,7 @@ static const char *virtualhost_section(cmd_parms *cmd, void *dummy, char *arg) server_rec *main_server = cmd->server, *s; const char *errmsg; char *endp = strrchr(arg, '>'); - ap_context_t *p = cmd->pool; + ap_pool_t *p = cmd->pool; const char *old_end_token; const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY); @@ -2646,7 +2646,7 @@ static const handler_rec core_handlers[] = { { NULL, NULL } }; -static void core_open_logs(ap_context_t *pconf, ap_context_t *plog, ap_context_t *ptemp, server_rec *s) +static void core_open_logs(ap_pool_t *pconf, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s) { ap_open_logs(s, pconf); } diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 155aedcc0f..fd1bd7e79c 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -963,11 +963,11 @@ static void get_mime_headers(request_rec *r) request_rec *ap_read_request(conn_rec *conn) { request_rec *r; - ap_context_t *p; + ap_pool_t *p; const char *expect; int access_status; - ap_create_context(&p, conn->pool); + ap_create_pool(&p, conn->pool); r = ap_pcalloc(p, sizeof(request_rec)); r->pool = p; r->connection = conn; diff --git a/modules/http/http_request.c b/modules/http/http_request.c index aa2df2627b..decbb80d65 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -732,10 +732,10 @@ static int file_walk(request_rec *r) static request_rec *make_sub_request(const request_rec *r) { - ap_context_t *rrp; + ap_pool_t *rrp; request_rec *rr; - ap_create_context(&rrp, r->pool); + ap_create_pool(&rrp, r->pool); rr = ap_pcalloc(rrp, sizeof(request_rec)); rr->pool = rrp; return rr; @@ -1259,7 +1259,7 @@ void ap_process_request(request_rec *r) ap_run_log_transaction(r); } -static ap_table_t *rename_original_env(ap_context_t *p, ap_table_t *t) +static ap_table_t *rename_original_env(ap_pool_t *p, ap_table_t *t) { ap_array_header_t *env_arr = ap_table_elts(t); ap_table_entry_t *elts = (ap_table_entry_t *) env_arr->elts; diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 994d48366f..97102a69e5 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -128,7 +128,7 @@ static char tspecial[] = { module MODULE_VAR_EXPORT mime_module; -static void *create_mime_dir_config(ap_context_t *p, char *dummy) +static void *create_mime_dir_config(ap_pool_t *p, char *dummy) { mime_dir_config *new = (mime_dir_config *) ap_palloc(p, sizeof(mime_dir_config)); @@ -147,7 +147,7 @@ static void *create_mime_dir_config(ap_context_t *p, char *dummy) return new; } -static void *merge_mime_dir_configs(ap_context_t *p, void *basev, void *addv) +static void *merge_mime_dir_configs(ap_pool_t *p, void *basev, void *addv) { mime_dir_config *base = (mime_dir_config *) basev; mime_dir_config *add = (mime_dir_config *) addv; @@ -298,7 +298,7 @@ static const command_rec mime_cmds[] = static ap_table_t *hash_buckets[MIME_HASHSIZE]; -static void mime_post_config(ap_context_t *p, ap_context_t *plog, ap_context_t *ptemp, server_rec *s) +static void mime_post_config(ap_pool_t *p, ap_pool_t *plog, ap_pool_t *ptemp, server_rec *s) { configfile_t *f; char l[MAX_STRING_LEN]; @@ -396,7 +396,7 @@ static content_type *analyze_ct(request_rec *r, char *s) char *attribute, *value; int quoted = 0; server_rec * ss = r->server; - ap_context_t * p = r->pool; + ap_pool_t * p = r->pool; content_type *ctp; param *pp, *npp; |