source:
trunk/libs/newlib/src/libgloss/v850/crt1.c
@
467
Last change on this file since 467 was 444, checked in by , 6 years ago | |
---|---|
File size: 270 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | void __main () |
2 | { | |
3 | static int initialized; | |
4 | if (! initialized) | |
5 | { | |
6 | typedef void (*pfunc) (); | |
7 | extern pfunc __ctors[]; | |
8 | extern pfunc __ctors_end[]; | |
9 | pfunc *p; | |
10 | ||
11 | initialized = 1; | |
12 | for (p = __ctors_end; p > __ctors; ) | |
13 | (*--p) (); | |
14 | ||
15 | } | |
16 | } |
Note: See TracBrowser
for help on using the repository browser.