httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ch...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/lib apr_tables.c
Date Mon, 12 Jun 2000 20:47:10 GMT
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
  
  
  

Mime
View raw message