FreeBSD/contrib/subversion/subversion/libsvn_fs_x/cached_data.c
/* Return TRUE when all svn_fs_x__dirent_t* in ENTRIES are already sorted
   by their respective name. */
Return TRUE when all svn_fs_x__dirent_t* in ENTRIES are already sorted
by their respective name.
Return TRUE when all svn_fs_x__dirent_t * in ENTRIES are already sorted by their respective name .
static svn_boolean_t
sorted(apr_array_header_t *entries)
{
  int i;
  const svn_fs_x__dirent_t * const *dirents = (const void *)entries->elts;
  for (i = 0; i < entries->nelts-1; ++i)
    if (strcmp(dirents[i]->name, dirents[i+1]->name) > 0)
      return FALSE;
  return TRUE;
}
static svn_boolean_t sorted ( apr_array_header_t * entries ) { int i ; const svn_fs_x__dirent_t * const * dirents = ( const void * ) entries -> elts ; for ( i = 0 ; i < entries -> nelts - 1 ; ++ i ) if ( strcmp ( dirents [ i ] -> name , dirents [ i + 1 ] -> name ) > 0 ) return FALSE ; return TRUE ; }
Return TRUE when all svn_fs_x__dirent_t* in ENTRIES are already sorted
by their respective name.
Return TRUE when all svn_fs_x__dirent_t * in ENTRIES are already sorted by their respective name .