base/list/m_list.c
/*! Grows the array if necessary. */
Grows the array if necessary.
Grows the array if necessary .
static void M_list_grow(M_list_t *d)
{
	if (d == NULL) {
		return;
	}
	M_list_shift_data(d, M_FALSE);
	if (d->elements == d->allocated) {
		d->allocated <<= 1;
		d->base        = M_realloc(d->base, sizeof(*d->base)*d->allocated);
		d->start       = d->base;
	}
}
static void M_list_grow ( M_list_t * d ) { if ( d == NULL ) { return ; } M_list_shift_data ( d , M_FALSE ) ; if ( d -> elements == d -> allocated ) { d -> allocated <<= 1 ; d -> base = M_realloc ( d -> base , sizeof ( * d -> base ) * d -> allocated ) ; d -> start = d -> base ; } }
Grows the array if necessary.
Grows the array if necessary .