FreeBSD/contrib/subversion/subversion/libsvn_fs_x/changes.c
/* Create and return a new container object, allocated in RESULT_POOL with
 * an initial capacity of INITIAL_COUNT changes.  The PATH and BUILDER
 * members must be initialized by the caller afterwards.
 */
Create and return a new container object, allocated in RESULT_POOL with
an initial capacity of INITIAL_COUNT changes.  The PATH and BUILDER
members must be initialized by the caller afterwards.
Create and return a new container object allocated in RESULT_POOL with an initial capacity of INITIAL_COUNT changes . The PATH and BUILDER members must be initialized by the caller afterwards .
static svn_fs_x__changes_t *
changes_create_body(apr_size_t initial_count,
                    apr_pool_t *result_pool)
{
  svn_fs_x__changes_t *changes = apr_pcalloc(result_pool, sizeof(*changes));
  changes->changes = apr_array_make(result_pool, (int)initial_count,
                                    sizeof(binary_change_t));
  changes->offsets = apr_array_make(result_pool, 16, sizeof(int));
  APR_ARRAY_PUSH(changes->offsets, int) = 0;
  return changes;
}
static svn_fs_x__changes_t * changes_create_body ( apr_size_t initial_count , apr_pool_t * result_pool ) { svn_fs_x__changes_t * changes = apr_pcalloc ( result_pool , sizeof ( * changes ) ) ; changes -> changes = apr_array_make ( result_pool , ( int ) initial_count , sizeof ( binary_change_t ) ) ; changes -> offsets = apr_array_make ( result_pool , 16 , sizeof ( int ) ) ; APR_ARRAY_PUSH ( changes -> offsets , int ) = 0 ; return changes ; }
Create and return a new container object, allocated in RESULT_POOL with
 an initial capacity of INITIAL_COUNT changes.
Create and return a new container object allocated in RESULT_POOL with an initial capacity of INITIAL_COUNT changes .