Differences From Artifact [dd93d6e841]:
- File src/runtime/linklib/linklib.m — part of check-in [0509d7a844] at 2019-01-03 19:13:03 on branch trunk — Update copyright (user: js, size: 10022) [annotate] [blame] [check-ins using]
To Artifact [f03a29b448]:
- File
src/runtime/linklib/linklib.m
— part of check-in
[ef6d69931e]
at
2019-02-07 00:46:41
on branch trunk
— Make style consistent between ObjFW and ObjFW_RT
ObjFW_RT used to be a separate project that followed the BSD style, as
it was written in pure C, while ObjFW's style is based on the BSD style
with changes to make it a better fit for Objective-C. This commit
changes ObjFW_RT to use the same style as ObjFW. (user: js, size: 10350) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
137 138 139 140 141 142 143 | */ ctor(); __objc_exec_class_m68k(module); } IMP | | | > > > > > > | | < < < < < < | | | 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 object, SEL selector) { 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_super(struct objc_super *super, SEL selector) { return objc_msg_lookup_super_m68k(super, selector); } IMP objc_msg_lookup_super_stret(struct objc_super *super, SEL selector) { 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 | #endif OF_UNREACHABLE } #ifdef HAVE_SJLJ_EXCEPTIONS int | | | | | | | | | | | | | | | | 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 exClass, void *ex, void *ctx) { return __gnu_objc_personality_sj0_m68k(version, actions, &exClass, ex, ctx); } #else int __gnu_objc_personality_v0(int version, int actions, uint64_t exClass, void *ex, void *ctx) { 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 selector) { return sel_getName_m68k(selector); } bool sel_isEqual(SEL selector1, SEL selector2) { return sel_isEqual_m68k(selector1, selector2); } Class objc_allocateClassPair(Class superclass, const char *name, size_t extraBytes) { return objc_allocateClassPair_m68k(superclass, name, extraBytes); } void objc_registerClassPair(Class cls) { objc_registerClassPair_m68k(cls); } unsigned int objc_getClassList(Class *buffer, unsigned int count) { return objc_getClassList_m68k(buffer, count); } Class * objc_copyClassList(unsigned int *length) { return objc_copyClassList_m68k(length); } bool class_isMetaClass(Class cls) { return class_isMetaClass_m68k(cls); } |
︙ | ︙ | |||
364 365 366 367 368 369 370 | unsigned long class_getInstanceSize(Class cls) { return class_getInstanceSize_m68k(cls); } bool | | | | | | | | | | | | > | > | > | > | 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 selector) { return class_respondsToSelector_m68k(cls, selector); } bool class_conformsToProtocol(Class cls, Protocol *protocol) { return class_conformsToProtocol_m68k(cls, protocol); } IMP class_getMethodImplementation(Class cls, SEL selector) { return class_getMethodImplementation_m68k(cls, selector); } IMP class_getMethodImplementation_stret(Class cls, SEL selector) { return class_getMethodImplementation_stret_m68k(cls, selector); } const char * class_getMethodTypeEncoding(Class cls, SEL selector) { return class_getMethodTypeEncoding_m68k(cls, selector); } bool class_addMethod(Class cls, SEL selector, IMP implementation, const char *typeEncoding) { return class_addMethod_m68k(cls, selector, implementation, typeEncoding); } IMP class_replaceMethod(Class cls, SEL selector, IMP implementation, const char *typeEncoding) { 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 | const char * object_getClassName(id object) { return object_getClassName_m68k(object); } const char * | | | | | | | | | | 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 *protocol) { return protocol_getName_m68k(protocol); } bool protocol_isEqual(Protocol *protocol1, Protocol *protocol2) { return protocol_isEqual_m68k(protocol1, protocol2); } bool protocol_conformsToProtocol(Protocol *protocol1, Protocol *protocol2) { 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 stretForward) { 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); } |