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

📄 compat.c

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 C
字号:
/* * compat.c :  Wrappers and callbacks for compatibility. * * ==================================================================== * Copyright (c) 2005 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 <apr_pools.h>#include <apr_strings.h>#include "svn_types.h"#include "svn_error.h"/* Baton for use with svn_compat_wrap_commit_callback */struct commit_wrapper_baton {  void *baton;  svn_commit_callback_t callback;};/* This implements svn_commit_callback2_t. */static svn_error_t *commit_wrapper_callback(const svn_commit_info_t *commit_info,                        void *baton, apr_pool_t *pool){  struct commit_wrapper_baton *cwb = baton;  if (cwb->callback)    return cwb->callback(commit_info->revision,                         commit_info->date,                         commit_info->author,                         cwb->baton);  return SVN_NO_ERROR;}voidsvn_compat_wrap_commit_callback(svn_commit_callback2_t *callback2,                                void **callback2_baton,                                svn_commit_callback_t callback,                                void *callback_baton,                                apr_pool_t *pool){  struct commit_wrapper_baton *cwb = apr_palloc(pool, sizeof(*cwb));  /* Set the user provided old format callback in the baton */  cwb->baton = callback_baton;  cwb->callback = callback;  *callback2_baton = cwb;  *callback2 = commit_wrapper_callback;}

⌨️ 快捷键说明

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