Datafile: custom res was actually introduced in 3.3.0
[rofl0r-agsutils.git] / List.h
blob0a04103529bea16caf28aef3471b120651d5acdb
1 #ifndef LIST_H
2 #define LIST_H
4 #include "MemGrow.h"
5 #include <stddef.h>
7 typedef struct List {
8 MG* mem, mem_b;
9 size_t count;
10 size_t itemsize;
11 } List;
13 #define List_size(X) ((X)->count)
15 void List_init(List *l, size_t itemsize);
16 void List_free(List *l);
17 int List_add(List *l, void* item);
18 int List_get(List *l, size_t index, void* item);
19 void List_sort(List *l, int(*compar)(const void *, const void *));
21 #pragma RcB2 DEP "List.c"
23 #endif