aboutsummaryrefslogtreecommitdiff
path: root/include/lib/q.h
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 23:55:05 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 23:55:05 -0700
commite3eb5a92ae3991cdfbb5a5cf553eac476bc5822f (patch)
treeb6f8b98b8e9b970dc08c218c07b1351b0eaf2944 /include/lib/q.h
parent1b14e08247393af5f4e8f2a3c31406ce750ca2f0 (diff)
Removed old mem
Diffstat (limited to 'include/lib/q.h')
-rw-r--r--include/lib/q.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/include/lib/q.h b/include/lib/q.h
deleted file mode 100644
index 11d7ab7..0000000
--- a/include/lib/q.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef LIB_Q_H
-#define LIB_Q_H
-
-struct Q_base {
- struct Q* next;
- struct Q* last;
-} __attribute__((packed));
-
-struct Q {
- struct Q* next;
- void* data;
-} __attribute__((packed));
-
-struct Q_base* new_q();
-void push_q(struct Q_base* qb, void* val);
-void pop_q(struct Q_base* qb);
-unsigned long length_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