ObjFW  Check-in [469553637d]

Overview
Comment:Work around Apple's API breaking the C standard
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 469553637d6530248696609307073934864f67385f81caa16f83de937d57a255
User & Date: js on 2014-05-15 15:17:25
Other Links: manifest | tags
Context
2014-05-15
15:17
Don't embed directives within macro arguments check-in: 0d37286ccb user: js tags: trunk
15:17
Work around Apple's API breaking the C standard check-in: 469553637d user: js tags: trunk
04:07
Don't return void expressions check-in: 3c7bf2e50c user: js tags: trunk
Changes

Modified src/OFObject.m from [0c79230d37] to [a836174d3d].

217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
@implementation OFObject
+ (void)load
{
#if !defined(OF_APPLE_RUNTIME) || defined(__OBJC2__)
	objc_setUncaughtExceptionHandler(uncaughtExceptionHandler);
#endif

	objc_setForwardHandler(of_forward, of_forward_stret);

#ifdef HAVE_OBJC_ENUMERATIONMUTATION
	objc_setEnumerationMutationHandler(enumerationMutationHandler);
#endif

#if defined(HAVE_ARC4RANDOM)
	of_hash_seed = arc4random();







|







217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
@implementation OFObject
+ (void)load
{
#if !defined(OF_APPLE_RUNTIME) || defined(__OBJC2__)
	objc_setUncaughtExceptionHandler(uncaughtExceptionHandler);
#endif

	objc_setForwardHandler((void*)&of_forward, (void*)&of_forward_stret);

#ifdef HAVE_OBJC_ENUMERATIONMUTATION
	objc_setEnumerationMutationHandler(enumerationMutationHandler);
#endif

#if defined(HAVE_ARC4RANDOM)
	of_hash_seed = arc4random();