From f8529d09bf1555c2dda61f5841b7ad4f42ce9715 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 17 Apr 2025 13:44:55 -0400 Subject: elf sym loading --- kernel/old/list.c | 64 ------------------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 kernel/old/list.c (limited to 'kernel/old/list.c') diff --git a/kernel/old/list.c b/kernel/old/list.c deleted file mode 100644 index 084000a..0000000 --- a/kernel/old/list.c +++ /dev/null @@ -1,64 +0,0 @@ -/** -** @file list.c -** -** @author Warren R. Carithers -** -** @brief Support for a basic linked list data type. -** -** This module provides a very basic linked list data structure. -** A list can contain anything that has a pointer field in the first -** four bytes; these routines assume those bytes contain a pointer to -** the following entry in the list, whatever that may be. -*/ - -#define KERNEL_SRC - -#include - -#include - -/* -** FUNCTIONS -*/ - -/** -** Name: list_add -** -** Add the supplied data to the beginning of the specified list. -** -** @param[in,out] list The address of a list_t variable -** @param[in] data The data to prepend to the list -*/ -void list_add( list_t *list, void *data ) { - - // sanity checks - assert1( list != NULL ); - assert1( data != NULL ); - - list_t *tmp = (list_t *)data; - tmp->next = list->next; - list->next = tmp; -} - -/** -** Name: list_remove -** -** Remove the first entry from a linked list. -** -** @param[in,out] list The address of a list_t variable -** -** @return a pointer to the removed data, or NULL if the list was empty -*/ -void *list_remove( list_t *list ) { - - assert1( list != NULL ); - - list_t *data = list->next; - if( data != NULL ) { - list->next = data->next; - data->next = NULL; - } - - return (void *)data; -} - -- cgit v1.2.3-freya