Ignore:
Timestamp:
Feb 14, 2001, 12:41:04 PM (25 years ago)
Author:
sandervl
Message:

initterm call fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/odincrt/initterm.cpp

    r4818 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-12-16 23:33:37 bird Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3432#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3533#include <exitlist.h>
     34#include <initdll.h>
    3635
    3736#ifdef __IBMCPP__
    3837extern "C" {
    39 /*-------------------------------------------------------------------*/
    40 /* _CRT_init is the C run-time environment initialization function.  */
    41 /* It will return 0 to indicate success and -1 to indicate failure.  */
    42 /*-------------------------------------------------------------------*/
    43 int CDECL CRT_init(void);
    44 /*-------------------------------------------------------------------*/
    45 /* _CRT_term is the C run-time environment termination function.     */
    46 /* It only needs to be called when the C run-time functions are      */
    47 /* statically linked.                                                */
    48 /*-------------------------------------------------------------------*/
    49 void CDECL CRT_term(void);
    50 void CDECL _ctordtorInit( void );
    51 void CDECL _ctordtorTerm( void );
    52 }
    5338
    5439/*-------------------------------------------------------------------*/
     
    5944/*-------------------------------------------------------------------*/
    6045static void APIENTRY cleanup(ULONG reason);
    61 
     46}
    6247
    6348/****************************************************************************/
     
    8974         /*******************************************************************/
    9075
    91          if (CRT_init() == -1)
     76         if (_CRT_init() == -1)
    9277            return 0UL;
    93          _ctordtorInit();
     78         __ctordtorInit();
    9479
    9580         /*******************************************************************/
     
    129114static void APIENTRY cleanup(ULONG ulReason)
    130115{
    131    _ctordtorTerm();
    132    CRT_term();
     116   __ctordtorTerm();
     117   _CRT_term();
    133118   DosExitList(EXLST_EXIT, cleanup);
    134119   return ;
Note: See TracChangeset for help on using the changeset viewer.