Changeset 510 for trunk/src/user32
- Timestamp:
- Aug 16, 1999, 6:28:05 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r451 r510 1 # $Id: Makefile,v 1.1 2 1999-08-09 18:55:28 achimhaExp $1 # $Id: Makefile,v 1.13 1999-08-16 16:28:04 sandervl Exp $ 2 2 3 3 # … … 32 32 33 33 $(TARGET).dll: $(OBJS) $(TARGET).def 34 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \34 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 35 35 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/gdi32.lib \ 36 36 $(PDWIN32_LIB)/kernel32.lib $(PDWIN32_LIB)/libuls.lib \ 37 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 37 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 38 38 $(CP) $@ $(PDWIN32_BIN) 39 39 -
trunk/src/user32/initterm.cpp
r225 r510 1 /* $Id: initterm.cpp,v 1. 5 1999-06-27 16:23:23sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.6 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 #include <spy.h> 38 38 39 extern "C" {40 /*-------------------------------------------------------------------*/41 /* _CRT_init is the C run-time environment initialization function. */42 /* It will return 0 to indicate success and -1 to indicate failure. */43 /*-------------------------------------------------------------------*/44 int CDECL CRT_init(void);45 /*-------------------------------------------------------------------*/46 /* _CRT_term is the C run-time environment termination function. */47 /* It only needs to be called when the C run-time functions are */48 /* statically linked. */49 /*-------------------------------------------------------------------*/50 void CDECL CRT_term(void);51 void CDECL _ctordtorInit( void );52 void CDECL _ctordtorTerm( void );53 }54 55 39 /*-------------------------------------------------------------------*/ 56 40 /* A clean up routine registered with DosExitList must be used if */ … … 61 45 static void APIENTRY cleanup(ULONG reason); 62 46 static void APIENTRY cleanupQueue(ULONG ulReason); 63 64 47 65 48 … … 86 69 switch (ulFlag) { 87 70 case 0 : 88 89 /*******************************************************************/90 /* The C run-time environment initialization function must be */91 /* called before any calls to C run-time functions that are not */92 /* inlined. */93 /*******************************************************************/94 95 if (CRT_init() == -1)96 return 0UL;97 _ctordtorInit();98 99 71 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 100 72 /*******************************************************************/ … … 103 75 /*******************************************************************/ 104 76 105 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);77 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 106 78 if(rc) 107 79 return 0UL; … … 132 104 { 133 105 CloseSpyQueue(); 106 DosExitList(EXLST_EXIT, cleanupQueue); 107 return; 134 108 } 135 109 … … 138 112 dprintf(("user32 exit\n")); 139 113 UnregisterSystemClasses(); 140 _ctordtorTerm();141 CRT_term();142 114 dprintf(("user32 exit done\n")); 143 115 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/user32/new/initterm.cpp
r346 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-07-20 15:51:06 cbratschiExp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 37 37 #include "pmwindow.h" 38 38 39 extern "C" {40 /*-------------------------------------------------------------------*/41 /* _CRT_init is the C run-time environment initialization function. */42 /* It will return 0 to indicate success and -1 to indicate failure. */43 /*-------------------------------------------------------------------*/44 int CDECL CRT_init(void);45 /*-------------------------------------------------------------------*/46 /* _CRT_term is the C run-time environment termination function. */47 /* It only needs to be called when the C run-time functions are */48 /* statically linked. */49 /*-------------------------------------------------------------------*/50 void CDECL CRT_term(void);51 void CDECL _ctordtorInit( void );52 void CDECL _ctordtorTerm( void );53 }54 55 39 /*-------------------------------------------------------------------*/ 56 40 /* A clean up routine registered with DosExitList must be used if */ … … 87 71 case 0 : 88 72 89 /*******************************************************************/90 /* The C run-time environment initialization function must be */91 /* called before any calls to C run-time functions that are not */92 /* inlined. */93 /*******************************************************************/94 95 if (CRT_init() == -1)96 return 0UL;97 _ctordtorInit();98 99 73 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 100 74 /*******************************************************************/ … … 103 77 /*******************************************************************/ 104 78 105 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);79 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 106 80 if(rc) 107 81 return 0UL; … … 139 113 { 140 114 CloseSpyQueue(); 115 DosExitList(EXLST_EXIT, cleanupQueue); 141 116 } 142 117 … … 145 120 dprintf(("user32 exit\n")); 146 121 UnregisterSystemClasses(); 147 _ctordtorTerm();148 CRT_term();149 122 dprintf(("user32 exit done\n")); 150 123 DosExitList(EXLST_EXIT, cleanup); -
trunk/src/user32/new/makefile
r478 r510 1 # $Id: makefile,v 1.2 3 1999-08-11 17:14:37sandervl Exp $1 # $Id: makefile,v 1.24 1999-08-16 16:28:04 sandervl Exp $ 2 2 3 3 # … … 40 40 41 41 $(TARGET).dll: $(OBJS) $(TARGET).def $(TARGET).res 42 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \42 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 43 43 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/gdi32.lib $(PDWIN32_LIB)/kernel32.lib $(PDWIN32_LIB)/libuls.lib \ 44 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 44 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 45 45 rc $(TARGET).res $(TARGET).dll 46 46 $(CP) $@ $(PDWIN32_BIN)
Note:
See TracChangeset
for help on using the changeset viewer.