From 866a6ca0e749f4446b7fdc7579a6d553df85ec10 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 5 Jan 2022 14:27:09 -0800 Subject: Moved includes to its own directory --- src/lib/ll.h | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/lib/ll.h (limited to 'src/lib/ll.h') diff --git a/src/lib/ll.h b/src/lib/ll.h deleted file mode 100644 index ab4148d..0000000 --- a/src/lib/ll.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef LIB_LL_H -#define LIB_LL_H - -struct LL { - struct LL* prev; - struct LL* next; - void* data; -}; - -struct LL* new_ll(void* val); -void push_ll(struct LL* l, void* val); -void remove_ll(struct LL* l, unsigned long idx); - -#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 -- cgit v1.2.1