You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by dr...@apache.org on 2001/07/07 09:21:15 UTC
cvs commit: apr/memory/unix apr_pools.c
dreid 01/07/07 00:21:15
Modified: memory/unix apr_pools.c
Log:
As far as Sander and I can tell the num_bytes functions are
debug only and not used anywhere in the apache code, so they
should be hidden behind the pool debug checks.
Revision Changes Path
1.99 +6 -5 apr/memory/unix/apr_pools.c
Index: apr_pools.c
===================================================================
RCS file: /home/cvs/apr/memory/unix/apr_pools.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -r1.98 -r1.99
--- apr_pools.c 2001/06/13 16:10:18 1.98
+++ apr_pools.c 2001/07/07 07:21:14 1.99
@@ -941,6 +941,12 @@
free_blocks(blok);
}
+
+/*****************************************************************
+ * APR_POOL_DEBUG support
+ */
+#ifdef APR_POOL_DEBUG
+
APR_DECLARE(apr_size_t) apr_pool_num_bytes(apr_pool_t *p, int recurse)
{
apr_size_t total_bytes = bytes_in_block_list(p->first);
@@ -956,11 +962,6 @@
{
return bytes_in_block_list(block_freelist);
}
-
-/*****************************************************************
- * APR_POOL_DEBUG support
- */
-#ifdef APR_POOL_DEBUG
/* the unix linker defines this symbol as the last byte + 1 of
* the executable... so it includes TEXT, BSS, and DATA