1995-02-13 07:41:40 -04:00
|
|
|
|
/*
|
|
|
|
|
** mac __start for python-with-shared-library.
|
|
|
|
|
**
|
|
|
|
|
** Partially stolen from MW Startup.c, which is
|
|
|
|
|
** Copyright <EFBFBD> 1993 metrowerks inc. All Rights Reserved.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <setjmp.h>
|
|
|
|
|
|
1996-02-20 12:26:19 -04:00
|
|
|
|
/*
|
|
|
|
|
* clear_stackframe_backlink - set 0(SP) to 0
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
static asm void clear_stackframe_backlink(void)
|
|
|
|
|
{
|
|
|
|
|
li r3,0
|
|
|
|
|
stw r3,0(SP)
|
|
|
|
|
blr
|
|
|
|
|
}
|
1995-02-13 07:41:40 -04:00
|
|
|
|
|
|
|
|
|
void __start(void)
|
|
|
|
|
{
|
|
|
|
|
char *argv = 0;
|
|
|
|
|
|
1996-02-20 12:26:19 -04:00
|
|
|
|
clear_stackframe_backlink();
|
|
|
|
|
main(0, &argv);
|
|
|
|
|
exit(0);
|
1995-02-13 07:41:40 -04:00
|
|
|
|
}
|