/** * Store a range on the queue and a copy in the range array * @param d the dom object * @param r the range to add * @return 1 if successful */ static int dom_store_range( dom *d, range *r ) { int res = queue_push( d->q, r ); if ( res ) res = range_array_add( d->ranges,r ); return res; }
void type_add_dim(type_t t, range_t r) { range_array_add(&(lookup_item(t, I_DIMS)->range_array), r); }