diff options
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -49,6 +49,15 @@ // --- To be moved to liberty -------------------------------------------------- +#define LIST_INSERT_WITH_TAIL(head, tail, link, following) \ + BLOCK_START \ + if (following) \ + LIST_APPEND_WITH_TAIL ((head), (following)->prev, (link)); \ + else \ + LIST_APPEND_WITH_TAIL ((head), (tail), (link)); \ + (link)->next = (following); \ + BLOCK_END + static void split_str (const char *s, char delimiter, struct str_vector *out) { |