diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-07-02 23:59:16 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-07-02 23:59:16 -0400 |
commit | 4dc747517ca3638a9991ea0ba16851ea7ffb23d0 (patch) | |
tree | 83bd74300b529fc8d259206a4097799f0a268040 | |
parent | ef2e3b5ef06fd24cb35be396b56117d44a0cf477 (diff) |
Fix add links to referenced functions in deq docs
-rw-r--r-- | collections/double_ended_queue/double_ended_queue.adoc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/collections/double_ended_queue/double_ended_queue.adoc b/collections/double_ended_queue/double_ended_queue.adoc index eaa066f..52a085f 100644 --- a/collections/double_ended_queue/double_ended_queue.adoc +++ b/collections/double_ended_queue/double_ended_queue.adoc @@ -112,8 +112,9 @@ assert(strcmp(deq_pop_back, str1) == 0); ~~~~~~~~~~~~~~~~~~~~~~~~~~ Frees all internal memory and +self+. -NOTE: All item pointers are still valid after a call to +deq_free+, deq_clear -should be called before if they are no longer needed to avoid memory leaks. +NOTE: All item pointers are still valid after a call to +<<deq_free,+deq_free()+>>, <<deq_clear,+deq_clear()+>> should be called before +if they are no longer needed to avoid memory leaks. Examples ^^^^^^^^ @@ -130,7 +131,8 @@ deq_free(queue); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Free all elements within queue +self+, and sets queue to empty (size 0). -NOTE: Does not free internal memory of +self+ or +self+ itself, if this is desired +deq_free()+ should be called immediatly after this. +NOTE: Does not free internal memory of +self+ or +self+ itself, if this is +desired <<deq_free,+deq_free()+>> should be called immediately after this. Examples ^^^^^^^^ @@ -379,7 +381,7 @@ assert(str_cmp(deq_back(queue), str1) == 0); +void* deq_swap_rm_front(deq *self, int index)+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Swaps front element with item at +index+, and pops item now at front. -Does not keep order of elements, but faster that +deq_remove()+. +Does not keep order of elements, but faster that <<deq_remove,+deq_remove()+>>. Examples ^^^^^^^^ @@ -407,7 +409,7 @@ assert(deq_size == 2); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Swaps back element with item at +index+, and pops item now at back. Will return same element as +deq_remove(self, index)+. -Does not keep order of elements, but faster that +deq_remove()+. +Does not keep order of elements, but faster that <<deq_remove,+deq_remove()+>>. Examples ^^^^^^^^ |