blob: edbb24628a734e2a21ec5b51f5f336d2becaef3c [file] [log] [blame]
Jack Jansen7467ce31995-02-13 11:41:40 +00001/*
2** mac __start for python-with-shared-library.
3**
4** Partially stolen from MW Startup.c, which is
5** Copyright © 1993 metrowerks inc. All Rights Reserved.
6*/
7
8#include <setjmp.h>
9
Jack Janseneb263681996-02-20 16:26:19 +000010/*
11 * clear_stackframe_backlink - set 0(SP) to 0
12 *
13 */
14
15static asm void clear_stackframe_backlink(void)
16{
17 li r3,0
18 stw r3,0(SP)
19 blr
20}
Jack Jansen7467ce31995-02-13 11:41:40 +000021
22void __start(void)
23{
24 char *argv = 0;
25
Jack Janseneb263681996-02-20 16:26:19 +000026 clear_stackframe_backlink();
27 main(0, &argv);
28 exit(0);
Jack Jansen7467ce31995-02-13 11:41:40 +000029}