1 /*
2                     Language Independent Library
3 
4             Copyright 1983-2008 Green Hills Software,Inc.
5 
6  *  This program is the property of Green Hills Software, Inc,
7  *  its contents are proprietary information and no part of it
8  *  is to be disclosed to anyone except employees of Green Hills
9  *  Software, Inc., or as agreed in writing signed by the President
10  *  of Green Hills Software, Inc.
11 */
12 /* ind_exit.h: declarations for callers of ind_exit.c */
13 
14 /*   FUNCTIONS ALWAYS NEEDED TO RUN PROGRAMS COMPILED WITH THE DEFAULT CRT0   */
15 
16 struct __GHS_AT_EXIT {
17     void (*func)(void);
18     struct __GHS_AT_EXIT *next;
19 };
20 #if defined(__GNUC__)
21 #define __Noreturn __attribute__((noreturn))
22 #else
23 #define __Noreturn
24 #endif /* __GNUC__ */
25 void _Exit (int code) __Noreturn;
26 void __ghs_at_exit (struct __GHS_AT_EXIT *gae);
27 
28 #if 1 // CAFE MOD
29 #pragma weak __ghs_at_exit_cleanup
30 void __ghs_at_exit_cleanup(void);
31 #endif // CAFE MOD
32