Return-Path: Mailing-List: contact apache-docs-help@apache.org; run by ezmlm Delivered-To: mailing list apache-docs@apache.org Received: (qmail 66153 invoked by uid 500); 18 Sep 2000 17:24:05 -0000 Delivered-To: apmail-httpd-docs-2.0-cvs@apache.org Received: (qmail 66149 invoked by uid 1121); 18 Sep 2000 17:24:04 -0000 Date: 18 Sep 2000 17:24:04 -0000 Message-ID: <20000918172404.66148.qmail@locus.apache.org> From: trawick@locus.apache.org To: httpd-docs-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/include ap_buckets.h trawick 00/09/18 10:24:03 Modified: src/ap ap_buckets.c src/include ap_buckets.h Log: Add ap_brigade_putstrs(). Revision Changes Path 1.17 +11 -0 apache-2.0/src/ap/ap_buckets.c Index: ap_buckets.c =================================================================== RCS file: /home/cvs/apache-2.0/src/ap/ap_buckets.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- ap_buckets.c 2000/09/14 18:42:49 1.16 +++ ap_buckets.c 2000/09/18 17:23:59 1.17 @@ -165,6 +165,17 @@ return k; } +API_EXPORT_NONSTD(int) ap_brigade_putstrs(ap_bucket_brigade *b, ...) +{ + va_list va; + int written; + + va_start(va, b); + written = ap_brigade_vputstrs(b, va); + va_end(va); + return written; +} + API_EXPORT(int) ap_brigade_printf(ap_bucket_brigade *b, const char *fmt, ...) { va_list ap; 1.28 +11 -1 apache-2.0/src/include/ap_buckets.h Index: ap_buckets.h =================================================================== RCS file: /home/cvs/apache-2.0/src/include/ap_buckets.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- ap_buckets.h 2000/09/14 02:27:13 1.27 +++ ap_buckets.h 2000/09/18 17:24:01 1.28 @@ -412,7 +412,17 @@ API_EXPORT(int) ap_brigade_vputstrs(ap_bucket_brigade *b, va_list va); /** - * Evaaluate a printf and put the resulting string into a bucket at the end + * This function writes an unspecified number of strings into a bucket brigade. + * We just allocate a new heap bucket for each string. + * @param b The bucket brigade to add to + * @param ... The strings to add + * @return The number of bytes added to the brigade + * @deffunc int ap_brigade_putstrs(ap_bucket_brigade *b, ...) + */ +API_EXPORT_NONSTD(int) ap_brigade_putstrs(ap_bucket_brigade *b, ...); + +/** + * Evaluate a printf and put the resulting string into a bucket at the end * of the bucket brigade. * @param b The brigade to write to * @param fmt The format of the string to write