apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject cvs commit: apr/include apr_pools.h
Date Thu, 21 Mar 2002 08:38:38 GMT
striker     02/03/21 00:38:38

  Modified:    include  apr_pools.h
  Log:
  Remove the APR_POOL_IMPLEMENT_ACCESSOR_X macro, since it isn't used
  anywhere anymore.
  
  Revision  Changes    Path
  1.86      +2 -8      apr/include/apr_pools.h
  
  Index: apr_pools.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_pools.h,v
  retrieving revision 1.85
  retrieving revision 1.86
  diff -u -r1.85 -r1.86
  --- apr_pools.h	20 Mar 2002 09:01:24 -0000	1.85
  +++ apr_pools.h	21 Mar 2002 08:38:37 -0000	1.86
  @@ -104,9 +104,7 @@
    *    APR_DECLARE(apr_pool_t *) apr_file_pool_get(apr_file_t *ob);
    *
    * In the implementation, the APR_POOL_IMPLEMENT_ACCESSOR() is used to
  - * actually define the function. It assumes the field is named "pool". For
  - * data types with a different field name (e.g. "cont" or "cntxt") the
  - * APR_POOL_IMPLEMENT_ACCESSOR_X() macro should be used.
  + * actually define the function. It assumes the field is named "pool".
    *
    * Note: the linkage is specified for APR. It would be possible to expand
    *       the macros to support other linkages.
  @@ -118,12 +116,8 @@
   
   /** used to implement the pool accessor */
   #define APR_POOL_IMPLEMENT_ACCESSOR(typename) \
  -    APR_POOL_IMPLEMENT_ACCESSOR_X(typename, pool)
  -
  -/** used to implement the pool accessor */
  -#define APR_POOL_IMPLEMENT_ACCESSOR_X(typename, fieldname) \
       APR_DECLARE(apr_pool_t *) apr_##typename##_pool_get \
  -        (const apr_##typename##_t *ob) { return ob->fieldname; }
  +        (const apr_##typename##_t *ob) { return ob->pool; }
   
   
   #include "apr_allocator.h"
  
  
  

Mime
View raw message