You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by je...@apache.org on 2001/07/07 20:53:17 UTC

cvs commit: apr/include apr_pools.h

jerenkrantz    01/07/07 11:53:17

  Modified:    include  apr_pools.h
  Log:
  When David moved the code from lib/ to memory/unix, they made these
  functions accessible only when APR_POOL_DEBUG is defined.  They forgot
  to update the headers.  This gets us building again.
  
  David's POOLS_ARE_SMS patch has better reorganization (and includes this
  fix).  This works for now.
  
  Revision  Changes    Path
  1.51      +14 -14    apr/include/apr_pools.h
  
  Index: apr_pools.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_pools.h,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- apr_pools.h	2001/06/13 16:10:16	1.50
  +++ apr_pools.h	2001/07/07 18:53:17	1.51
  @@ -156,6 +156,20 @@
    */
   APR_DECLARE(apr_pool_t *) apr_find_pool(const void *ts);
   
  +/**
  + * Report the number of bytes currently in the pool
  + * @param p The pool to inspect
  + * @param recurse Recurse/include the subpools' sizes
  + * @return The number of bytes
  + */
  +APR_DECLARE(apr_size_t) apr_pool_num_bytes(apr_pool_t *p, int recurse);
  +
  +/**
  + * Report the number of bytes currently in the list of free blocks
  + * @return The number of bytes
  + */
  +APR_DECLARE(apr_size_t) apr_pool_free_blocks_num_bytes(void);
  +
   /* @} */
   
   #else
  @@ -299,20 +313,6 @@
    * @remark This will actually free the memory
    */
   APR_DECLARE(void) apr_pool_destroy(apr_pool_t *p);
  -
  -/**
  - * Report the number of bytes currently in the pool
  - * @param p The pool to inspect
  - * @param recurse Recurse/include the subpools' sizes
  - * @return The number of bytes
  - */
  -APR_DECLARE(apr_size_t) apr_pool_num_bytes(apr_pool_t *p, int recurse);
  -
  -/**
  - * Report the number of bytes currently in the list of free blocks
  - * @return The number of bytes
  - */
  -APR_DECLARE(apr_size_t) apr_pool_free_blocks_num_bytes(void);
   
   /**
    * Allocate a block of memory from a pool