degesch: implement /buffer move

This commit is contained in:
2015-06-21 19:23:52 +02:00
parent b3a80630aa
commit b56245cf5b
2 changed files with 42 additions and 5 deletions

View File

@@ -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)
{