Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:09

0001 /*
0002  * From newlib ==> libc/sys/sysnecv850/crt1.c
0003  *
0004  * Obtained from newlib: 29 May 2012
0005  * Warnings fixed: 7 October 2014
0006  */
0007 
0008 void __main(void);
0009 typedef void (*pfunc) (void);
0010 extern pfunc __ctors[];
0011 extern pfunc __ctors_end[];
0012 
0013 void __main(void)
0014 {
0015   static int initialized;
0016   if (! initialized)
0017     {
0018       pfunc *p;
0019 
0020       initialized = 1;
0021       for (p = __ctors_end; p > __ctors; )
0022         (*--p) ();
0023 
0024     }
0025 }