Changeset 510 for trunk/src/winmm/initterm.cpp
- Timestamp:
- Aug 16, 1999, 6:28:05 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:48sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 39 39 extern "C" { 40 40 void IRTMidiShutdown(); // IRTMidi shutdown routine 41 42 /*-------------------------------------------------------------------*/43 /* _CRT_init is the C run-time environment initialization function. */44 /* It will return 0 to indicate success and -1 to indicate failure. */45 /*-------------------------------------------------------------------*/46 int CDECL CRT_init(void);47 /*-------------------------------------------------------------------*/48 /* _CRT_term is the C run-time environment termination function. */49 /* It only needs to be called when the C run-time functions are */50 /* statically linked. */51 /*-------------------------------------------------------------------*/52 void CDECL CRT_term(void);53 void CDECL _ctordtorInit( void );54 void CDECL _ctordtorTerm( void );55 41 } 56 42 … … 88 74 case 0 : 89 75 90 /*******************************************************************/91 /* The C run-time environment initialization function must be */92 /* called before any calls to C run-time functions that are not */93 /* inlined. */94 /*******************************************************************/95 96 if (CRT_init() == -1)97 return 0UL;98 _ctordtorInit();99 100 76 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 101 77 … … 105 81 /*******************************************************************/ 106 82 107 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);83 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 108 84 if(rc) 109 85 return 0UL; … … 128 104 auxOS2Close(); /* SvL: Close aux device if necessary */ 129 105 IRTMidiShutdown; /* JT: Shutdown RT Midi subsystem, if running. */ 130 _ctordtorTerm();131 CRT_term();132 106 DosExitList(EXLST_EXIT, cleanup); 133 107 return ;
Note:
See TracChangeset
for help on using the changeset viewer.