summaryrefslogtreecommitdiff
path: root/qmic.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-01-30 15:55:49 -0800
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-01-30 15:55:49 -0800
commit4c693b75514c3ae5fbe68d373911ad5825b5a81c (patch)
tree1c49ef6dfdcaa46b3edfb335ea196a904f645f39 /qmic.h
parentb4e899fffcf25c28a88317c4472d06b37f4018c0 (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.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/qmic.h b/qmic.h
index 1e81f50..202d0da 100644
--- a/qmic.h
+++ b/qmic.h
@@ -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,