diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-06-10 18:10:13 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-06-10 18:10:13 -0400 |
commit | 282a63e054231481fd2107d78cb36f79cdf8867c (patch) | |
tree | 436ffde2b510098609f4155f0b62732e78f3f1c7 | |
parent | 6dce1b32a4e19c875131cdbb441cca0ca23f73f5 (diff) |
Fix update double ended queue header to match implementation.
-rw-r--r-- | collections/double_ended_queue.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/collections/double_ended_queue.h b/collections/double_ended_queue.h index 332b16f..dd476af 100644 --- a/collections/double_ended_queue.h +++ b/collections/double_ended_queue.h @@ -17,15 +17,19 @@ deq* deq_cp(deq*); void deq_free(deq*); /*Free all elements within queue*/ -void deq_clear(); +void deq_clear(deq*); /*data*/ +void deq_push_front(deq*, void*); void deq_push_back(deq*, void*); void* deq_pop_front(deq*); void* deq_pop_back(deq*); void deq_set(deq*, int, void*); void* deq_index(deq*, int); +void* deq_front(deq*); +void* deq_back(deq*); + void deq_swap(deq*, int, int); void* deq_swap_rm_front(deq*, int); @@ -34,13 +38,13 @@ void* deq_swap_rm_back(deq*, int); /*Note: Does not currently reduce memory footprint*/ void deq_truncate(deq*, int); -void* deq_front(deq*); -void* deq_back(deq*); void deq_remove(deq*, int); +void deq_print(deq*, char* (void*)); + -/* +/*TODO * resevee * insert */ |