FreeBSD/contrib/subversion/subversion/libsvn_fs_x/cached_data.c
/* Given a node-id ID, and a representation REP in filesystem FS, open
   the correct file and seek to the correction location.  Store this
   file in *FILE_P.

   Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL. */
Given a node-id ID, and a representation REP in filesystem FS, open
the correct file and seek to the correction location.  Store this
file in *FILE_P.

Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL.
Given a node - id ID and a representation REP in filesystem FS open the correct file and seek to the correction location . Store this file in * FILE_P . Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL .
static svn_error_t *
open_and_seek_representation(svn_fs_x__revision_file_t **file_p,
                             svn_fs_t *fs,
                             svn_fs_x__representation_t *rep,
                             apr_pool_t *result_pool,
                             apr_pool_t *scratch_pool)
{
  if (svn_fs_x__is_revision(rep->id.change_set))
    return open_and_seek_revision(file_p, fs, &rep->id, result_pool,
                                  scratch_pool);
  else
    return open_and_seek_transaction(file_p, fs, rep, result_pool,
                                     scratch_pool);
}
static svn_error_t * open_and_seek_representation ( svn_fs_x__revision_file_t * * file_p , svn_fs_t * fs , svn_fs_x__representation_t * rep , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { if ( svn_fs_x__is_revision ( rep -> id . change_set ) ) return open_and_seek_revision ( file_p , fs , & rep -> id , result_pool , scratch_pool ) ; else return open_and_seek_transaction ( file_p , fs , rep , result_pool , scratch_pool ) ; }
Given a node-id ID, and a representation REP in filesystem FS, open
the correct file and seek to the correction location.
Given a node - id ID and a representation REP in filesystem FS open the correct file and seek to the correction location .