5 typedef void (*ctor_t)(void);
7 extern ctor_t __CTOR_END__[];
8 extern ctor_t __DTOR_END__[];
9 extern ctor_t __CTOR_LIST__[];
10 extern ctor_t __DTOR_LIST__[];
13 static int construction_done = 0;
15 void static_construction()
17 ctor_t *cons = __CTOR_LIST__;
18 while(cons != __CTOR_END__)
22 construction_done = 1;
26 void static_destruction()
28 ctor_t *cons = __DTOR_LIST__;
29 if(!construction_done)
32 while(cons != __DTOR_END__)