the ‘kids don't do this at home’ commit.
[apps/madmutt.git] / lib-lib / list.h
index 918eff8..b1b612e 100644 (file)
@@ -25,9 +25,6 @@
 #ifndef MUTT_LIB_LIB_LIST_H
 #define MUTT_LIB_LIB_LIST_H
 
-#include "mem.h"
-#include "str.h"
-
 #define DO_SLIST(type, prefix, dtor)                                         \
     static inline type *prefix##_list_pop(type **list) {                     \
         if (*list) {                                                         \
@@ -83,6 +80,7 @@ DO_SLIST(string_list_t, string, string_item_delete);
 
 string_list_t *string_list_dup(const string_list_t *);
 
+/* FIXME: b0rken API's, replace that at any cost */
 /* add an element to a list */
 string_list_t *mutt_add_list_n(string_list_t*, const void*, size_t len);
 static inline string_list_t *mutt_add_list(string_list_t *head, const char *data) {
@@ -90,6 +88,4 @@ static inline string_list_t *mutt_add_list(string_list_t *head, const char *data
     return mutt_add_list_n(head, data, len ? len + 1 : 0);
 }
 
-
-
 #endif /* MUTT_LIB_LIB_LIST_H */