ObjFW  Diff

Differences From Artifact [dd93d6e841]:

To Artifact [f03a29b448]:


137
138
139
140
141
142
143
144

145
146







147
148
149
150

151
152

153
154
155
156
157
158
159
160
161
162

163
164

165
166
167
168
169
170
171
137
138
139
140
141
142
143

144
145

146
147
148
149
150
151
152
153
154
155

156
157

158
159
160
161







162
163

164
165
166
167
168
169
170
171







-
+

-
+
+
+
+
+
+
+



-
+

-
+



-
-
-
-
-
-
-
+

-
+







	 */
	ctor();

	__objc_exec_class_m68k(module);
}

IMP
objc_msg_lookup(id obj, SEL sel)
objc_msg_lookup(id object, SEL selector)
{
	return objc_msg_lookup_m68k(obj, sel);
	return objc_msg_lookup_m68k(object, selector);
}

IMP
objc_msg_lookup_stret(id object, SEL selector)
{
	return objc_msg_lookup_stret_m68k(object, selector);
}

IMP
objc_msg_lookup_stret(id obj, SEL sel)
objc_msg_lookup_super(struct objc_super *super, SEL selector)
{
	return objc_msg_lookup_stret_m68k(obj, sel);
	return objc_msg_lookup_super_m68k(super, selector);
}

IMP
objc_msg_lookup_super(struct objc_super *super, SEL sel)
{
	return objc_msg_lookup_super_m68k(super, sel);
}

IMP
objc_msg_lookup_super_stret(struct objc_super *super, SEL sel)
objc_msg_lookup_super_stret(struct objc_super *super, SEL selector)
{
	return objc_msg_lookup_super_stret_m68k(super, sel);
	return objc_msg_lookup_super_stret_m68k(super, selector);
}

Class
objc_lookUpClass(const char *name)
{
	return objc_lookUpClass_m68k(name);
}
281
282
283
284
285
286
287
288

289
290
291

292
293
294
295
296

297
298
299

300
301
302
303
304
305
306
307
308
309
310
311

312
313

314
315
316
317

318
319

320
321
322
323

324
325

326
327
328
329
330
331
332
333
334
335

336
337

338
339
340
341

342
343

344
345
346
347
348
349
350
281
282
283
284
285
286
287

288
289
290

291
292
293
294
295

296
297
298

299
300
301
302
303
304
305
306
307
308
309
310

311
312

313
314
315
316

317
318

319
320
321
322

323
324

325
326
327
328
329
330
331
332
333
334

335
336

337
338
339
340

341
342

343
344
345
346
347
348
349
350







-
+


-
+




-
+


-
+











-
+

-
+



-
+

-
+



-
+

-
+









-
+

-
+



-
+

-
+







#endif

	OF_UNREACHABLE
}

