⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pool.c

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 C
字号:
/* pool.c:  pool wrappers for Subversion * * ==================================================================== * Copyright (c) 2000-2004 CollabNet.  All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution.  The terms * are also available at http://subversion.tigris.org/license-1.html. * If newer versions of this license are posted there, you may use a * newer version instead, at your option. * * This software consists of voluntary contributions made by many * individuals.  For exact contribution history, see the revision * history and logs, available at http://subversion.tigris.org/. * ==================================================================== */#include <stdarg.h>#include <stdlib.h>#include <assert.h>#include <apr_general.h>#include <apr_pools.h>#include "svn_pools.h"#if APR_POOL_DEBUG/* file_line for the non-debug case. */static const char SVN_FILE_LINE_UNDEFINED[] = "svn:<undefined>";#endif /* APR_POOL_DEBUG *//*-----------------------------------------------------------------*//* Pool allocation handler which just aborts, since we aren't generally   prepared to deal with out-of-memory rerors. */static intabort_on_pool_failure(int retcode){  abort();  return -1; /* prevent compiler warnings */}#if APR_POOL_DEBUG#undef svn_pool_create_ex#endif /* APR_POOL_DEBUG */#if !APR_POOL_DEBUGapr_pool_t *svn_pool_create_ex(apr_pool_t *parent_pool, apr_allocator_t *allocator){  apr_pool_t *pool;  apr_pool_create_ex(&pool, parent_pool, abort_on_pool_failure, allocator);  return pool;}/* Wrapper that ensures binary compatibility */apr_pool_t *svn_pool_create_ex_debug(apr_pool_t *pool, apr_allocator_t *allocator,                         const char *file_line){  return svn_pool_create_ex(pool, allocator);}#else /* APR_POOL_DEBUG */apr_pool_t *svn_pool_create_ex_debug(apr_pool_t *parent_pool, apr_allocator_t *allocator,                         const char *file_line){  apr_pool_t *pool;  apr_pool_create_ex_debug(&pool, parent_pool, abort_on_pool_failure,                           allocator, file_line);  return pool;}/* Wrapper that ensures binary compatibility */apr_pool_t *svn_pool_create_ex(apr_pool_t *pool, apr_allocator_t *allocator){  return svn_pool_create_ex_debug(pool, allocator, SVN_FILE_LINE_UNDEFINED);}#endif /* APR_POOL_DEBUG */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -