diff options
Diffstat (limited to 'src/lib/q.h')
-rw-r--r-- | src/lib/q.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/lib/q.h b/src/lib/q.h deleted file mode 100644 index cf75c6d..0000000 --- a/src/lib/q.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef LIB_Q_H -#define LIB_Q_H - -struct Q_base { - struct Q* next; - struct Q* last; -}; - -struct Q { - struct Q* next; - void* data; -}; - -struct Q_base* new_q(); -void push_q(struct Q_base* qb, void* val); -void pop_q(struct Q_base* qb); - -#define show_q(QQ, TYPE) { \ - if (QQ->next != 0) { \ - struct Q* t = QQ->next; \ - while (t->next != 0) { \ - uart_hex(*(TYPE*)t->data); \ - t = t->next; \ - uart_char(' '); \ - } \ - uart_hex(*(TYPE*)t->data); \ - } \ -} - -#endif |