ObjFW  Diff

Differences From Artifact [d04f6c69e6]:

To Artifact [aa5ebeffcc]:


43
44
45
46
47
48
49







50
51
52
53
54
55
56
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
601

602
603

604
605
606
607
608
609
610
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
abort(void)
exit(int status)
{
	libc.abort();
	libc.exit(status);

	OF_UNREACHABLE
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
static CONST_APTR functionTable[] = {