You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ch...@locus.apache.org on 2000/06/12 22:47:10 UTC
cvs commit: apache-2.0/src/lib/apr/lib apr_tables.c
chuck 00/06/12 13:47:00
Modified: src/lib/apr/lib apr_tables.c
Log:
added ap_table_vdo() for mod_proxy
Submitted by: Sam Magnuson
Reviewed by: Chuck Murcko, Ryan Bloom
Revision Changes Path
1.18 +7 -6 apache-2.0/src/lib/apr/lib/apr_tables.c
Index: apr_tables.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/lib/apr_tables.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- apr_tables.c 2000/06/08 19:29:39 1.17
+++ apr_tables.c 2000/06/12 20:46:58 1.18
@@ -589,14 +589,17 @@
void *rec, const ap_table_t *t, ...)
{
va_list vp;
+ va_start(vp, t);
+ ap_table_vdo(comp, rec, t, vp);
+ va_end(vp);
+}
+APR_EXPORT(void) ap_table_vdo(int (*comp) (void *, const char *, const char *),
+ void *rec, const ap_table_t *t, va_list vp)
+{
char *argp;
ap_table_entry_t *elts = (ap_table_entry_t *) t->a.elts;
int rv, i;
-
- va_start(vp, t);
-
argp = va_arg(vp, char *);
-
do {
for (rv = 1, i = 0; rv && (i < t->a.nelts); ++i) {
if (elts[i].key && (!argp || !strcasecmp(elts[i].key, argp))) {
@@ -604,8 +607,6 @@
}
}
} while (argp && ((argp = va_arg(vp, char *)) != NULL));
-
- va_end(vp);
}
/* Curse libc and the fact that it doesn't guarantee a stable sort. We
Re: cvs commit: apache-2.0/src/lib/apr/lib apr_tables.c
Posted by Chuck Murcko <ch...@topsail.org>.
Done.
Rodent of Unusual Size wrote:
>
> chuck@locus.apache.org wrote:
> >
> > Log:
> > added ap_table_vdo() for mod_proxy
>
> Um, please add some comments telling that the hell this is and
> why/how to use it..
--
Chuck
Chuck Murcko
Topsail Group
chuck@topsail.org
Re: cvs commit: apache-2.0/src/lib/apr/lib apr_tables.c
Posted by Rodent of Unusual Size <Ke...@Golux.Com>.
chuck@locus.apache.org wrote:
>
> Log:
> added ap_table_vdo() for mod_proxy
Um, please add some comments telling that the hell this is and
why/how to use it..
--
#ken P-)}
Ken Coar <http://Golux.Com/coar/>
Apache Software Foundation <http://www.apache.org/>
"Apache Server for Dummies" <http://Apache-Server.Com/>
"Apache Server Unleashed" <http://ApacheUnleashed.Com/>