From 08fb644c7d101551edfe8fc2608e0ac501b3df9f Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sun, 8 Jun 2025 17:25:13 -0500 Subject: Trim the fat --- src/ll.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/ll.h (limited to 'src/ll.h') diff --git a/src/ll.h b/src/ll.h deleted file mode 100644 index f5801e0..0000000 --- a/src/ll.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef __VXGG_REWRITE___LL_H___305861098005___ -#define __VXGG_REWRITE___LL_H___305861098005___ - -// Notice: dlinked functions are no longer necessarily xalloc, but MAY be IF the `___VXGG___USE_XALLOC_FOR_VALLOC___` is greater than 0 - -/* TODO: Implement a way to register a set of alloc functions to a linked list so I can give it arenas for memory allocation -// instead of just xcalloc */ - // I don't know if I care to do this right now. I might be able to hack it in but it would be a fugly hack, something as bad if not worse than that weird callback thing I was doing with the ALWAYS_CHECK_LIBSODIUM macro - -typedef void (*dll_freecb)(void*); -typedef struct dlinked dlinkedlist; - -#ifndef __VXGG_REWRITE___LL_INTERNAL___ - -dlinkedlist * dlinkedlist_init(void); -void dlinkedlist_free(void *dll); -int dlinkedlist_append(dlinkedlist * const ll, void *data, dll_freecb fcb); -int dlinkedlist_prepend(dlinkedlist * const ll, void *data, dll_freecb fcb); -int dlinkedlist_insert(dlinkedlist * const ll, void *data, dll_freecb fcb, int index); -void* dlinkedlist_get(const dlinkedlist * const ll, int index); -int dlinkedlist_remove(dlinkedlist * const ll, int index); -void * dlinkedlist_poplast(dlinkedlist *ll); - -int dlinkedlist_size(const dlinkedlist * const ll); -#define dlinkedlist_isempty(ll) (dlinkedlist_size((ll)) == 0) - -int dlinkedlist_foreach(dlinkedlist *ll, int (*callback)(void*)); - -#endif - -#endif \ No newline at end of file -- cgit v1.2.3