diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-06-10 23:23:52 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-06-10 23:46:26 -0400 |
commit | 0f7085dedd2f60f2ccc0b1f49558f5be89de97b2 (patch) | |
tree | 297ebffad3e49909bc2c7baa63d0f5046abb0203 /collections/double_ended_queue.h | |
parent | fcf2831e9151e87f3feed9827ce56a39c9256804 (diff) |
Fix change order of functions in double ended queue.
Groups functions that return items together.
Diffstat (limited to 'collections/double_ended_queue.h')
-rw-r--r-- | collections/double_ended_queue.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/collections/double_ended_queue.h b/collections/double_ended_queue.h index dd476af..fac2231 100644 --- a/collections/double_ended_queue.h +++ b/collections/double_ended_queue.h @@ -22,25 +22,21 @@ void deq_clear(deq*); /*data*/ void deq_push_front(deq*, void*); void deq_push_back(deq*, void*); +void deq_set(deq*, int, 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); void* deq_swap_rm_back(deq*, int); +void deq_swap(deq*, int, int); + /*Note: Does not currently reduce memory footprint*/ void deq_truncate(deq*, int); - void deq_remove(deq*, int); - void deq_print(deq*, char* (void*)); |