FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Return the FS path for the parent path chain object CHILD relative
   to its ANCESTOR in the same chain, allocated in POOL.  */
Return the FS path for the parent path chain object CHILD relative
to its ANCESTOR in the same chain, allocated in POOL.
Return the FS path for the parent path chain object CHILD relative to its ANCESTOR in the same chain allocated in POOL .
static const char *
parent_path_relpath(parent_path_t *child,
                    parent_path_t *ancestor,
                    apr_pool_t *pool)
{
  const char *path_so_far = "";
  parent_path_t *this_node = child;
  while (this_node != ancestor)
    {
      assert(this_node != NULL);
      path_so_far = svn_relpath_join(this_node->entry, path_so_far, pool);
      this_node = this_node->parent;
    }
  return path_so_far;
}
static const char * parent_path_relpath ( parent_path_t * child , parent_path_t * ancestor , apr_pool_t * pool ) { const char * path_so_far = " " ; parent_path_t * this_node = child ; while ( this_node != ancestor ) { assert ( this_node != NULL ) ; path_so_far = svn_relpath_join ( this_node -> entry , path_so_far , pool ) ; this_node = this_node -> parent ; } return path_so_far ; }
Return the FS path for the parent path chain object CHILD relative
to its ANCESTOR in the same chain, allocated in POOL.
Return the FS path for the parent path chain object CHILD relative to its ANCESTOR in the same chain allocated in POOL .