From: William A. Rowe Jr Date: Wed, 28 Jun 2000 04:52:39 +0000 (+0000) Subject: Hook functions aren't translated (and when they are, they are _NONSTD)... X-Git-Tag: APACHE_2_0_ALPHA_5~224 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9ce8c3ebcfae4e7f5b36389915e4cdc8f3fd01d;p=thirdparty%2Fapache%2Fhttpd.git Hook functions aren't translated (and when they are, they are _NONSTD)... but you don't need to export a function you will pass by ref to a register hook function. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85715 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_core.h b/include/http_core.h index 22ac545f92b..3d47f37492c 100644 --- a/include/http_core.h +++ b/include/http_core.h @@ -137,7 +137,7 @@ API_EXPORT(unsigned) ap_get_server_port(const request_rec *r); API_EXPORT(unsigned long) ap_get_limit_req_body(const request_rec *r); API_EXPORT(void) ap_custom_response(request_rec *r, int status, char *string); API_EXPORT(int) ap_exists_config_define(const char *name); -API_EXPORT(int) ap_core_translate(request_rec *r); +int ap_core_translate(request_rec *r); /* Authentication stuff. This is one of the places where compatibility * with the old config files *really* hurts; they don't discriminate at diff --git a/modules/http/http_core.c b/modules/http/http_core.c index c4000d9c053..da7c0b5e5fe 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2609,7 +2609,7 @@ AP_INIT_TAKE12("RLimitNPROC", no_set_limit, NULL, * Core handlers for various phases of server operation... */ -API_EXPORT(int) ap_core_translate(request_rec *r) +int ap_core_translate(request_rec *r) { void *sconf = r->server->module_config; core_server_config *conf = ap_get_module_config(sconf, &core_module);