2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
7 #include <aros/symbolsets.h>
8 #include <aros/startup.h>
10 #include "__stdc_intbase.h"
12 static void __stdc_startup(struct ExecBase
*SysBase
)
16 if (setjmp(exitjmp
) == 0)
18 D(bug("[__stdc_startup] setjmp() called\n"));
20 /* Tell stdc.library a program using it has started */
21 __stdc_program_startup(exitjmp
, (int *)&__startup_error
);
22 D(bug("[__stdc_startup] Library startup called\n"));
24 __startup_entries_next();
28 D(bug("[__stdc_startup] setjmp() return from longjmp\n"));
31 /* Tell stdc.library program has reached the end */
34 D(bug("[__stdc_startup] Leave\n"));
37 ADD2SET(__stdc_startup
, PROGRAM_ENTRIES
, 0);