FreeBSD/contrib/subversion/subversion/libsvn_subr/cache-membuffer.c
/* Mark previously allocated spare group GROUP in CACHE as "unused".
 */
Mark previously allocated spare group GROUP in CACHE as "unused".
Mark previously allocated spare group GROUP in CACHE as " unused " .
static void
free_spare_group(svn_membuffer_t *cache,
                 entry_group_t *group)
{
  assert(group->header.used == 0);
  assert(group->header.previous != NO_INDEX);
  assert(group - cache->directory >= (apr_ssize_t)cache->group_count);
  cache->directory[group->header.previous].header.next = NO_INDEX;
  group->header.chain_length = 0;
  group->header.previous = NO_INDEX;
  group->header.next = cache->first_spare_group;
  cache->first_spare_group = (apr_uint32_t) (group - cache->directory);
}
static void free_spare_group ( svn_membuffer_t * cache , entry_group_t * group ) { assert ( group -> header . used == 0 ) ; assert ( group -> header . previous != NO_INDEX ) ; assert ( group - cache -> directory >= ( apr_ssize_t ) cache -> group_count ) ; cache -> directory [ group -> header . previous ] . header . next = NO_INDEX ; group -> header . chain_length = 0 ; group -> header . previous = NO_INDEX ; group -> header . next = cache -> first_spare_group ; cache -> first_spare_group = ( apr_uint32_t ) ( group - cache -> directory ) ; }
Mark previously allocated spare group GROUP in CACHE as "unused".
Mark previously allocated spare group GROUP in CACHE as " unused " .
/* unchain */ /* add to chain of spares */