FreeBSD/contrib/subversion/subversion/libsvn_repos/dump.c
/* Return a reference to the stack entry in TRACKER for PATH.  If no
   suitable entry exists, add one.  Implicitly updates the tracked tree
   location.

   Only the PATH member of the result is being updated.  All other members
   will have undefined values.
 */
Return a reference to the stack entry in TRACKER for PATH.  If no
suitable entry exists, add one.  Implicitly updates the tracked tree
location.

Only the PATH member of the result is being updated.  All other members
will have undefined values.
Return a reference to the stack entry in TRACKER for PATH . If no suitable entry exists add one . Implicitly updates the tracked tree location . Only the PATH member of the result is being updated . All other members will have undefined values .
static path_tracker_entry_t *
tracker_add_entry(path_tracker_t *tracker,
                  const char *path)
{
  path_tracker_entry_t *entry;
  tracker_trim(tracker, path, FALSE);
  if (tracker->depth == tracker->stack->nelts)
    {
      entry = apr_array_push(tracker->stack);
      entry->path = svn_stringbuf_create_empty(tracker->pool);
      entry->copyfrom_path = svn_stringbuf_create_empty(tracker->pool);
    }
  else
    {
      entry = &APR_ARRAY_IDX(tracker->stack, tracker->depth,
                             path_tracker_entry_t);
    }
  svn_stringbuf_set(entry->path, path);
  ++tracker->depth;
  return entry;
}
static path_tracker_entry_t * tracker_add_entry ( path_tracker_t * tracker , const char * path ) { path_tracker_entry_t * entry ; tracker_trim ( tracker , path , FALSE ) ; if ( tracker -> depth == tracker -> stack -> nelts ) { entry = apr_array_push ( tracker -> stack ) ; entry -> path = svn_stringbuf_create_empty ( tracker -> pool ) ; entry -> copyfrom_path = svn_stringbuf_create_empty ( tracker -> pool ) ; } else { entry = & APR_ARRAY_IDX ( tracker -> stack , tracker -> depth , path_tracker_entry_t ) ; } svn_stringbuf_set ( entry -> path , path ) ; ++ tracker -> depth ; return entry ; }
Return a reference to the stack entry in TRACKER for PATH.
Return a reference to the stack entry in TRACKER for PATH .