blob: dd0be3145de613df8ef289b7d3cd55eff0af05d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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) ();
}
}
|