Go to the source code of this file.
◆ a_List_add
#define a_List_add |
( |
|
list, |
|
|
|
num_items, |
|
|
|
alloc_step |
|
) |
| a_List_resize(list,num_items,alloc_step) |
◆ a_List_remove
#define a_List_remove |
( |
|
list, |
|
|
|
item, |
|
|
|
num_items |
|
) |
| |
Value:if (list && item < num_items) { \
list[item] = list[--num_items]; \
}
Definition at line 43 of file list.h.
◆ a_List_resize
#define a_List_resize |
( |
|
list, |
|
|
|
num_items, |
|
|
|
alloc_step |
|
) |
| |
Value:if (!list) { \
list =
dMalloc(alloc_step *
sizeof(*list)); \
} \
if (num_items >= alloc_step){ \
while ( num_items >= alloc_step ) \
alloc_step <<= 1; \
list =
dRealloc(list, alloc_step *
sizeof(*list)); \
}
Definition at line 17 of file list.h.