summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Jagielski <jim@apache.org>2012-09-24 09:49:55 +0000
committerJim Jagielski <jim@apache.org>2012-09-24 09:49:55 +0000
commitfff74c6d93fb2deefad9777e7737e6829c66d60d (patch)
treea3b6e5e9b275b22ac238448284a96405ff0ba041
parent2685e0cadb3cc884290af560874a69ae2cd0fa21 (diff)
downloadhttpd-fff74c6d93fb2deefad9777e7737e6829c66d60d.tar.gz
* headers: Move *_DECLARE_* macros to beginning of line in headers.
trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1374963 2.4.x patch: http://people.apache.org/~fuankg/diffs/httpd-2.4.x_headers.diff +1: fuankg, humbedooh, jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1389266 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--STATUS4
-rw-r--r--include/http_core.h8
-rw-r--r--include/http_log.h2
-rw-r--r--include/mod_core.h12
-rw-r--r--modules/proxy/proxy_util.h6
5 files changed, 14 insertions, 18 deletions
diff --git a/STATUS b/STATUS
index 3132d9ddeb..fa70de1e51 100644
--- a/STATUS
+++ b/STATUS
@@ -89,10 +89,6 @@ RELEASE SHOWSTOPPERS:
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * headers: Move *_DECLARE_* macros to beginning of line in headers.
- trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1374963
- 2.4.x patch: http://people.apache.org/~fuankg/diffs/httpd-2.4.x_headers.diff
- +1: fuankg, humbedooh, jim
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
diff --git a/include/http_core.h b/include/http_core.h
index 8cbedc11c3..268f9669ad 100644
--- a/include/http_core.h
+++ b/include/http_core.h
@@ -741,10 +741,10 @@ typedef struct {
} ap_mgmt_item_t;
/* Handles for core filters */
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_subreq_core_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_core_output_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_content_length_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_core_input_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_subreq_core_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_core_output_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_content_length_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_core_input_filter_handle;
/**
* This hook provdes a way for modules to provide metrics/statistics about
diff --git a/include/http_log.h b/include/http_log.h
index acad032817..c5da45136b 100644
--- a/include/http_log.h
+++ b/include/http_log.h
@@ -263,7 +263,7 @@ static int * const aplog_module_index;
#define APLOGctrace7(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE7)
#define APLOGctrace8(c) APLOG_C_IS_LEVEL(c,APLOG_TRACE8)
-extern int AP_DECLARE_DATA ap_default_loglevel;
+AP_DECLARE_DATA extern int ap_default_loglevel;
/**
* APLOG_MARK is a convenience macro for use as the first three parameters in
diff --git a/include/mod_core.h b/include/mod_core.h
index 5d8b83c14c..8eab3e12c4 100644
--- a/include/mod_core.h
+++ b/include/mod_core.h
@@ -39,11 +39,11 @@ extern "C" {
#endif
/* Handles for core filters */
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_http_input_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_http_header_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_chunk_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_http_outerror_filter_handle;
-extern AP_DECLARE_DATA ap_filter_rec_t *ap_byterange_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_http_input_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_http_header_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_chunk_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_http_outerror_filter_handle;
+AP_DECLARE_DATA extern ap_filter_rec_t *ap_byterange_filter_handle;
/*
* These (input) filters are internal to the mod_core operation.
@@ -88,7 +88,7 @@ AP_DECLARE_NONSTD(int) ap_send_http_trace(request_rec *r);
AP_DECLARE(int) ap_send_http_options(request_rec *r);
/* Used for multipart/byteranges boundary string */
-extern AP_DECLARE_DATA const char *ap_multipart_boundary;
+AP_DECLARE_DATA extern const char *ap_multipart_boundary;
/* Init RNG at startup */
AP_CORE_DECLARE(void) ap_init_rng(apr_pool_t *p);
diff --git a/modules/proxy/proxy_util.h b/modules/proxy/proxy_util.h
index 3b32cc052a..202be8d653 100644
--- a/modules/proxy/proxy_util.h
+++ b/modules/proxy/proxy_util.h
@@ -31,9 +31,9 @@ PROXY_DECLARE(int) ap_proxy_is_domainname(struct dirconn_entry *This, apr_pool_t
PROXY_DECLARE(int) ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *p);
PROXY_DECLARE(int) ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p);
-extern int PROXY_DECLARE_DATA proxy_lb_workers;
-extern const apr_strmatch_pattern PROXY_DECLARE_DATA *ap_proxy_strmatch_path;
-extern const apr_strmatch_pattern PROXY_DECLARE_DATA *ap_proxy_strmatch_domain;
+PROXY_DECLARE_DATA extern int proxy_lb_workers;
+PROXY_DECLARE_DATA extern const apr_strmatch_pattern *ap_proxy_strmatch_path;
+PROXY_DECLARE_DATA extern const apr_strmatch_pattern *ap_proxy_strmatch_domain;
/**
* Register optional functions declared within proxy_util.c.