summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
871a94f)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
+ static inline type **prefix##_list_last(type **list) { \
+ while (*list) { \
+ list = &(*list)->next; \
+ } \
+ return list; \
+ } \
+ \
+ static inline type **prefix##_list_append(type **list, type *item) { \
+ list = prefix##_list_last(list); \
+ *list = item; \
+ return list; \
+ } \
+ \
static inline type **prefix##_list_init(type **list) { \
*list = NULL; \
return list; \
static inline type **prefix##_list_init(type **list) { \
*list = NULL; \
return list; \