apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-util/include apr_buckets.h
Date Tue, 22 Jan 2002 07:31:19 GMT
jerenkrantz    02/01/21 23:31:19

  Modified:    buckets  apr_brigade.c
               include  apr_buckets.h
  Log:
  Rename apr_brigade_[p]getline to apr_brigade_[p]flatten as that is a much
  better description of what these functions actually do.
  
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.28      +3 -3      apr-util/buckets/apr_brigade.c
  
  Index: apr_brigade.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_brigade.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- apr_brigade.c	20 Jan 2002 11:20:27 -0000	1.27
  +++ apr_brigade.c	22 Jan 2002 07:31:18 -0000	1.28
  @@ -221,7 +221,7 @@
       return APR_SUCCESS;
   }
   
  -APU_DECLARE(apr_status_t) apr_brigade_getline(apr_bucket_brigade *bb,
  +APU_DECLARE(apr_status_t) apr_brigade_flatten(apr_bucket_brigade *bb,
                                                 char *c, apr_size_t *len)
   {
       apr_size_t actual = 0;
  @@ -256,7 +256,7 @@
       return APR_SUCCESS;
   }
   
  -APU_DECLARE(char *) apr_brigade_pgetline(apr_bucket_brigade *bb,
  +APU_DECLARE(char *) apr_brigade_pflatten(apr_bucket_brigade *bb,
                                            apr_pool_t *pool)
   {
       apr_off_t tmp;
  @@ -268,7 +268,7 @@
       
       c = apr_palloc(pool, actual + 1);
       
  -    apr_brigade_getline(bb, c, &actual);
  +    apr_brigade_flatten(bb, c, &actual);
       c[actual] = '\0';
   
       return APR_SUCCESS;
  
  
  
  1.123     +2 -2      apr-util/include/apr_buckets.h
  
  Index: apr_buckets.h
  ===================================================================
  RCS file: /home/cvs/apr-util/include/apr_buckets.h,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- apr_buckets.h	20 Jan 2002 11:20:27 -0000	1.122
  +++ apr_buckets.h	22 Jan 2002 07:31:18 -0000	1.123
  @@ -695,7 +695,7 @@
    * @param len The maximum length of the char array. On return, it is the
    *            actual length of the char array.
    */
  -APU_DECLARE(apr_status_t) apr_brigade_getline(apr_bucket_brigade *bb,
  +APU_DECLARE(apr_status_t) apr_brigade_flatten(apr_bucket_brigade *bb,
                                                 char *c,
                                                 apr_size_t *len);
   
  @@ -705,7 +705,7 @@
    * @param p The pool to allocate the string from.
    * Note: This string is NULL-terminated.
    */
  -APU_DECLARE(char *) apr_brigade_pgetline(apr_bucket_brigade *bb, 
  +APU_DECLARE(char *) apr_brigade_pflatten(apr_bucket_brigade *bb, 
                                            apr_pool_t *pool);
   
   /**
  
  
  

Mime
View raw message