FreeBSD/contrib/subversion/subversion/libsvn_client/info.c
/* Set *INFO to a new info struct built from DIRENT
   and (possibly NULL) svn_lock_t LOCK, all allocated in POOL.
   Pointer fields are copied by reference, not dup'd. */
Set *INFO to a new info struct built from DIRENT
and (possibly NULL) svn_lock_t LOCK, all allocated in POOL.
Pointer fields are copied by reference, not dup'd.
Set * INFO to a new info struct built from DIRENT and ( possibly NULL ) svn_lock_t LOCK all allocated in POOL . Pointer fields are copied by reference not dup ' d .
static svn_error_t *
build_info_from_dirent(svn_client_info2_t **info,
                       const svn_dirent_t *dirent,
                       svn_lock_t *lock,
                       const svn_client__pathrev_t *pathrev,
                       apr_pool_t *pool)
{
  svn_client_info2_t *tmpinfo = apr_pcalloc(pool, sizeof(*tmpinfo));
  tmpinfo->URL                  = pathrev->url;
  tmpinfo->rev                  = pathrev->rev;
  tmpinfo->kind                 = dirent->kind;
  tmpinfo->repos_UUID           = pathrev->repos_uuid;
  tmpinfo->repos_root_URL       = pathrev->repos_root_url;
  tmpinfo->last_changed_rev     = dirent->created_rev;
  tmpinfo->last_changed_date    = dirent->time;
  tmpinfo->last_changed_author  = dirent->last_author;
  tmpinfo->lock                 = lock;
  tmpinfo->size                 = dirent->size;
  tmpinfo->wc_info              = NULL;
  *info = tmpinfo;
  return SVN_NO_ERROR;
}
static svn_error_t * build_info_from_dirent ( svn_client_info2_t * * info , const svn_dirent_t * dirent , svn_lock_t * lock , const svn_client__pathrev_t * pathrev , apr_pool_t * pool ) { svn_client_info2_t * tmpinfo = apr_pcalloc ( pool , sizeof ( * tmpinfo ) ) ; tmpinfo -> URL = pathrev -> url ; tmpinfo -> rev = pathrev -> rev ; tmpinfo -> kind = dirent -> kind ; tmpinfo -> repos_UUID = pathrev -> repos_uuid ; tmpinfo -> repos_root_URL = pathrev -> repos_root_url ; tmpinfo -> last_changed_rev = dirent -> created_rev ; tmpinfo -> last_changed_date = dirent -> time ; tmpinfo -> last_changed_author = dirent -> last_author ; tmpinfo -> lock = lock ; tmpinfo -> size = dirent -> size ; tmpinfo -> wc_info = NULL ; * info = tmpinfo ; return SVN_NO_ERROR ; }
Set *INFO to a new info struct built from DIRENT
and (possibly NULL) svn_lock_t LOCK, all allocated in POOL.
Set * INFO to a new info struct built from DIRENT and ( possibly NULL ) svn_lock_t LOCK all allocated in POOL .