FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Return a deep copy of SOURCE and allocate it in RESULT_POOL.
 */
Return a deep copy of SOURCE and allocate it in RESULT_POOL.
Return a deep copy of SOURCE and allocate it in RESULT_POOL .
static svn_fs_path_change2_t *
path_change_dup(const svn_fs_path_change2_t *source,
                apr_pool_t *result_pool)
{
  svn_fs_path_change2_t *result = apr_pmemdup(result_pool, source,
                                              sizeof(*source));
  result->node_rev_id = svn_fs_fs__id_copy(source->node_rev_id, result_pool);
  if (source->copyfrom_path)
    result->copyfrom_path = apr_pstrdup(result_pool, source->copyfrom_path);
  return result;
}
static svn_fs_path_change2_t * path_change_dup ( const svn_fs_path_change2_t * source , apr_pool_t * result_pool ) { svn_fs_path_change2_t * result = apr_pmemdup ( result_pool , source , sizeof ( * source ) ) ; result -> node_rev_id = svn_fs_fs__id_copy ( source -> node_rev_id , result_pool ) ; if ( source -> copyfrom_path ) result -> copyfrom_path = apr_pstrdup ( result_pool , source -> copyfrom_path ) ; return result ; }
Return a deep copy of SOURCE and allocate it in RESULT_POOL.
Return a deep copy of SOURCE and allocate it in RESULT_POOL .