From 49b90312f9473057fd2ed77941f8a926429d44be Mon Sep 17 00:00:00 2001 From: Gustav Louw Date: Wed, 30 Dec 2020 01:19:19 -0800 Subject: [PATCH] woops, accidental commit --- ctl/stk | 58 --------------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 ctl/stk diff --git a/ctl/stk b/ctl/stk deleted file mode 100644 index d02e3706..00000000 --- a/ctl/stk +++ /dev/null @@ -1,58 +0,0 @@ -typedef struct B -{ - T value[DEQ_BUCKET_SIZE]; - int16_t a; - int16_t b; -} -B; - -typedef struct A -{ - void (*free)(T*); - T (*copy)(T*); - B** pages; - size_t mark_a; - size_t mark_b; - size_t capacity; - size_t size; -} -A; - -typedef struct I -{ - void (*step)(struct I*); - A* container; - T* ref; - size_t index; - size_t index_next; - size_t index_last; - int done; -} -I; - -static inline int -JOIN(A, empty)(A* self) - -static inline void -JOIN(A, push)(A* self, T value) - -static inline void -JOIN(A, pop)(A* self) - -static inline A -JOIN(A, init)(void) - -static inline T* -JOIN(A, top)(A* self) - -static inline void -JOIN(A, free)(A* self) - -static inline void -JOIN(A, swap)(A* self, A* other) - -static inline A -JOIN(A, copy)(A* self) - -static inline int -JOIN(A, equal)(A* self, A* other, int _equal(T*, T*))