#ifdef HAVE_SJLJ_EXCEPTIONS
int
__gnu_objc_personality_sj0(int version, int actions, uint64_t ex_class,
__gnu_objc_personality_sj0(int version, int actions, uint64_t exClass,
    void *ex, void *ctx)
{
	return __gnu_objc_personality_sj0_m68k(version, actions, &ex_class,
	return __gnu_objc_personality_sj0_m68k(version, actions, &exClass,
	    ex, ctx);
}
#else
int
__gnu_objc_personality_v0(int version, int actions, uint64_t ex_class,
__gnu_objc_personality_v0(int version, int actions, uint64_t exClass,
    void *ex, void *ctx)
{
	return __gnu_objc_personality_v0_m68k(version, actions, &ex_class,
	return __gnu_objc_personality_v0_m68k(version, actions, &exClass,
	    ex, ctx);
}
#endif

SEL
sel_registerName(const char *name)
{
	return sel_registerName_m68k(name);
}

const char *
sel_getName(SEL sel)
sel_getName(SEL selector)
{
	return sel_getName_m68k(sel);
	return sel_getName_m68k(selector);
}

bool
sel_isEqual(SEL sel1, SEL sel2)
sel_isEqual(SEL selector1, SEL selector2)
{
	return sel_isEqual_m68k(sel1, sel2);
	return sel_isEqual_m68k(selector1, selector2);
}

Class
objc_allocateClassPair(Class superclass, const char *name, size_t extra_bytes)
objc_allocateClassPair(Class superclass, const char *name, size_t extraBytes)
{
	return objc_allocateClassPair_m68k(superclass, name, extra_bytes);
	return objc_allocateClassPair_m68k(superclass, name, extraBytes);
}

void
objc_registerClassPair(Class cls)
{
	objc_registerClassPair_m68k(cls);
}

unsigned int
objc_getClassList(Class *buf, unsigned int count)
objc_getClassList(Class *buffer, unsigned int count)
{
	return objc_getClassList_m68k(buf, count);
	return objc_getClassList_m68k(buffer, count);
}

Class *
objc_copyClassList(unsigned int *len)
objc_copyClassList(unsigned int *length)
{
	return objc_copyClassList_m68k(len);
	return objc_copyClassList_m68k(length);
}

bool
class_isMetaClass(Class cls)
{
	return class_isMetaClass_m68k(cls);
}
364
365
366
367
368
369
370
371

372
373

374
375
376
377

378
379

380
381
382
383

384
385

386
387
388
389

390
391

392
393
394
395

396
397

398
399
400
401


402
403


404
405
406
407


408
409


410
411
412
413
414
415
416
364
365
366
367
368
369
370

371
372

373
374
375
376

377
378

379
380
381
382

383
384

385
386
387
388

389
390

391
392
393
394

395
396

397
398
399
400

401
402
403

404
405
406
407
408

409
410
411

412
413
414
415
416
417
418
419
420







-
+

-
+



-
+

-
+



-
+

-
+



-
+

-
+



-
+

-
+



-
+
+

-
+
+



-
+
+

-
+
+







unsigned long
class_getInstanceSize(Class cls)
{
	return class_getInstanceSize_m68k(cls);
}

bool
class_respondsToSelector(Class cls, SEL sel)
class_respondsToSelector(Class cls, SEL selector)
{
	return class_respondsToSelector_m68k(cls, sel);
	return class_respondsToSelector_m68k(cls, selector);
}

bool
class_conformsToProtocol(Class cls, Protocol *p)
class_conformsToProtocol(Class cls, Protocol *protocol)
{
	return class_conformsToProtocol_m68k(cls, p);
	return class_conformsToProtocol_m68k(cls, protocol);
}

IMP
class_getMethodImplementation(Class cls, SEL sel)
class_getMethodImplementation(Class cls, SEL selector)
{
	return class_getMethodImplementation_m68k(cls, sel);
	return class_getMethodImplementation_m68k(cls, selector);
}

IMP
class_getMethodImplementation_stret(Class cls, SEL sel)
class_getMethodImplementation_stret(Class cls, SEL selector)
{
	return class_getMethodImplementation_stret_m68k(cls, sel);
	return class_getMethodImplementation_stret_m68k(cls, selector);
}

const char *
class_getMethodTypeEncoding(Class cls, SEL sel)
class_getMethodTypeEncoding(Class cls, SEL selector)
{
	return class_getMethodTypeEncoding_m68k(cls, sel);
	return class_getMethodTypeEncoding_m68k(cls, selector);
}

bool
class_addMethod(Class cls, SEL sel, IMP imp, const char *types)
class_addMethod(Class cls, SEL selector, IMP implementation,
    const char *typeEncoding)
{
	return class_addMethod_m68k(cls, sel, imp, types);
	return class_addMethod_m68k(cls, selector, implementation,
	    typeEncoding);
}

IMP
class_replaceMethod(Class cls, SEL sel, IMP imp, const char *types)
class_replaceMethod(Class cls, SEL selector, IMP implementation,
    const char *typeEncoding)
{
	return class_replaceMethod_m68k(cls, sel, imp, types);
	return class_replaceMethod_m68k(cls, selector, implementation,
	    typeEncoding);
}

Class
object_getClass(id object)
{
	return object_getClass_m68k(object);
}
424
425
426
427
428
429
430
431

432
433

434
435
436
437

438
439

440
441
442
443

444
445

446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461

462
463

464
465
466
467
468
469
470
471
472
473
474
475
476
428
429
430
431
432
433
434

435
436

437
438
439
440

441
442

443
444
445
446

447
448

449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464

465
466

467
468
469
470
471
472
473
474
475
476
477
478
479
480







-
+

-
+



-
+

-
+



-
+

-
+















-
+

-
+













const char *
object_getClassName(id object)
{
	return object_getClassName_m68k(object);
}

const char *
protocol_getName(Protocol *p)
protocol_getName(Protocol *protocol)
{
	return protocol_getName_m68k(p);
	return protocol_getName_m68k(protocol);
}

bool
protocol_isEqual(Protocol *a, Protocol *b)
protocol_isEqual(Protocol *protocol1, Protocol *protocol2)
{
	return protocol_isEqual_m68k(a, b);
	return protocol_isEqual_m68k(protocol1, protocol2);
}

bool
protocol_conformsToProtocol(Protocol *a, Protocol *b)
protocol_conformsToProtocol(Protocol *protocol1, Protocol *protocol2)
{
	return protocol_conformsToProtocol_m68k(a, b);
	return protocol_conformsToProtocol_m68k(protocol1, protocol2);
}

void
objc_exit(void)
{
	objc_exit_m68k();
}

objc_uncaught_exception_handler
objc_setUncaughtExceptionHandler(objc_uncaught_exception_handler handler)
{
	return objc_setUncaughtExceptionHandler_m68k(handler);
}

void
objc_setForwardHandler(IMP forward, IMP forward_stret)
objc_setForwardHandler(IMP forward, IMP stretForward)
{
	objc_setForwardHandler_m68k(forward, forward_stret);
	objc_setForwardHandler_m68k(forward, stretForward);
}

void
objc_setEnumerationMutationHandler(objc_enumeration_mutation_handler handler)
{
	objc_setEnumerationMutationHandler_m68k(handler);
}

void
objc_zero_weak_references(id value)
{
	objc_zero_weak_references_m68k(value);
}