apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r168121 - /apr/apr/trunk/tables/apr_hash.c
Date Wed, 04 May 2005 13:03:24 GMT
Author: jorton
Date: Wed May  4 06:03:23 2005
New Revision: 168121

URL: http://svn.apache.org/viewcvs?rev=168121&view=rev
Log:
* tables/apr_hash.c (apr_hash_merge): Enable pool lifetime debugging.

Modified:
    apr/apr/trunk/tables/apr_hash.c

Modified: apr/apr/trunk/tables/apr_hash.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/tables/apr_hash.c?rev=168121&r1=168120&r2=168121&view=diff
==============================================================================
--- apr/apr/trunk/tables/apr_hash.c (original)
+++ apr/apr/trunk/tables/apr_hash.c Wed May  4 06:03:23 2005
@@ -28,6 +28,9 @@
 #include <string.h>
 #endif
 
+#if APR_POOL_DEBUG && APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
 
 /*
  * The internal form of a hash table.
@@ -387,19 +390,19 @@
     apr_hash_entry_t *ent;
     unsigned int i,j,k;
 
-#ifdef POOL_DEBUG
+#if APR_POOL_DEBUG
     /* we don't copy keys and values, so it's necessary that
      * overlay->a.pool and base->a.pool have a life span at least
      * as long as p
      */
     if (!apr_pool_is_ancestor(overlay->pool, p)) {
         fprintf(stderr,
-                "apr_hash_overlay: overlay's pool is not an ancestor of p\n");
+                "apr_hash_merge: overlay's pool is not an ancestor of p\n");
         abort();
     }
     if (!apr_pool_is_ancestor(base->pool, p)) {
         fprintf(stderr,
-                "apr_hash_overlay: base's pool is not an ancestor of p\n");
+                "apr_hash_merge: base's pool is not an ancestor of p\n");
         abort();
     }
 #endif



Mime
View raw message