Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 8c83ec63f59b5a9512f907aa4f2c63d3ed7af7a0 authored by cvs2svn on 16 April 2001, 02:07:08 UTC
This commit was manufactured by cvs2svn to create tag 'r21c2'.
Tip revision: 8c83ec6
macuseshlstart.c
/*
** mac __start for python-with-shared-library.
**
** Partially stolen from MW Startup.c, which is
**	Copyright © 1993 metrowerks inc. All Rights Reserved.
*/

#include <setjmp.h>

/*
 *	clear_stackframe_backlink	-	set 0(SP) to 0
 *
 */

static asm void clear_stackframe_backlink(void)
{
		li		r3,0
		stw		r3,0(SP)
		blr
}

void __start(void)
{
	char *argv = 0;
	
	clear_stackframe_backlink();
	main(0, &argv);
	exit(0);
}
back to top