ObjFW  Check-in [03963d9304]

Overview
Comment:macros.h: Add null_unspecified
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 03963d9304ebc35f3859b32fc159d3421bbcb5e18f54fe900f90aad7c76fcb98
User & Date: js on 2017-05-14 01:30:20
Other Links: manifest | tags
Context
2017-05-14
02:15
runtime: Add nullability annotations check-in: 8c7e612885 user: js tags: trunk
01:30
macros.h: Add null_unspecified check-in: 03963d9304 user: js tags: trunk
00:11
Small optimization for objc_storeStrong() check-in: 9d12f9759f user: js tags: trunk
Changes

Modified src/OFDictionary.m from [e4842b5166] to [0862e86c30].

33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

static struct {
	Class isa;
} placeholder;

@interface OFDictionary ()
- (OFString *)OF_JSONRepresentationWithOptions: (int)options
					depth: (size_t)depth;
@end

@interface OFDictionary_placeholder: OFDictionary
@end

@implementation OFDictionary_placeholder
- init







|







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

static struct {
	Class isa;
} placeholder;

@interface OFDictionary ()
- (OFString *)OF_JSONRepresentationWithOptions: (int)options
					 depth: (size_t)depth;
@end

@interface OFDictionary_placeholder: OFDictionary
@end

@implementation OFDictionary_placeholder
- init

Modified src/macros.h from [45a38ec43d] to [92a3d178cb].

175
176
177
178
179
180
181

182
183
184
185
186
187
188
# define _Nonnull
# define _Nullable
# define _Null_unspecified
# define OF_NULLABLE_PROPERTY
# define OF_NULL_RESETTABLE_PROPERTY
# define nonnull
# define nullable

#endif

#if __has_feature(objc_kindof)
# define OF_KINDOF(cls) __kindof cls
#else
# define OF_KINDOF(cls) id
#endif







>







175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# define _Nonnull
# define _Nullable
# define _Null_unspecified
# define OF_NULLABLE_PROPERTY
# define OF_NULL_RESETTABLE_PROPERTY
# define nonnull
# define nullable
# define null_unspecified
#endif

#if __has_feature(objc_kindof)
# define OF_KINDOF(cls) __kindof cls
#else
# define OF_KINDOF(cls) id
#endif