newlib-cygwin/newlib/libc/sys/h8300hms/crt1.c

17 lines
270 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
void __main ()
{
static int initialized;
if (! initialized)
{
typedef void (*pfunc) ();
extern pfunc __ctors[];
extern pfunc __ctors_end[];
pfunc *p;
initialized = 1;
for (p = __ctors_end; p > __ctors; )
(*--p) ();
}
}