Overview
| Comment: | Move OFFastEnumeration protocol to OFEnumerator.h. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
8347c2ef5e97c39a978d446333eee263 |
| User & Date: | js on 2010-01-31 21:51:36 |
| Other Links: | manifest | tags |
Context
|
2010-01-31
| ||
| 22:05 | Small optimization. (check-in: 305317e5ea user: js tags: trunk) | |
| 21:51 | Move OFFastEnumeration protocol to OFEnumerator.h. (check-in: 8347c2ef5e user: js tags: trunk) | |
|
2010-01-30
| ||
| 20:54 | Remove TODO file as this is not a good way to keep track of things. (check-in: b6132938c0 user: js tags: trunk) | |
Changes
Modified src/Makefile from [cffb8debfd] to [b004a3e1eb].
| ︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | - |
${OFTHREAD_M} \
OFURLEncoding.m \
OFXMLElement.m \
OFXMLParser.m \
unicode.m
INCLUDES := ${SRCS:.m=.h} \
|
| ︙ |
Modified src/OFArray.h from [f31644bdce] to [a5522e34d4].
| ︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | - | * the packaging of this file. */ #include <stdarg.h> #import "OFObject.h" #import "OFEnumerator.h" |
| ︙ |
Modified src/OFDictionary.h from [520f646873] to [bbde3d4fc4].
| ︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | - | * the packaging of this file. */ #include <stdarg.h> #import "OFObject.h" #import "OFEnumerator.h" |
| ︙ |
Modified src/OFEnumerator.h from [1e45836bf9] to [95bf700ece].
| ︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | + + + + + + + + + + + + + + + + + + + + + + + + + + |
/**
* Resets the enumerator, so the next call to nextObject returns the first
* object again.
*/
- reset;
@end
/*
* This needs to be exactly like this because it's hardcoded in the compiler.
*
* We need this bad check to see if we already imported Cocoa, which defines
* this as well.
*/
#define of_fast_enumeration_state_t NSFastEnumerationState
#ifndef NSINTEGER_DEFINED
typedef struct __of_fast_enumeration_state {
unsigned long state;
id *itemsPtr;
unsigned long *mutationsPtr;
unsigned long extra[5];
} of_fast_enumeration_state_t;
#endif
/**
* The OFFastEnumeration protocol needs to be implemented by all classes
* supporting fast enumeration.
*/
@protocol OFFastEnumeration
- (int)countByEnumeratingWithState: (of_fast_enumeration_state_t*)state
objects: (id*)objects
count: (int)count;
@end
|
Deleted src/OFFastEnumeration.h version [7da30d91d4].
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
|