Ignore:
Timestamp:
Aug 16, 1999, 6:28:05 PM (26 years ago)
Author:
sandervl
Message:

Makefile changes & initterm.cpp no longer calls c/c++ library init & termination functions (should only be done in odincrt.dll)

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:48 sandervl Exp $ */
     1/* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */
    22
    33/*
     
    3939extern "C" {
    4040void 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 );
    5541}
    5642
     
    8874      case 0 :
    8975
    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 
    10076         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    10177
     
    10581         /*******************************************************************/
    10682
    107          rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);
     83         rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);
    10884         if(rc)
    10985                return 0UL;
     
    128104   auxOS2Close();  /* SvL: Close aux device if necessary */
    129105   IRTMidiShutdown;  /* JT: Shutdown RT Midi subsystem, if running. */
    130    _ctordtorTerm();
    131    CRT_term();
    132106   DosExitList(EXLST_EXIT, cleanup);
    133107   return ;
Note: See TracChangeset for help on using the changeset viewer.