From 90d41f8249255c6cfda8fcc036d107667220fd93 Mon Sep 17 00:00:00 2001 From: Dmitry Simonenko <pmwkaa@gmail.com> Date: Thu, 29 Mar 2012 18:10:42 +0400 Subject: [PATCH] index-iter-prev: stylistic changes --- mod/box/index.h | 4 ++-- mod/box/index.m | 16 ++++++++-------- mod/box/tree.m | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mod/box/index.h b/mod/box/index.h index e0d4d68407..07e706e746 100644 --- a/mod/box/index.h +++ b/mod/box/index.h @@ -126,8 +126,8 @@ struct key_def { * initialized separately. */ - (struct iterator *) allocIterator; -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type; -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type; +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) key :(int) part_count; @end diff --git a/mod/box/index.m b/mod/box/index.m index b4b533274c..9dd265a972 100644 --- a/mod/box/index.m +++ b/mod/box/index.m @@ -166,14 +166,14 @@ iterator_first_equal(struct iterator *it) return NULL; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type { (void) iterator; (void) type; [self subclassResponsibility: _cmd]; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) key :(int) part_count { @@ -390,7 +390,7 @@ hash_iterator_free(struct iterator *iterator) #endif } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type { assert(iterator->next = hash_iterator_next); struct hash_iterator *it = hash_iterator(iterator); @@ -403,7 +403,7 @@ hash_iterator_free(struct iterator *iterator) it->hash = int_hash; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) key :(int) part_count { @@ -523,7 +523,7 @@ hash_iterator_free(struct iterator *iterator) #endif } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type { assert(iterator->next = hash_iterator_next); struct hash_iterator *it = hash_iterator(iterator); @@ -536,7 +536,7 @@ hash_iterator_free(struct iterator *iterator) it->hash = (struct mh_i32ptr_t *) int64_hash; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) field :(int) part_count { @@ -647,7 +647,7 @@ hash_iterator_free(struct iterator *iterator) #endif } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type { assert(iterator->next = hash_iterator_next); struct hash_iterator *it = hash_iterator(iterator); @@ -660,7 +660,7 @@ hash_iterator_free(struct iterator *iterator) it->hash = (struct mh_i32ptr_t *) str_hash; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) key :(int) part_count { diff --git a/mod/box/tree.m b/mod/box/tree.m index 05a7298f5c..04eac45165 100644 --- a/mod/box/tree.m +++ b/mod/box/tree.m @@ -833,12 +833,12 @@ tree_iterator_free(struct iterator *iterator) return (struct iterator *) it; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type { [self initIterator: iterator :type :NULL :0]; } -- (void) initIterator: (struct iterator *) iterator: (enum iterator_type) type +- (void) initIterator: (struct iterator *) iterator :(enum iterator_type) type :(void *) key :(int) part_count { -- GitLab