Changeset 210 for trunk/src/ddraw/initterm.cpp
- Timestamp:
- Jun 26, 1999, 1:34:43 PM (26 years ago)
- 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 $ */2 1 3 2 /* 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 12 8 */ 13 9 … … 27 23 #define INCL_DOSMODULEMGR 28 24 #define INCL_DOSPROCESS 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers25 #include <os2wrap.h> 30 26 #include <stdlib.h> 31 27 #include <stdio.h> 32 28 #include <string.h> 33 29 #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*/ 35 31 36 extern "C" {37 32 /*-------------------------------------------------------------------*/ 38 33 /* _CRT_init is the C run-time environment initialization function. */ 39 34 /* It will return 0 to indicate success and -1 to indicate failure. */ 40 35 /*-------------------------------------------------------------------*/ 41 int CDECLCRT_init(void);36 int _CRT_init(void); 42 37 /*-------------------------------------------------------------------*/ 43 38 /* _CRT_term is the C run-time environment termination function. */ … … 45 40 /* statically linked. */ 46 41 /*-------------------------------------------------------------------*/ 47 void CDECL CRT_term(void); 48 void CDECL _ctordtorInit( void ); 49 void CDECL _ctordtorTerm( void ); 50 } 42 void _CRT_term(void); 43 void __ctordtorInit( void ); 44 void __ctordtorTerm( void ); 51 45 52 46 /*-------------------------------------------------------------------*/ … … 59 53 60 54 55 61 56 /****************************************************************************/ 62 57 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 67 62 /* calling this function. */ 68 63 /****************************************************************************/ 69 unsigned long SYSTEM_DLL_InitTerm(unsigned long hModule, unsigned long70 ulFlag)64 unsigned long _System _DLL_InitTerm(unsigned long hModule, unsigned long 65 ulFlag) 71 66 { 72 67 size_t i; … … 88 83 /*******************************************************************/ 89 84 90 if ( CRT_init() == -1)85 if (_CRT_init() == -1) 91 86 return 0UL; 92 87 __ctordtorInit(); 93 88 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 95 94 /*******************************************************************/ 96 95 /* A DosExitList routine must be used to clean up if runtime calls */ … … 100 99 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup); 101 100 if(rc) 102 101 return 0UL; 103 102 104 103 break; … … 118 117 static void APIENTRY cleanup(ULONG ulReason) 119 118 { 120 _ ctordtorTerm();121 CRT_term();119 __ctordtorTerm(); 120 _CRT_term(); 122 121 DosExitList(EXLST_EXIT, cleanup); 123 122 return ;
Note:
See TracChangeset
for help on using the changeset viewer.