00001 00002 00003 #ifndef RCS_EXIT_HH 00004 #define RCS_EXIT_HH 00005 00006 #include "rcs_defs.hh" // RCS_EXPORT 00007 00008 #ifdef __cplusplus 00009 extern "C" 00010 { 00011 #endif 00012 00013 // NOTE -- 00014 // the GNU VxWorks C++ cross-compiler (g++68k) has a bug, that 00015 // prevents me from passing a pointer to a function as the first 00016 // argument of a function. 00017 #ifdef VXWORKS 00018 int RCS_EXPORT attach_rcs_exit_list (void *); 00019 #else 00020 int RCS_EXPORT attach_rcs_exit_list (void (*fptr) (int)); 00021 #endif 00022 void RCS_EXPORT rcs_cleanup (int code); 00023 void RCS_EXPORT rcs_exit (int code); 00024 00025 #ifdef __cplusplus 00026 } 00027 #endif 00028 00029 #endif