From 45116465b1d5117cffd82235b649bcefafe9eaca Mon Sep 17 00:00:00 2001 From: Leonardo Date: Wed, 27 Mar 2019 13:34:12 -0300 Subject: [PATCH] Changed iterator initialization function name --- src/deque.h | 4 ++-- src/foreach.h | 4 ++-- src/heap.h | 4 ++-- src/linkedlist.h | 4 ++-- src/list.h | 4 ++-- src/queue.h | 4 ++-- src/stack.h | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/deque.h b/src/deque.h index 07e4919..736a83a 100644 --- a/src/deque.h +++ b/src/deque.h @@ -79,7 +79,7 @@ FMOD size_t PFX##_count(SNAME *_deque_); \ FMOD size_t PFX##_capacity(SNAME *_deque_); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -282,7 +282,7 @@ return true; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = target->front; \ diff --git a/src/foreach.h b/src/foreach.h index 1706b5e..99d2c5f 100644 --- a/src/foreach.h +++ b/src/foreach.h @@ -20,7 +20,7 @@ size_t index; \ V var; \ SNAME##_iter iter; \ - PFX##_iter(&iter, TARGET); \ + PFX##_iter_new(&iter, TARGET); \ while (PFX##_iter_next(&iter, &var, &index)) \ { \ BODY; \ @@ -33,7 +33,7 @@ size_t index; \ V var; \ SNAME##_iter iter; \ - PFX##_iter(&iter, TARGET); \ + PFX##_iter_new(&iter, TARGET); \ PFX##_iter_toend(&iter); \ while (PFX##_iter_prev(&iter, &var, &index)) \ { \ diff --git a/src/heap.h b/src/heap.h index bb1a469..c683f0b 100644 --- a/src/heap.h +++ b/src/heap.h @@ -80,7 +80,7 @@ typedef enum HeapOrder FMOD size_t PFX##_count(SNAME *_heap_); \ FMOD size_t PFX##_capacity(SNAME *_heap_); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -312,7 +312,7 @@ typedef enum HeapOrder return true; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = 0; \ diff --git a/src/linkedlist.h b/src/linkedlist.h index 8900619..cfcd382 100644 --- a/src/linkedlist.h +++ b/src/linkedlist.h @@ -93,7 +93,7 @@ FMOD bool PFX##_remove_cur(SNAME##_node *node); \ FMOD bool PFX##_remove_prv(SNAME##_node *node); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -484,7 +484,7 @@ return scan; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = target->head; \ diff --git a/src/list.h b/src/list.h index 7bea6e6..66ffd61 100644 --- a/src/list.h +++ b/src/list.h @@ -77,7 +77,7 @@ FMOD size_t PFX##_count(SNAME *_list_); \ FMOD size_t PFX##_capacity(SNAME *_list_); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -320,7 +320,7 @@ return true; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = 0; \ diff --git a/src/queue.h b/src/queue.h index 4059275..46e1d0f 100644 --- a/src/queue.h +++ b/src/queue.h @@ -74,7 +74,7 @@ FMOD size_t PFX##_count(SNAME *_queue_); \ FMOD size_t PFX##_capacity(SNAME *_queue_); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -222,7 +222,7 @@ return true; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = target->front; \ diff --git a/src/stack.h b/src/stack.h index 7abcb41..bd4f530 100644 --- a/src/stack.h +++ b/src/stack.h @@ -71,7 +71,7 @@ FMOD size_t PFX##_count(SNAME *_stack_); \ FMOD size_t PFX##_capacity(SNAME *_stack_); \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target); \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target); \ FMOD bool PFX##_iter_start(SNAME##_iter *iter); \ FMOD bool PFX##_iter_end(SNAME##_iter *iter); \ FMOD void PFX##_iter_tostart(SNAME##_iter *iter); \ @@ -201,7 +201,7 @@ return true; \ } \ \ - FMOD void PFX##_iter(SNAME##_iter *iter, SNAME *target) \ + FMOD void PFX##_iter_new(SNAME##_iter *iter, SNAME *target) \ { \ iter->target = target; \ iter->cursor = iter->target->count - 1; \