Changeset 646 for trunk/src/kernel32
- Timestamp:
- Aug 23, 1999, 3:55:08 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r634 r646 1 ; $Id: KERNEL32.DEF,v 1.2 7 1999-08-22 22:11:22sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.28 1999-08-23 13:54:43 sandervl Exp $ 2 2 3 3 ;Created by BLAST for IBM's compiler 4 4 ;Basis is Windows95 KERNEL32 5 5 LIBRARY KERNEL32 INITINSTANCE TERMINSTANCE 6 DATA MULTIPLE NONSHARED 6 DATA MULTIPLE NONSHARED LOADONCALL 7 CODE SHARED LOADONCALL 8 9 SEGMENTS 10 11 _GLOBALDATA CLASS 'DATA' SHARED LOADONCALL READWRITE 7 12 8 13 IMPORTS -
trunk/src/kernel32/initterm.cpp
r615 r646 1 /* $Id: initterm.cpp,v 1.1 2 1999-08-22 08:33:14sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.13 1999-08-23 13:54:42 sandervl Exp $ */ 2 2 3 3 /* … … 36 36 #include "handlemanager.h" 37 37 #include "profile.h" 38 #include "initterm.h" 38 39 39 40 /*-------------------------------------------------------------------*/ … … 51 52 } 52 53 53 void CloseLogFile(); //misc.cpp 54 //Global DLL Data 55 #pragma data_seg(_GLOBALDATA) 56 int globLoadNr = 0; 57 #pragma data_seg() 54 58 55 59 /* Tue 03.03.1998: knut */ 56 60 /* flag to optimize DosAllocMem to use all the memory on SMP machines */ 57 ULONG flAllocMem; 58 59 #ifndef PAG_ANY 60 #define PAG_ANY 0x00000400 61 #endif 62 63 #ifndef QSV_VIRTUALADDRESSLIMIT 64 #define QSV_VIRTUALADDRESSLIMIT 30 65 #endif 61 ULONG flAllocMem = 0; 62 int loadNr = 0; 66 63 67 64 /****************************************************************************/ … … 89 86 { 90 87 case 0 : 88 loadNr = globLoadNr++; 89 91 90 dprintf(("kernel32 init\n")); 92 91 _ctordtorInit(); -
trunk/src/kernel32/makefile
r623 r646 1 # $Id: makefile,v 1.2 5 1999-08-22 14:30:59sandervl Exp $1 # $Id: makefile,v 1.26 1999-08-23 13:54:43 sandervl Exp $ 2 2 3 3 # … … 110 110 os2heap.h 111 111 112 initterm.OBJ: .\initterm.cpp 112 initterm.OBJ: .\initterm.cpp initterm.h 113 113 114 114 thunk.OBJ: \ … … 166 166 misc.OBJ: \ 167 167 .\misc.cpp \ 168 initterm.h \ 168 169 $(PDWIN32_INCLUDE)\misc.h 169 170 … … 298 299 299 300 pefile.OBJ: pefile.cpp $(PDWIN32_INCLUDE)\pefile.h 300 winimage.OBJ: winimage.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h 301 winimage.OBJ: winimage.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winres.h initterm.h 301 302 winimgres.OBJ: winimgres.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h $(PDWIN32_INCLUDE)\pefile.h $(PDWIN32_INCLUDE)\winexe.h $(PDWIN32_INCLUDE)\winres.h 302 303 windll.OBJ: windll.cpp $(PDWIN32_INCLUDE)\winimage.h $(PDWIN32_INCLUDE)\windll.h -
trunk/src/kernel32/misc.cpp
r615 r646 1 /* $Id: misc.cpp,v 1. 8 1999-08-22 08:33:14sandervl Exp $ */1 /* $Id: misc.cpp,v 1.9 1999-08-23 13:54:43 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #include <win32type.h> 28 28 #include "misc.h" 29 29 #include "os2util.h" 30 #include "initterm.h" 30 31 31 32 /***************************************************************************** … … 253 254 init = TRUE; 254 255 255 if(!getenv("NOWIN32LOG")) 256 flog = fopen("win32os2.log", "w"); 256 if(!getenv("NOWIN32LOG")) { 257 char logname[CCHMAXPATH]; 258 259 sprintf(logname, "odin32_%d.log", loadNr); 260 flog = fopen(logname, "w"); 261 } 257 262 else 258 263 fLogging = FALSE; … … 278 283 { 279 284 fclose(flog); 285 flog = 0; 280 286 } 281 287 -
trunk/src/kernel32/winimage.cpp
r622 r646 1 /* $Id: winimage.cpp,v 1.1 3 1999-08-22 14:24:35sandervl Exp $ */1 /* $Id: winimage.cpp,v 1.14 1999-08-23 13:54:43 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 #include "winres.h" 36 36 #include "os2util.h" 37 #include "initterm.h" 37 38 38 39 char szErrorTitle[] = "Win32 for OS/2"; … … 71 72 fNativePEImage = TRUE; 72 73 73 if(foutInit == FALSE) {74 fout.open("pe.log", ios::out | ios::trunc);75 foutInit = TRUE;76 }77 74 strcpy(this->szFileName, szFileName); 78 75 … … 87 84 if(dot) 88 85 *dot = 0; 86 87 if(foutInit == FALSE) { 88 char logname[32]; 89 sprintf(logname, "pe_%d.log", loadNr); 90 fout.open(logname, ios::out | ios::trunc); 91 dprintf(("PE LOGFILE for %s: %s (rc=%d)", szModule, logname)); 92 foutInit = TRUE; 93 } 89 94 90 95 #ifdef DEBUG
Note:
See TracChangeset
for help on using the changeset viewer.