Ignore:
Timestamp:
Jun 26, 1999, 1:34:43 PM (26 years ago)
Author:
hugh
Message:

DX 6 Version of ddraw rel files

File:
1 edited

Legend:

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

    r120 r210  
    1 /* $Id: initterm.cpp,v 1.3 1999-06-19 10:54:39 sandervl Exp $ */
    21
    32/*
    4  * DLL entry point
    5  *
    6  * Copyright 1998 Sander van Leeuwen
    7  * Copyright 1998 Peter Fitzsimmons
    8  *
    9  *
    10  * Project Odin Software License can be found in LICENSE.TXT
    11  *
     3
     4 * This file was created for Sander van Leeuwen
     5
     6 * by Project Smarts on 8 May 1997.
     7
    128 */
    139
     
    2723#define  INCL_DOSMODULEMGR
    2824#define  INCL_DOSPROCESS
    29 #include <os2wrap.h>    //Odin32 OS/2 api wrappers
     25#include <os2wrap.h>
    3026#include <stdlib.h>
    3127#include <stdio.h>
    3228#include <string.h>
    3329#include <odin.h>
    34 #include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     30#include <misc.h>       /*PLF Wed  98-03-18 23:18:29*/
    3531
    36 extern "C" {
    3732/*-------------------------------------------------------------------*/
    3833/* _CRT_init is the C run-time environment initialization function.  */
    3934/* It will return 0 to indicate success and -1 to indicate failure.  */
    4035/*-------------------------------------------------------------------*/
    41 int CDECL CRT_init(void);
     36int _CRT_init(void);
    4237/*-------------------------------------------------------------------*/
    4338/* _CRT_term is the C run-time environment termination function.     */
     
    4540/* statically linked.                                                */
    4641/*-------------------------------------------------------------------*/
    47 void CDECL CRT_term(void);
    48 void CDECL _ctordtorInit( void );
    49 void CDECL _ctordtorTerm( void );
    50 }
     42void _CRT_term(void);
     43void __ctordtorInit( void );
     44void __ctordtorTerm( void );
    5145
    5246/*-------------------------------------------------------------------*/
     
    5953
    6054
     55
    6156/****************************************************************************/
    6257/* _DLL_InitTerm is the function that gets called by the operating system   */
     
    6762/* calling this function.                                                   */
    6863/****************************************************************************/
    69 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long
    70                                    ulFlag)
     64unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long
     65                                    ulFlag)
    7166{
    7267   size_t i;
     
    8883         /*******************************************************************/
    8984
    90          if (CRT_init() == -1)
     85         if (_CRT_init() == -1)
    9186            return 0UL;
    92          _ctordtorInit();
     87     __ctordtorInit();
    9388
    94          CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     89//SvL: Temporarily disabled
     90#if 0
     91        CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     92#endif
     93
    9594         /*******************************************************************/
    9695         /* A DosExitList routine must be used to clean up if runtime calls */
     
    10099         rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);
    101100         if(rc)
    102                 return 0UL;
     101    return 0UL;
    103102
    104103         break;
     
    118117static void APIENTRY cleanup(ULONG ulReason)
    119118{
    120    _ctordtorTerm(); 
    121    CRT_term();
     119   __ctordtorTerm();
     120   _CRT_term();
    122121   DosExitList(EXLST_EXIT, cleanup);
    123122   return ;
Note: See TracChangeset for help on using the changeset viewer.