blob: 17a58c9a5f7558aaf5a0fc7956b1ecc0c8f42190 (
plain) (
tree)
|
|
/*
* Copied from newlib 1.8.2
*
* $Id$
*/
typedef void (*pfunc) (void);
extern pfunc __ctors[];
extern pfunc __ctors_end[];
void __main (void)
{
static int initialized;
pfunc *p;
if (initialized)
return;
initialized = 1;
for (p = __ctors_end; p > __ctors; )
(*--p) ();
}
|