Changeset 4818 for trunk/src/odincrt/initterm.cpp
- Timestamp:
- Dec 17, 2000, 12:33:37 AM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/odincrt/initterm.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/initterm.cpp
r2649 r4818 1 /* $Id: initterm.cpp,v 1. 3 2000-02-05 02:05:37 sandervlExp $ */1 /* $Id: initterm.cpp,v 1.4 2000-12-16 23:33:37 bird Exp $ */ 2 2 3 3 /* … … 35 35 #include <exitlist.h> 36 36 37 #ifdef __IBMCPP__ 37 38 extern "C" { 38 39 /*-------------------------------------------------------------------*/ … … 71 72 ulFlag) 72 73 { 73 size_t i;74 74 APIRET rc; 75 75 … … 134 134 return ; 135 135 } 136 137 #elif defined(__WATCOM_CPLUSPLUS__) 138 139 /* 140 * Watcom dll init and term routines. 141 */ 142 143 int __dll_initialize(unsigned long hModule, unsigned long ulFlag) 144 { 145 APIRET rc; 146 #if 1 /* 147 * Experimental console hack. Sets apptype to PM anyhow. 148 * First Dll to be initiated should now allways be OdinCrt! 149 * So include odincrt first! 150 */ 151 PPIB pPIB; 152 PTIB pTIB; 153 rc = DosGetInfoBlocks(&pTIB, &pPIB); 154 if (rc != NO_ERROR) 155 return 0UL; 156 pPIB->pib_ultype = 3; 157 #endif 158 return 1; 159 } 160 161 int __dll_terminate(unsigned long hModule, unsigned long ulFlag) 162 { 163 return 1; 164 } 165 166 #else 167 #error message("compiler is not supported"); 168 #endif 169
Note:
See TracChangeset
for help on using the changeset viewer.
