ObjFW  Check-in [6bdb2e4b01]

Overview
Comment:Move placeholder interfaces from headers to implementation files.
This way they are not public anymore.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 6bdb2e4b01c630f10f1e70bbfea8f736fd1c86172d7b68847caa754700121a31
User & Date: js on 2011-10-31 21:18:40
Other Links: manifest | tags
Context
2011-10-31
21:19
Fix a missing const in tests. check-in: 3dc09e8fac user: js tags: trunk
21:18
Move placeholder interfaces from headers to implementation files.
This way they are not public anymore.
check-in: 6bdb2e4b01 user: js tags: trunk
2011-10-29
01:36
Make return type of -[unicodeString] const. check-in: 4d6f7fc529 user: js tags: trunk
Changes

Modified src/OFArray.h from [533462c6b2] to [f99b463989].

292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
 *		all objects except the first
 * \return The array folded to a single object
 */
- (id)foldUsingBlock: (of_array_fold_block_t)block;
#endif
@end

@interface OFArray_placeholder: OFArray
@end

@interface OFArrayEnumerator: OFEnumerator
{
	OFArray	      *array;
	size_t	      count;
	unsigned long mutations;
	unsigned long *mutationsPtr;
	size_t	      position;







<
<
<







292
293
294
295
296
297
298



299
300
301
302
303
304
305
 *		all objects except the first
 * \return The array folded to a single object
 */
- (id)foldUsingBlock: (of_array_fold_block_t)block;
#endif
@end




@interface OFArrayEnumerator: OFEnumerator
{
	OFArray	      *array;
	size_t	      count;
	unsigned long mutations;
	unsigned long *mutationsPtr;
	size_t	      position;

Modified src/OFArray.m from [9d67fa5621] to [b2464cd374].

31
32
33
34
35
36
37



38
39
40
41
42
43
44
#import "OFOutOfRangeException.h"

#import "macros.h"

static struct {
	Class isa;
} placeholder;




@implementation OFArray_placeholder
- init
{
	return (id)[[OFArray_adjacent alloc] init];
}








>
>
>







31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#import "OFOutOfRangeException.h"

#import "macros.h"

static struct {
	Class isa;
} placeholder;

@interface OFArray_placeholder: OFArray
@end

@implementation OFArray_placeholder
- init
{
	return (id)[[OFArray_adjacent alloc] init];
}

Modified src/OFCountedSet.h from [cc860e9d65] to [8743a68386].

39
40
41
42
43
44
45
46
47
48
 *
 * \param block The block to execute for each object in the set
 */
- (void)enumerateObjectsAndCountUsingBlock:
    (of_counted_set_enumeration_block_t)block;
#endif
@end

@interface OFCountedSet_placeholder: OFCountedSet
@end







<
<
<
39
40
41
42
43
44
45



