Changeset 0dae390 in rtems
- Timestamp:
- 10/07/14 15:00:45 (9 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 56c6888
- Parents:
- 780eab4
- git-author:
- Joel Sherrill <joel.sherrill@…> (10/07/14 15:00:45)
- git-committer:
- Joel Sherrill <joel.sherrill@…> (10/09/14 15:11:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/v850/shared/crt1.c
r780eab4 r0dae390 2 2 * From newlib ==> libc/sys/sysnecv850/crt1.c 3 3 * 4 * Obtained newlib 29 May 2012 4 * Obtained from newlib: 29 May 2012 5 * Warnings fixed: 7 October 2014 5 6 */ 6 void __main () 7 8 void __main(void); 9 typedef void (*pfunc) (void); 10 extern pfunc __ctors[]; 11 extern pfunc __ctors_end[]; 12 13 void __main(void) 7 14 { 8 15 static int initialized; 9 16 if (! initialized) 10 17 { 11 typedef void (*pfunc) ();12 extern pfunc __ctors[];13 extern pfunc __ctors_end[];14 18 pfunc *p; 15 19 16 20 initialized = 1; 17 21 for (p = __ctors_end; p > __ctors; ) 18 22 (*--p) (); 19 23 20 24 }
Note: See TracChangeset
for help on using the changeset viewer.