@@ -34,11 +34,11 @@ + (instancetype)list { return [[[self alloc] init] autorelease]; } -- initWithSerialization: (OFXMLElement*)element +- initWithSerialization: (OFXMLElement *)element { self = [self init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -72,11 +72,11 @@ [iter->object release]; [super dealloc]; } -- (of_list_object_t*)appendObject: (id)object +- (of_list_object_t *)appendObject: (id)object { of_list_object_t *listObject; listObject = [self allocMemoryWithSize: sizeof(of_list_object_t)]; listObject->object = [object retain]; @@ -94,11 +94,11 @@ _mutations++; return listObject; } -- (of_list_object_t*)prependObject: (id)object +- (of_list_object_t *)prependObject: (id)object { of_list_object_t *listObject; listObject = [self allocMemoryWithSize: sizeof(of_list_object_t)]; listObject->object = [object retain]; @@ -116,12 +116,12 @@ _mutations++; return listObject; } -- (of_list_object_t*)insertObject: (id)object - beforeListObject: (of_list_object_t*)listObject +- (of_list_object_t *)insertObject: (id)object + beforeListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; newListObject = [self allocMemoryWithSize: sizeof(of_list_object_t)]; newListObject->object = [object retain]; @@ -140,12 +140,12 @@ _mutations++; return newListObject; } -- (of_list_object_t*)insertObject: (id)object - afterListObject: (of_list_object_t*)listObject +- (of_list_object_t *)insertObject: (id)object + afterListObject: (of_list_object_t *)listObject { of_list_object_t *newListObject; newListObject = [self allocMemoryWithSize: sizeof(of_list_object_t)]; newListObject->object = [object retain]; @@ -164,11 +164,11 @@ _mutations++; return newListObject; } -- (void)removeListObject: (of_list_object_t*)listObject +- (void)removeListObject: (of_list_object_t *)listObject { if (listObject->previous != NULL) listObject->previous->next = listObject->next; if (listObject->next != NULL) listObject->next->previous = listObject->previous; @@ -317,11 +317,11 @@ OF_HASH_FINALIZE(hash); return hash; } -- (OFString*)description +- (OFString *)description { OFMutableString *ret; if (_count == 0) return @"[]"; @@ -346,11 +346,11 @@ [ret makeImmutable]; return ret; } -- (OFXMLElement*)XMLElementBySerializing +- (OFXMLElement *)XMLElementBySerializing { OFXMLElement *element = [OFXMLElement elementWithName: [self className] namespace: OF_SERIALIZATION_NS]; @@ -364,12 +364,12 @@ } return element; } -- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state - objects: (id*)objects +- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t *)state + objects: (id *)objects count: (int)count { of_list_object_t *listObject; memcpy(&listObject, state->extra, sizeof(listObject)); @@ -393,21 +393,21 @@ memcpy(state->extra, &listObject, sizeof(listObject)); return count; } -- (OFEnumerator*)objectEnumerator +- (OFEnumerator *)objectEnumerator { return [[[OFListEnumerator alloc] initWithList: self mutationsPointer: &_mutations] autorelease]; } @end @implementation OFListEnumerator -- initWithList: (OFList*)list - mutationsPointer: (unsigned long*)mutationsPtr +- initWithList: (OFList *)list + mutationsPointer: (unsigned long *)mutationsPtr { self = [super init]; _list = [list retain]; _current = [list firstListObject];