apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr/include apr_hash.h
Date Wed, 10 Jul 2002 16:45:12 GMT
jerenkrantz    2002/07/10 09:45:12

  Modified:    include  apr_hash.h
  Log:
  Reformat the example.  (no tabs and realign it.)
  
  Revision  Changes    Path
  1.35      +10 -10    apr/include/apr_hash.h
  
  Index: apr_hash.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_hash.h,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- apr_hash.h	19 Mar 2002 01:41:53 -0000	1.34
  +++ apr_hash.h	10 Jul 2002 16:45:12 -0000	1.35
  @@ -145,17 +145,17 @@
   /**
    * <PRE>
    * 
  - *     int sum_values(apr_pool_t *p, apr_hash_t *ht)
  - *     {
  - *         apr_hash_index_t *hi;
  - * 	   void *val;
  - * 	   int sum = 0;
  - * 	   for (hi = apr_hash_first(p, ht); hi; hi = apr_hash_next(hi)) {
  - * 	       apr_hash_this(hi, NULL, NULL, &val);
  - * 	       sum += *(int *)val;
  - * 	   }
  - * 	   return sum;
  + * int sum_values(apr_pool_t *p, apr_hash_t *ht)
  + * {
  + *     apr_hash_index_t *hi;
  + *     void *val;
  + *     int sum = 0;
  + *     for (hi = apr_hash_first(p, ht); hi; hi = apr_hash_next(hi)) {
  + *         apr_hash_this(hi, NULL, NULL, &val);
  + *         sum += *(int *)val;
    *     }
  + *     return sum;
  + * }
    * 
    * There is no restriction on adding or deleting hash entries during an
    * iteration (although the results may be unpredictable unless all you do
  
  
  

Mime
View raw message