apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r995864 - /apr/apr/trunk/include/apr_buckets.h
Date Fri, 10 Sep 2010 16:51:32 GMT
Author: sf
Date: Fri Sep 10 16:51:32 2010
New Revision: 995864

URL: http://svn.apache.org/viewvc?rev=995864&view=rev
Log:
mark apr_brigade_putstrs() with attribute sentinel

Modified:
    apr/apr/trunk/include/apr_buckets.h

Modified: apr/apr/trunk/include/apr_buckets.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_buckets.h?rev=995864&r1=995863&r2=995864&view=diff
==============================================================================
--- apr/apr/trunk/include/apr_buckets.h (original)
+++ apr/apr/trunk/include/apr_buckets.h Fri Sep 10 16:51:32 2010
@@ -873,12 +873,16 @@ APR_DECLARE(apr_status_t) apr_brigade_pu
  * @param b The bucket brigade to add to
  * @param flush The flush function to use if the brigade is full
  * @param ctx The structure to pass to the flush function
- * @param ... The strings to add
+ * @param ... The strings to add. The final string must be NULL
  * @return APR_SUCCESS or error code
  */
 APR_DECLARE_NONSTD(apr_status_t) apr_brigade_putstrs(apr_bucket_brigade *b,
                                                      apr_brigade_flush flush,
-                                                     void *ctx, ...);
+                                                     void *ctx, ...)
+#if defined(__GNUC__) && __GNUC__ >= 4
+    __attribute__((sentinel))
+#endif
+    ;
 
 /**
  * Evaluate a printf and put the resulting string at the end 



Mime
View raw message