diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-01-30 15:55:49 -0800 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2018-01-30 15:55:49 -0800 |
commit | 4c693b75514c3ae5fbe68d373911ad5825b5a81c (patch) | |
tree | 1c49ef6dfdcaa46b3edfb335ea196a904f645f39 /qmic.h | |
parent | b4e899fffcf25c28a88317c4472d06b37f4018c0 (diff) |
qmic: Adopt common list implementation
Use the list implementation from other projects instead of rolling
custom list operations throughout the codebase.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'qmic.h')
-rw-r--r-- | qmic.h | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -3,21 +3,6 @@ #include <stdbool.h> -#define LIST_HEAD(type, name) \ -struct { \ - struct type *head; \ - struct type *tail; \ -} name; - -#define LIST_ADD(list, elem) \ - if (list.tail) { \ - list.tail->next = elem; \ - list.tail = elem; \ - } else { \ - list.tail = elem; \ - list.head = elem; \ - } - enum { TOK_CONST = 256, TOK_ID, |