summaryrefslogtreecommitdiff
path: root/include/rune_list.h
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2024-08-30 01:31:27 -0500
committerDanny Holman <dholman@gymli.org>2024-08-30 01:31:27 -0500
commit1ce6031a42d22a0f2be566e1873377ab2cda66c8 (patch)
treee1d38c3458a8202391cd1b017de0ae6bc0661ca7 /include/rune_list.h
parent6b13ea53aeedb646b082a13bf16f67f8556087ae (diff)
Makefile: retool the build systemv0.55
Retool the build system to be more modular and more flexible. Move all subsystems into separate directories and create make.config files that will conditionally compile based on information from the root Makefile. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune_list.h')
-rw-r--r--include/rune_list.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/rune_list.h b/include/rune_list.h
deleted file mode 100644
index 9c7c651..0000000
--- a/include/rune_list.h
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef RUNE_LIST_H
-#define RUNE_LIST_H
-
-#include <stddef.h>
-
-struct list_head {
- struct list_head *next;
- struct list_head *prev;
-};
-
-static inline void list_add(struct list_head *new, struct list_head *head) {
- struct list_head *temp = head;
- while (temp->next != NULL)
- temp = temp->next;
-
- temp->next = new;
- new->prev = temp;
- new->next = NULL;
-}
-
-static inline void list_del(struct list_head *item) {
- struct list_head *next = item->next;
- struct list_head *prev = item->prev;
- if (next != NULL)
- next->prev = prev;
- if (prev != NULL)
- prev->next = next;
- item->next = NULL;
- item->prev = NULL;
-}
-
-#endif