- Timestamp:
- Aug 16, 1999, 6:55:33 PM (26 years ago)
- Location:
- trunk/src
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/NTDLL/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:01 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:31 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/advapi32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:01 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:31 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/capi2032/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:01 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:31 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/comctl32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 5 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.6 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 /* 3 3 * COMCTL32 DLL entry point … … 33 33 #include <misc.h> /*PLF Wed 98-03-18 23:18:29*/ 34 34 35 extern "C" { 36 void CDECL _ctordtorInit( void ); 37 void CDECL _ctordtorTerm( void ); 38 } 39 40 /*-------------------------------------------------------------------*/ 41 /* A clean up routine registered with DosExitList must be used if */ 42 /* runtime calls are required and the runtime is dynamically linked. */ 43 /* This will guarantee that this clean up routine is run before the */ 44 /* library DLL is terminated. */ 45 /*-------------------------------------------------------------------*/ 46 static void APIENTRY cleanup(ULONG reason); 47 35 48 void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL); 36 49 void CDECL UnregisterCOMCTL32WindowClasses(void); … … 59 72 case 0 : 60 73 74 _ctordtorInit(); 75 61 76 /*******************************************************************/ 62 /* The C run-time environment initialization function must be */ 63 /* called before any calls to C run-time functions that are not */ 64 /* inlined. */ 77 /* A DosExitList routine must be used to clean up if runtime calls */ 78 /* are required and the runtime is dynamically linked. */ 65 79 /*******************************************************************/ 80 81 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 82 if(rc) 83 return 0UL; 66 84 67 85 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 72 90 break; 73 91 case 1 : 74 /* unregister Win32 window classes */75 UnregisterCOMCTL32WindowClasses();76 92 break; 77 93 default : … … 85 101 } 86 102 103 static void APIENTRY cleanup(ULONG ulReason) 104 { 105 /* unregister Win32 window classes */ 106 UnregisterCOMCTL32WindowClasses(); 107 _ctordtorTerm(); 108 DosExitList(EXLST_EXIT, cleanup); 109 return ; 110 } -
trunk/src/comdlg32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/ddraw/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 6 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.7 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/dsound/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 3 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/gdi32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/kernel32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 8 1999-08-16 16:28:02 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.9 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 45 45 extern void APIENTRY Win32DllExitList(ULONG reason); 46 46 47 extern "C" { 48 void CDECL _ctordtorInit( void ); 49 void CDECL _ctordtorTerm( void ); 50 } 51 47 52 /* Tue 03.03.1998: knut */ 48 53 /* flag to optimize DosAllocMem to use all the memory on SMP machines */ … … 82 87 case 0 : 83 88 dprintf(("kernel32 init\n")); 89 _ctordtorInit(); 90 84 91 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 85 92 /*******************************************************************/ … … 120 127 { 121 128 dprintf(("kernel32 exit %d\n", ulReason)); 129 _ctordtorTerm(); 122 130 DestroyTIB(); 123 131 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/lz32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 2 1999-08-16 16:28:03sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.3 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/mpr/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:03sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/ole32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:03sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:32 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/shell32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:03 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/tapi32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/user32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 6 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.7 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 static void APIENTRY cleanupQueue(ULONG ulReason); 47 47 48 extern "C" { 49 void CDECL _ctordtorInit( void ); 50 void CDECL _ctordtorTerm( void ); 51 } 48 52 49 53 /****************************************************************************/ … … 69 73 switch (ulFlag) { 70 74 case 0 : 75 _ctordtorInit(); 76 71 77 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 78 /*******************************************************************/ … … 112 118 dprintf(("user32 exit\n")); 113 119 UnregisterSystemClasses(); 120 _ctordtorTerm(); 114 121 dprintf(("user32 exit done\n")); 115 122 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/user32/new/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 46 46 static void APIENTRY cleanupQueue(ULONG ulReason); 47 47 48 extern "C" { 49 void CDECL _ctordtorInit( void ); 50 void CDECL _ctordtorTerm( void ); 51 } 48 52 49 53 … … 70 74 switch (ulFlag) { 71 75 case 0 : 76 _ctordtorInit(); 72 77 73 78 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 120 125 dprintf(("user32 exit\n")); 121 126 UnregisterSystemClasses(); 127 _ctordtorTerm(); 122 128 dprintf(("user32 exit done\n")); 123 129 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/version/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/winmm/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 39 39 extern "C" { 40 40 void IRTMidiShutdown(); // IRTMidi shutdown routine 41 void CDECL _ctordtorInit( void ); 42 void CDECL _ctordtorTerm( void ); 41 43 } 42 44 … … 73 75 switch (ulFlag) { 74 76 case 0 : 77 _ctordtorInit(); 75 78 76 79 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 104 107 auxOS2Close(); /* SvL: Close aux device if necessary */ 105 108 IRTMidiShutdown; /* JT: Shutdown RT Midi subsystem, if running. */ 109 _ctordtorTerm(); 106 110 DosExitList(EXLST_EXIT, cleanup); 107 111 return ; -
trunk/src/winspool/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:04sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/wnetap32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:05sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 } -
trunk/src/wsock32/initterm.cpp
r510 r511 1 /* $Id: initterm.cpp,v 1. 4 1999-08-16 16:28:05sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:55:33 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 30 30 #include <stdlib.h> 31 31 #include <stdio.h> … … 33 33 #include <odin.h> 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 36 extern "C" { 37 void CDECL _ctordtorInit( void ); 38 void CDECL _ctordtorTerm( void ); 39 } 40 41 /*-------------------------------------------------------------------*/ 42 /* A clean up routine registered with DosExitList must be used if */ 43 /* runtime calls are required and the runtime is dynamically linked. */ 44 /* This will guarantee that this clean up routine is run before the */ 45 /* library DLL is terminated. */ 46 /*-------------------------------------------------------------------*/ 47 static void APIENTRY cleanup(ULONG reason); 48 35 49 36 50 /****************************************************************************/ … … 56 70 switch (ulFlag) { 57 71 case 0 : 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 72 _ctordtorInit(); 73 74 /*******************************************************************/ 75 /* A DosExitList routine must be used to clean up if runtime calls */ 76 /* are required and the runtime is dynamically linked. */ 77 /*******************************************************************/ 78 79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 80 if(rc) 81 return 0UL; 82 59 83 break; 60 84 case 1 : … … 69 93 return 1UL; 70 94 } 95 96 97 static void APIENTRY cleanup(ULONG ulReason) 98 { 99 _ctordtorTerm(); 100 DosExitList(EXLST_EXIT, cleanup); 101 return ; 102 }
Note:
See TracChangeset
for help on using the changeset viewer.