From 1ce6031a42d22a0f2be566e1873377ab2cda66c8 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Fri, 30 Aug 2024 01:31:27 -0500 Subject: Makefile: retool the build system 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 --- include/rune_list.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 include/rune_list.h (limited to 'include/rune_list.h') 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 - -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 -- cgit v1.2.3