diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-17 13:44:55 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-17 14:10:42 -0400 |
commit | f8529d09bf1555c2dda61f5841b7ad4f42ce9715 (patch) | |
tree | 16e0cdede45741e945e663f72697665074b2b077 /kernel/old/include/list.h | |
parent | fmt (diff) | |
download | comus-f8529d09bf1555c2dda61f5841b7ad4f42ce9715.tar.gz comus-f8529d09bf1555c2dda61f5841b7ad4f42ce9715.tar.bz2 comus-f8529d09bf1555c2dda61f5841b7ad4f42ce9715.zip |
elf sym loading
Diffstat (limited to '')
-rw-r--r-- | kernel/old/include/list.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/kernel/old/include/list.h b/kernel/old/include/list.h deleted file mode 100644 index 28c2377..0000000 --- a/kernel/old/include/list.h +++ /dev/null @@ -1,68 +0,0 @@ -/** -** @file list.h -** -** @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. -*/ - -#ifndef LIST_H_ -#define LIST_H_ - -#define KERNEL_SRC - -// standard types etc. -#include <common.h> - -/* -** General (C and/or assembly) definitions -*/ - -#ifndef ASM_SRC - -/* -** Start of C-only definitions -*/ - -/* -** Data types -*/ - -// The list structure -typedef struct list_s { - struct list_s *next; // link to the successor -} list_t; - -/* -** Prototypes -*/ - -/** -** 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 ); - -/** -** 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 ); - -#endif /* !ASM_SRC */ - -#endif |