aboutsummaryrefslogtreecommitdiff
path: root/include/lib/ll.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/ll.h
parent1b14e08247393af5f4e8f2a3c31406ce750ca2f0 (diff)
Removed old mem
Diffstat (limited to 'include/lib/ll.h')
-rw-r--r--include/lib/ll.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/include/lib/ll.h b/include/lib/ll.h
deleted file mode 100644
index a9c3722..0000000
--- a/include/lib/ll.h
+++ /dev/null
@@ -1,26 +0,0 @@
-#ifndef LIB_LL_H
-#define LIB_LL_H
-
-struct LL {
- struct LL* prev;
- struct LL* next;
- void* data;
-} __attribute__((packed));
-
-struct LL* new_ll(void* val);
-void push_ll(struct LL* l, void* val);
-void pop_ll(struct LL* l);
-void remove_ll(struct LL* l, unsigned long idx);
-unsigned long length_ll(struct LL* l);
-
-#define show_ll(L, TYPE) { \
- struct LL* t = L; \
- do { \
- uart_hex(*(TYPE*)t->data); \
- t = t->next; \
- if (t != l) \
- uart_char(' '); \
- } while (t != l); \
-}
-
-#endif