Loading...
Searching...
No Matches
Go to the documentation of this file.
16#define a_List_resize(list,num_items,alloc_step) \
18 list = dMalloc(alloc_step * sizeof(*list)); \
20 if (num_items >= alloc_step){ \
21 while ( num_items >= alloc_step ) \
23 list = dRealloc(list, alloc_step * sizeof(*list)); \
30#define a_List_add(list,num_items,alloc_step) \
31 a_List_resize(list,num_items,alloc_step)
38#define a_List_remove(list, item, num_items) \
39 if (list && item < num_items) { \
40 list[item] = list[--num_items]; \