httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1131467 - in /httpd/httpd/trunk/include: http_protocol.h http_request.h util_cookies.h util_script.h
Date Sat, 04 Jun 2011 19:00:16 GMT
Author: sf
Date: Sat Jun  4 19:00:16 2011
New Revision: 1131467

URL: http://svn.apache.org/viewvc?rev=1131467&view=rev
Log:
Add __attribute__((sentinel)) to a few functions that require a terminal NULL
argument.

Modified:
    httpd/httpd/trunk/include/http_protocol.h
    httpd/httpd/trunk/include/http_request.h
    httpd/httpd/trunk/include/util_cookies.h
    httpd/httpd/trunk/include/util_script.h

Modified: httpd/httpd/trunk/include/http_protocol.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_protocol.h?rev=1131467&r1=1131466&r2=1131467&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_protocol.h (original)
+++ httpd/httpd/trunk/include/http_protocol.h Sat Jun  4 19:00:16 2011
@@ -345,7 +345,8 @@ static inline int ap_rputs(const char *s
  * @param ... The strings to write
  * @return The number of bytes sent
  */
-AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r,...);
+AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r,...)
+                       __attribute__((sentinel));
 
 /**
  * Output data to the client in a printf format

Modified: httpd/httpd/trunk/include/http_request.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_request.h?rev=1131467&r1=1131466&r2=1131467&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_request.h (original)
+++ httpd/httpd/trunk/include/http_request.h Sat Jun  4 19:00:16 2011
@@ -284,7 +284,8 @@ AP_DECLARE(void) ap_update_mtime(request
  *                method name to add.
  * @return  None.
  */
-AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...);
+AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...)
+                 __attribute__((sentinel));
 
 /**
  * Add one or more methods to the list permitted to access the resource.

Modified: httpd/httpd/trunk/include/util_cookies.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/util_cookies.h?rev=1131467&r1=1131466&r2=1131467&view=diff
==============================================================================
--- httpd/httpd/trunk/include/util_cookies.h (original)
+++ httpd/httpd/trunk/include/util_cookies.h Sat Jun  4 19:00:16 2011
@@ -65,8 +65,10 @@ typedef struct {
  * @param ... A varargs array of zero or more (apr_table_t *) tables followed by NULL
  *            to which the cookies should be added.
  */
-AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name, const char *val,
-                                         const char *attrs, long maxage, ...);
+AP_DECLARE(apr_status_t) ap_cookie_write(request_rec * r, const char *name,
+                                         const char *val, const char *attrs,
+                                         long maxage, ...)
+                         __attribute__((sentinel));
 
 /**
  * Write an RFC2965 compliant cookie.
@@ -80,8 +82,10 @@ AP_DECLARE(apr_status_t) ap_cookie_write
  * @param ... A varargs array of zero or more (apr_table_t *) tables followed by NULL
  *            to which the cookies should be added.
  */
-AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2, const char
*val,
-                                          const char *attrs2, long maxage, ...);
+AP_DECLARE(apr_status_t) ap_cookie_write2(request_rec * r, const char *name2,
+                                          const char *val, const char *attrs2,
+                                          long maxage, ...)
+                         __attribute__((sentinel));
 
 /**
  * Remove an RFC2109 compliant cookie.
@@ -93,7 +97,9 @@ AP_DECLARE(apr_status_t) ap_cookie_write
  * @param ... A varargs array of zero or more (apr_table_t *) tables followed by NULL
  *            to which the cookies should be added.
  */
-AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name, const char *attrs,
...);
+AP_DECLARE(apr_status_t) ap_cookie_remove(request_rec * r, const char *name,
+                                          const char *attrs, ...)
+                         __attribute__((sentinel));
 
 /**
  * Remove an RFC2965 compliant cookie.
@@ -105,7 +111,9 @@ AP_DECLARE(apr_status_t) ap_cookie_remov
  * @param ... A varargs array of zero or more (apr_table_t *) tables followed by NULL
  *            to which the cookies should be added.
  */
-AP_DECLARE(apr_status_t) ap_cookie_remove2(request_rec * r, const char *name2, const char
*attrs2, ...);
+AP_DECLARE(apr_status_t) ap_cookie_remove2(request_rec * r, const char *name2,
+                                           const char *attrs2, ...)
+                         __attribute__((sentinel));
 
 /**
  * Read a cookie called name, placing its value in val.

Modified: httpd/httpd/trunk/include/util_script.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/util_script.h?rev=1131467&r1=1131466&r2=1131467&view=diff
==============================================================================
--- httpd/httpd/trunk/include/util_script.h (original)
+++ httpd/httpd/trunk/include/util_script.h Sat Jun  4 19:00:16 2011
@@ -122,7 +122,8 @@ AP_DECLARE(int) ap_scan_script_header_er
 AP_DECLARE_NONSTD(int) ap_scan_script_header_err_strs(request_rec *r, 
                                                       char *buffer, 
                                                       const char **termch,
-                                                      int *termarg, ...);
+                                                      int *termarg, ...)
+                       __attribute__((sentinel));
 
 /**
  * Read headers output from a script, ensuring that the output is valid.  If



Mime
View raw message