Go to the documentation of this file.
58 #define list_push(L, E) (L)->push(L, E)
59 #define list_pop(L) (L)->pop(L)
60 #define list_empty(L) (L)->empty(L)
61 #define list_get(L, N) (L)->get((list_t *)L, N)
62 #define list_replace(L, N, E) (L)->replace((list_t *)L, N, E)
63 #define list_add(L, N) (L)->push(L, N)
64 #define list_size(L) (L)->size(L)
65 #define list_iterator_reset(L) (L)->iterator_reset(L)
66 #define list_iterator_next(L) (L)->iterator_next(L)
67 #define list_destroy(L) (*(L))->destroy(L)
68 #define list_shift(L) (L)->shift(L)
71 int (*push)(list_t *, void *); \
72 void *(*pop)(list_t *); \
73 int (*empty)(const list_t *); \
74 void *(*get)(const list_t *, size_t index); \
75 int (*replace)(list_t *, size_t index, void *); \
76 size_t (*size)(const list_t *); \
77 void (*iterator_reset)(list_t *); \
78 void *(*iterator_next)(list_t *); \
79 void (*destroy)(list_t **); \
80 void *(*shift)(list_t *)