ObjFW  Check-in [0f04c85a63]

Overview
Comment:Documentation improvements.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0f04c85a63ba8fb199169c936d475dd1980e70c798e2ecaab645704da521578f
User & Date: js on 2010-09-16 00:00:38
Other Links: manifest | tags
Context
2010-09-16
00:08
Rename OFConstString to OFConstantString. check-in: 68ef210228 user: js tags: trunk
00:00
Documentation improvements. check-in: 0f04c85a63 user: js tags: trunk
2010-09-15
23:03
Remove accidental debug comment. check-in: f28f8193b4 user: js tags: trunk
Changes

Modified src/OFBlock.h from [8a28a2dbc7] to [4ef0807806].

13
14
15
16
17
18
19

20
21
22
23
24
25
26

#ifdef OF_OBJFW_RUNTIME
# import <objfw-rt.h>
#else
# import <objc/objc.h>
#endif


typedef struct __of_block_literal {
	Class isa;
	int flags;
	int reserved;
	void (*invoke)(void *, ...);
	struct __of_block_descriptor {
		unsigned long reserved;







>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#ifdef OF_OBJFW_RUNTIME
# import <objfw-rt.h>
#else
# import <objc/objc.h>
#endif

/// \cond internal
typedef struct __of_block_literal {
	Class isa;
	int flags;
	int reserved;
	void (*invoke)(void *, ...);
	struct __of_block_descriptor {
		unsigned long reserved;
51
52
53
54
55
56
57

58
59
60
61
62
63
64
65
66
67
68

69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

enum {
	OF_BLOCK_FIELD_IS_OBJECT =   3,
	OF_BLOCK_FIELD_IS_BLOCK	 =   7,
	OF_BLOCK_FIELD_IS_BYREF	 =   8,
	OF_BLOCK_FIELD_IS_WEAK	 =  16,
	OF_BLOCK_BYREF_CALLER	 = 128,
};


extern void* _Block_copy(const void*);
extern void _Block_release(const void*);

#ifndef Block_copy
# define Block_copy(x) ((__typeof__(x))_Block_copy((const void*)(x)))
#endif
#ifndef Block_release
# define Block_release(x) _Block_release((const void*)(x))
#endif


@interface OFBlock
{
	Class isa;
}

- copy;
- (void)release;
- autorelease;
@end

@interface OFStackBlock: OFBlock
@end

@interface OFGlobalBlock: OFBlock
@end

@interface OFMallocBlock: OFBlock
@end








>











>


















>
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
enum {
	OF_BLOCK_FIELD_IS_OBJECT =   3,
	OF_BLOCK_FIELD_IS_BLOCK	 =   7,
	OF_BLOCK_FIELD_IS_BYREF	 =   8,
	OF_BLOCK_FIELD_IS_WEAK	 =  16,
	OF_BLOCK_BYREF_CALLER	 = 128,
};
/// \endcond

extern void* _Block_copy(const void*);
extern void _Block_release(const void*);

#ifndef Block_copy
# define Block_copy(x) ((__typeof__(x))_Block_copy((const void*)(x)))
#endif
#ifndef Block_release
# define Block_release(x) _Block_release((const void*)(x))
#endif

/// \cond internal
@interface OFBlock
{
	Class isa;
}

- copy;
- (void)release;
- autorelease;
@end

@interface OFStackBlock: OFBlock
@end

@interface OFGlobalBlock: OFBlock
@end

@interface OFMallocBlock: OFBlock
@end
/// \endcond

Modified src/OFBlock.m from [21e2be9e39] to [f28b3d88fe].

212
213
214
215
216
217
218

219
220
221
222
223
224
225
		}
		break;
	}
}

static Class autoreleasepool = Nil;


@implementation OFBlock
- copy
{
	return Block_copy(self);
}

- (void)release







>







212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
		}
		break;
	}
}

static Class autoreleasepool = Nil;

/// \cond internal
@implementation OFBlock
- copy
{
	return Block_copy(self);
}

- (void)release
237
238
239
240
241
242
243

		autoreleasepool = [OFAutoreleasePool class];

	[autoreleasepool addObject: self];

	return self;
}
@end








>
238
239
240
241
242
243
244
245
		autoreleasepool = [OFAutoreleasePool class];

	[autoreleasepool addObject: self];

	return self;
}
@end
/// \endcond

Modified src/OFXMLElement.h from [9a57ffba3d] to [49ae19b7bd].

14
15
16
17
18
19
20



21
22
23
24
25
26
27
@class OFString;
@class OFArray;
@class OFMutableString;
@class OFMutableArray;
@class OFMutableDictionary;
@class OFXMLAttribute;




@interface OFXMLElement: OFObject
{
	OFString *name;
	OFString *ns;
	OFString *defaultNamespace;
	OFMutableArray *attributes;
	OFMutableDictionary *namespaces;







>
>
>







14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@class OFString;
@class OFArray;
@class OFMutableString;
@class OFMutableArray;
@class OFMutableDictionary;
@class OFXMLAttribute;

/**
 * \brief A class which stores an XML element.
 */
@interface OFXMLElement: OFObject
{
	OFString *name;
	OFString *ns;
	OFString *defaultNamespace;
	OFMutableArray *attributes;
	OFMutableDictionary *namespaces;