Differences From Artifact [d04f6c69e6]:
- File src/runtime/amiga-library.m — part of check-in [8f271bed22] at 2020-12-20 03:06:55 on branch trunk — Let OF_ENSURE use OBJC_ERROR in runtime (user: js, size: 19130) [annotate] [blame] [check-ins using]
To Artifact [aa5ebeffcc]:
- File
src/runtime/amiga-library.m
— part of check-in
[169832c303]
at
2020-12-20 03:32:34
on branch trunk
— runtime: Use exit(1) instead of abort() on AmigaOS
This prevents leaking resources like open files. (user: js, size: 19267) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /* This always needs to be the first thing in the file. */ int _start() { return -1; } struct ObjFWRTBase { struct Library library; void *segList; struct ObjFWRTBase *parent; char *dataSeg; bool initialized; | > > > > > > > | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | /* This always needs to be the first thing in the file. */ int _start() { return -1; } #ifdef OF_AMIGAOS_M68K void __init_eh(void) { } #endif struct ObjFWRTBase { struct Library library; void *segList; struct ObjFWRTBase *parent; char *dataSeg; bool initialized; |
︙ | ︙ | |||
592 593 594 595 596 597 598 599 600 | int vsnprintf(char *restrict str, size_t size, const char *restrict fmt, va_list args) { return libc.vsnprintf(str, size, fmt, args); } #endif void | > > > > > > | | | 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 | int vsnprintf(char *restrict str, size_t size, const char *restrict fmt, va_list args) { return libc.vsnprintf(str, size, fmt, args); } #endif int atexit(void (*function)(void)) { return libc.atexit(function); } void exit(int status) { libc.exit(status); OF_UNREACHABLE } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" static CONST_APTR functionTable[] = { |
︙ | ︙ |