46 #define APR_WANT_MEMFUNC
81 #define APR_POOL_DECLARE_ACCESSOR(type) \
82 APR_DECLARE(apr_pool_t *) apr_##type##_pool_get \
83 (const apr_##type##_t *the##type)
91 #define APR_POOL_IMPLEMENT_ACCESSOR(type) \
92 APR_DECLARE(apr_pool_t *) apr_##type##_pool_get \
93 (const apr_##type##_t *the##type) \
94 { return the##type->pool; }
132 #if defined(APR_POOL_DEBUG)
134 #if (APR_POOL_DEBUG - APR_POOL_DEBUG -1 == 1)
135 #undef APR_POOL_DEBUG
136 #define APR_POOL_DEBUG 1
139 #define APR_POOL_DEBUG 0
143 #define APR_POOL__FILE_LINE__ __FILE__ ":" APR_STRINGIFY(__LINE__)
179 #include "apr_allocator.h"
200 __attribute__((nonnull(1)));
229 __attribute__((nonnull(1)));
251 const
char *file_line)
252 __attribute__((nonnull(1)));
255 #define apr_pool_create_ex(newpool, parent, abort_fn, allocator) \
256 apr_pool_create_ex_debug(newpool, parent, abort_fn, allocator, \
257 APR_POOL__FILE_LINE__)
267 const
char *file_line);
287 const
char *file_line)
288 __attribute__((nonnull(1)));
291 #define apr_pool_create_core_ex(newpool, abort_fn, allocator) \
292 apr_pool_create_unmanaged_ex_debug(newpool, abort_fn, allocator, \
293 APR_POOL__FILE_LINE__)
295 #define apr_pool_create_unmanaged_ex(newpool, abort_fn, allocator) \
296 apr_pool_create_unmanaged_ex_debug(newpool, abort_fn, allocator, \
297 APR_POOL__FILE_LINE__)
318 #define apr_pool_create(newpool, parent) \
319 apr_pool_create_ex_debug(newpool, parent, NULL, NULL, \
320 APR_POOL__FILE_LINE__)
322 #define apr_pool_create(newpool, parent) \
323 apr_pool_create_ex(newpool, parent, NULL, NULL)
336 #define apr_pool_create_core(newpool) \
337 apr_pool_create_unmanaged_ex_debug(newpool, NULL, NULL, \
338 APR_POOL__FILE_LINE__)
339 #define apr_pool_create_unmanaged(newpool) \
340 apr_pool_create_unmanaged_ex_debug(newpool, NULL, NULL, \
341 APR_POOL__FILE_LINE__)
343 #define apr_pool_create_core(newpool) \
344 apr_pool_create_unmanaged_ex(newpool, NULL, NULL)
345 #define apr_pool_create_unmanaged(newpool) \
346 apr_pool_create_unmanaged_ex(newpool, NULL, NULL)
355 __attribute__((nonnull(1)));
381 const
char *file_line)
382 __attribute__((nonnull(1)));
385 #define apr_pool_clear(p) \
386 apr_pool_clear_debug(p, APR_POOL__FILE_LINE__)
411 const
char *file_line)
412 __attribute__((nonnull(1)));
415 #define apr_pool_destroy(p) \
416 apr_pool_destroy_debug(p, APR_POOL__FILE_LINE__)
431 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
432 __attribute__((alloc_size(2)))
434 __attribute__((nonnull(1)));
445 const
char *file_line)
446 #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
447 __attribute__((alloc_size(2)))
449 __attribute__((nonnull(1)));
452 #define apr_palloc(p, size) \
453 apr_palloc_debug(p, size, APR_POOL__FILE_LINE__)
464 #elif !APR_POOL_DEBUG
465 #define apr_pcalloc(p, size) memset(apr_palloc(p, size), 0, size)
477 const
char *file_line)
478 __attribute__((nonnull(1)));
481 #define apr_pcalloc(p, size) \
482 apr_pcalloc_debug(p, size, APR_POOL__FILE_LINE__)
500 __attribute__((nonnull(2)));
508 __attribute__((nonnull(1)));
516 __attribute__((nonnull(1)));
537 __attribute__((nonnull(1)));
567 __attribute__((nonnull(2,4)));
589 const
void *data, const
char *key,
592 __attribute__((nonnull(2,4)));
602 __attribute__((nonnull(1,2,3)));
632 __attribute__((nonnull(3,4)));
649 __attribute__((nonnull(3)));
665 __attribute__((nonnull(3)));
683 __attribute__((nonnull(3,4)));
698 __attribute__((nonnull(3)));
761 #if APR_POOL_DEBUG || defined(DOXYGEN)
768 __attribute__((nonnull(2)));
784 __attribute__((nonnull(1)));
800 #define apr_pool_join(a,b)
805 #define apr_pool_lock(pool, lock)