 *
 * \param block The block to execute for each object in the set
 */
- (void)enumerateObjectsAndCountUsingBlock:
    (of_counted_set_enumeration_block_t)block;
#endif
@end



Modified src/OFCountedSet.m from [a285a63049] to [f1676b578f].

24
25
26
27
28
29
30



31
32
33
34
35
36
37
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;




@implementation OFCountedSet_placeholder
- init
{
	return (id)[[OFCountedSet_hashtable alloc] init];
}








>
>
>







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;

@interface OFCountedSet_placeholder: OFCountedSet
@end

@implementation OFCountedSet_placeholder
- init
{
	return (id)[[OFCountedSet_hashtable alloc] init];
}

Modified src/OFDictionary.h from [9b787f5be0] to [49fd4f5b5a].

215
216
217
218
219
220
221
222
223
224
225

#if defined(OF_SET_M) || defined(OF_COUNTED_SET_M)
- _initWithDictionary: (OFDictionary*)dictionary
	     copyKeys: (BOOL)copyKeys;
#endif
@end

@interface OFDictionary_placeholder: OFDictionary
@end

#import "OFMutableDictionary.h"







<
<
<

215
216
217
218
219
220
221



222

#if defined(OF_SET_M) || defined(OF_COUNTED_SET_M)
- _initWithDictionary: (OFDictionary*)dictionary
	     copyKeys: (BOOL)copyKeys;
#endif
@end




#import "OFMutableDictionary.h"

Modified src/OFDictionary.m from [9dbdf6b2a1] to [8d738e01c8].

26
27
28
29
30
31
32



33
34
35
36
37
38
39
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;




@implementation OFDictionary_placeholder
- init
{
	return (id)[[OFDictionary_hashtable alloc] init];
}








>
>
>







26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;

@interface OFDictionary_placeholder: OFDictionary
@end

@implementation OFDictionary_placeholder
- init
{
	return (id)[[OFDictionary_hashtable alloc] init];
}

Modified src/OFMutableArray.h from [dff693928f] to [1db366161d].

121
122
123
124
125
126
127
128
129
130
#endif

/**
 * \brief Converts the mutable array to an immutable array.
 */
- (void)makeImmutable;
@end

@interface OFMutableArray_placeholder: OFMutableArray
@end







<
<
<
121
122
123
124
125
126
127



#endif

/**
 * \brief Converts the mutable array to an immutable array.
 */
- (void)makeImmutable;
@end



Modified src/OFMutableArray.m from [95f73007dc] to [49bd4c82a9].

28
29
30
31
32
33
34



35
36
37
38
39
40
41
#import "OFOutOfRangeException.h"

#import "macros.h"

static struct {
	Class isa;
} placeholder;




@implementation OFMutableArray_placeholder
- init
{
	return (id)[[OFMutableArray_adjacent alloc] init];
}








>
>
>







28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#import "OFOutOfRangeException.h"

#import "macros.h"

static struct {
	Class isa;
} placeholder;

@interface OFMutableArray_placeholder: OFMutableArray
@end

@implementation OFMutableArray_placeholder
- init
{
	return (id)[[OFMutableArray_adjacent alloc] init];
}

Modified src/OFMutableDictionary.h from [89005ff668] to [933aff6238].

52
53
54
55
56
57
58
59
60
61
#endif

/**
 * \brief Converts the mutable dictionary to an immutable dictionary.
 */
- (void)makeImmutable;
@end

@interface OFMutableDictionary_placeholder: OFDictionary
@end







<
<
<
52
53
54
55
56
57
58



#endif

/**
 * \brief Converts the mutable dictionary to an immutable dictionary.
 */
- (void)makeImmutable;
@end



Modified src/OFMutableDictionary.m from [07bbff71b3] to [d5ec5c9a16].

20
21
22
23
24
25
26



27
28
29
30
31
32
33
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;




@implementation OFMutableDictionary_placeholder
- init
{
	return (id)[[OFMutableDictionary_hashtable alloc] init];
}








>
>
>







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;

@interface OFMutableDictionary_placeholder: OFDictionary
@end

@implementation OFMutableDictionary_placeholder
- init
{
	return (id)[[OFMutableDictionary_hashtable alloc] init];
}

Modified src/OFMutableSet.h from [46d438a8a1] to [94d08a7201].

57
58
59
60
61
62
63
64
65
66
- (void)unionSet: (OFSet*)set;

/**
 * \brief Converts the mutable set to an immutable set.
 */
- (void)makeImmutable;
@end

@interface OFMutableSet_placeholder: OFMutableSet
@end







<
<
<
57
58
59
60
61
62
63



- (void)unionSet: (OFSet*)set;

/**
 * \brief Converts the mutable set to an immutable set.
 */
- (void)makeImmutable;
@end



Modified src/OFMutableSet.m from [0dd3658171] to [43080e83f8].

23
24
25
26
27
28
29



30
31
32
33
34
35
36
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;




@implementation OFMutableSet_placeholder
- init
{
	return (id)[[OFMutableSet_hashtable alloc] init];
}








>
>
>







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;

@interface OFMutableSet_placeholder: OFMutableSet
@end

@implementation OFMutableSet_placeholder
- init
{
	return (id)[[OFMutableSet_hashtable alloc] init];
}

Modified src/OFSet.h from [adde5b4579] to [e8a0550195].

129
130
131
132
133
134
135
136
137
138
139
 * \param block A block which determines if the object should be in the new set
 * \return A new, autoreleased OFSet
 */
- (OFSet*)filteredSetUsingBlock: (of_set_filter_block_t)block;
#endif
@end

@interface OFSet_placeholder: OFSet
@end

#import "OFMutableSet.h"







<
<
<

129
130
131
132
133
134
135



136
 * \param block A block which determines if the object should be in the new set
 * \return A new, autoreleased OFSet
 */
- (OFSet*)filteredSetUsingBlock: (of_set_filter_block_t)block;
#endif
@end




#import "OFMutableSet.h"

Modified src/OFSet.m from [f6a72ae961] to [f6015b2f71].

23
24
25
26
27
28
29



30
31
32
33
34
35
36
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;




@implementation OFSet_placeholder
- init
{
	return (id)[[OFSet_hashtable alloc] init];
}








>
>
>







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#import "OFAutoreleasePool.h"

#import "OFNotImplementedException.h"

static struct {
	Class isa;
} placeholder;

@interface OFSet_placeholder: OFSet
@end

@implementation OFSet_placeholder
- init
{
	return (id)[[OFSet_hashtable alloc] init];
}