source: rtems/c/src/lib/libbsp/v850/shared/crt1.c @ f2e0f8e

5
Last change on this file since f2e0f8e was 0dae390, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 7, 2014 at 3:00:45 PM

libbsp/v850/shared/crt1.c: Remove warnings

  • Property mode set to 100644
File size: 414 bytes
Line 
1/*
2 * From newlib ==> libc/sys/sysnecv850/crt1.c
3 *
4 * Obtained from newlib: 29 May 2012
5 * Warnings fixed: 7 October 2014
6 */
7
8void __main(void);
9typedef void (*pfunc) (void);
10extern pfunc __ctors[];
11extern pfunc __ctors_end[];
12
13void __main(void)
14{
15  static int initialized;
16  if (! initialized)
17    {
18      pfunc *p;
19
20      initialized = 1;
21      for (p = __ctors_end; p > __ctors; )
22        (*--p) ();
23
24    }
25}
Note: See TracBrowser for help on using the repository browser.