ObjFW  Check-in [60c8a351c8]

Overview
Comment:runtime-private.h: Define _Nullable if missing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60c8a351c891ed92253fad6974bd25b1adb2541424c9bc9c584ac0f8f9f950ad
User & Date: js on 2017-05-16 20:59:40
Other Links: manifest | tags
Context
2017-05-16
21:06
lookup-asm-ppc-elf.S: Use @ instead of % check-in: 59b780d680 user: js tags: trunk
20:59
runtime-private.h: Define _Nullable if missing check-in: 60c8a351c8 user: js tags: trunk
2017-05-15
21:41
Remove cookies from OFHTTP{Request,Response} check-in: fedbbb2344 user: js tags: trunk
Changes

Modified src/runtime/runtime-private.h from [1aa5ac440a] to [732df9cb69].

13
14
15
16
17
18
19





20
21
22
23
24
25
26
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#include "platform.h"






struct objc_abi_class {
	struct objc_abi_class *_Nonnull metaclass;
	const char *_Nullable superclass;
	const char *_Nonnull name;
	unsigned long version;
	unsigned long info;







>
>
>
>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#include "config.h"

#include "platform.h"

#if !defined(__has_feature) || !__has_feature(nullability)
# define _Nonnull
# define _Nullable
#endif

struct objc_abi_class {
	struct objc_abi_class *_Nonnull metaclass;
	const char *_Nullable superclass;
	const char *_Nonnull name;
	unsigned long version;
	unsigned long info;
212
213
214
215
216
217
218





#define OBJC_ERROR(...)							\
	{								\
		fprintf(stderr, "[objc @ " __FILE__ ":%d] ", __LINE__);	\
		fprintf(stderr, __VA_ARGS__);				\
		fputs("\n", stderr);					\
		abort();						\
	}












>
>
>
>
>
217
218
219
220
221
222
223
224
225
226
227
228
#define OBJC_ERROR(...)							\
	{								\
		fprintf(stderr, "[objc @ " __FILE__ ":%d] ", __LINE__);	\
		fprintf(stderr, __VA_ARGS__);				\
		fputs("\n", stderr);					\
		abort();						\
	}

#if !defined(__has_feature) || !__has_feature(nullability)
# undef _Nonnull
# undef _Nullable
#endif