Loading include/ap_config.h +9 −0 Changes for include/ap_config.h: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -173,4 +173,13 @@ #define AP_HAVE_DESIGNATED_INITIALIZER #endif #ifndef __has_attribute /* check for supported attributes on clang */ #define __has_attribute(x) 0 #endif #if (defined(__GNUC__) && __GNUC__ >= 4) || __has_attribute(sentinel) #define ap_func_attr_sentinel __attribute__((sentinel)) #else #define ap_func_attr_sentinel #endif #endif /* AP_CONFIG_H */ include/http_protocol.h +1 −1 Changes for include/http_protocol.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -346,7 +346,7 @@ static inline int ap_rputs(const char *str, request_rec *r) * @return The number of bytes sent */ AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r,...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Output data to the client in a printf format Loading include/http_request.h +1 −1 Changes for include/http_request.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ AP_DECLARE(void) ap_update_mtime(request_rec *r, apr_time_t dependency_mtime); * @return None. */ AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Add one or more methods to the list permitted to access the resource. Loading include/util_cookies.h +4 −4 Changes for include/util_cookies.h: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ typedef struct { AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name, const char *val, const char *attrs, long maxage, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Write an RFC2965 compliant cookie. Loading @@ -85,7 +85,7 @@ AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name, AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, const char *val, const char *attrs2, long maxage, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Remove an RFC2109 compliant cookie. Loading @@ -99,7 +99,7 @@ AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, */ AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name, const char *attrs, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Remove an RFC2965 compliant cookie. Loading @@ -113,7 +113,7 @@ AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name, */ AP_DECLARE(apr_status_t) ap_cookie_remove2(request_rec * r, const char *name2, const char *attrs2, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Read a cookie called name, placing its value in val. Loading include/util_filter.h +1 −4 Changes for include/util_filter.h: 1 added line, 4 removed lines. Original line number Diff line number Diff line Loading @@ -547,10 +547,7 @@ AP_DECLARE(apr_status_t) ap_fflush(ap_filter_t *f, apr_bucket_brigade *bb); AP_DECLARE_NONSTD(apr_status_t) ap_fputstrs(ap_filter_t *f, apr_bucket_brigade *bb, ...) #if defined(__GNUC__) && __GNUC__ >= 4 __attribute__((sentinel)) #endif ; ap_func_attr_sentinel; /** * Output data to the filter in printf format Loading Loading
include/ap_config.h +9 −0 Changes for include/ap_config.h: 9 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -173,4 +173,13 @@ #define AP_HAVE_DESIGNATED_INITIALIZER #endif #ifndef __has_attribute /* check for supported attributes on clang */ #define __has_attribute(x) 0 #endif #if (defined(__GNUC__) && __GNUC__ >= 4) || __has_attribute(sentinel) #define ap_func_attr_sentinel __attribute__((sentinel)) #else #define ap_func_attr_sentinel #endif #endif /* AP_CONFIG_H */
include/http_protocol.h +1 −1 Changes for include/http_protocol.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -346,7 +346,7 @@ static inline int ap_rputs(const char *str, request_rec *r) * @return The number of bytes sent */ AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r,...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Output data to the client in a printf format Loading
include/http_request.h +1 −1 Changes for include/http_request.h: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -285,7 +285,7 @@ AP_DECLARE(void) ap_update_mtime(request_rec *r, apr_time_t dependency_mtime); * @return None. */ AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Add one or more methods to the list permitted to access the resource. Loading
include/util_cookies.h +4 −4 Changes for include/util_cookies.h: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ typedef struct { AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name, const char *val, const char *attrs, long maxage, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Write an RFC2965 compliant cookie. Loading @@ -85,7 +85,7 @@ AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name, AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, const char *val, const char *attrs2, long maxage, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Remove an RFC2109 compliant cookie. Loading @@ -99,7 +99,7 @@ AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, */ AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name, const char *attrs, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Remove an RFC2965 compliant cookie. Loading @@ -113,7 +113,7 @@ AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name, */ AP_DECLARE(apr_status_t) ap_cookie_remove2(request_rec * r, const char *name2, const char *attrs2, ...) __attribute__((sentinel)); ap_func_attr_sentinel; /** * Read a cookie called name, placing its value in val. Loading
include/util_filter.h +1 −4 Changes for include/util_filter.h: 1 added line, 4 removed lines. Original line number Diff line number Diff line Loading @@ -547,10 +547,7 @@ AP_DECLARE(apr_status_t) ap_fflush(ap_filter_t *f, apr_bucket_brigade *bb); AP_DECLARE_NONSTD(apr_status_t) ap_fputstrs(ap_filter_t *f, apr_bucket_brigade *bb, ...) #if defined(__GNUC__) && __GNUC__ >= 4 __attribute__((sentinel)) #endif ; ap_func_attr_sentinel; /** * Output data to the filter in printf format Loading