summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2019-07-17 12:41:17 +0000
committerRainer Jung <rjung@apache.org>2019-07-17 12:41:17 +0000
commitb6e316942278593c493d9077a64dd08bab527b9b (patch)
tree8cac5c30193062b635795f967a1a671753a91c92 /memory
parent21f764874ec0ca7c06a8e5ff045cff225eadf510 (diff)
downloadapr-b6e316942278593c493d9077a64dd08bab527b9b.tar.gz
Add empty stubs for APR pool functions, that are
only needed when APR_POOL_DEBUG is defined, but can be aor should be called from app code. Providing stubs allows the app code to stay the same when running with or without debugging APR lib (no need for app recompilation). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1863217 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'memory')
-rw-r--r--memory/unix/apr_pools.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/memory/unix/apr_pools.c b/memory/unix/apr_pools.c
index 0ca715efa..94c1a17e9 100644
--- a/memory/unix/apr_pools.c
+++ b/memory/unix/apr_pools.c
@@ -2840,13 +2840,13 @@ static void free_proc_chain(struct process_chain *procs)
}
}
+#if !APR_POOL_DEBUG
/*
* Pool creation/destruction stubs, for people who are running
* mixed release/debug enviroments.
*/
-#if !APR_POOL_DEBUG
APR_DECLARE(void *) apr_palloc_debug(apr_pool_t *pool, apr_size_t size,
const char *file_line)
{
@@ -2888,6 +2888,33 @@ APR_DECLARE(apr_status_t) apr_pool_create_unmanaged_ex_debug(apr_pool_t **newpoo
return apr_pool_create_unmanaged_ex(newpool, abort_fn, allocator);
}
+/*
+ * Other stubs, for people who are running
+ * mixed release/debug enviroments.
+ */
+
+APR_DECLARE(void) apr_pool_owner_set(apr_pool_t *pool, apr_uint32_t flags)
+{
+}
+
+APR_DECLARE(void) apr_pool_join(apr_pool_t *p, apr_pool_t *sub)
+{
+}
+
+APR_DECLARE(apr_pool_t *) apr_pool_find(const void *mem)
+{
+ return NULL;
+}
+
+APR_DECLARE(apr_size_t) apr_pool_num_bytes(apr_pool_t *pool, int recurse)
+{
+ return 0;
+}
+
+APR_DECLARE(void) apr_pool_lock(apr_pool_t *pool, int flag)
+{
+}
+
#else /* APR_POOL_DEBUG */
#undef apr_palloc