- Timestamp:
- Aug 16, 1999, 6:28:05 PM (26 years ago)
- Location:
- trunk/src
- Files:
-
- 46 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/NTDLL/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:38sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:01 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/NTDLL/makefile
r450 r510 1 # $Id: makefile,v 1. 6 1999-08-09 18:44:05 achimhaExp $1 # $Id: makefile,v 1.7 1999-08-16 16:28:01 sandervl Exp $ 2 2 3 3 # … … 40 40 41 41 $(TARGET).dll: $(OBJS) $(TARGET).def 42 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj $(TARGET).def $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 42 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj $(TARGET).def $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 43 43 # PMWINX.LIB LIBULS.LIB LIBCONV.LIB 44 44 $(CP) $@ $(PDWIN32_BIN) -
trunk/src/advapi32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:38sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:01 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/advapi32/makefile
r490 r510 1 # $Id: makefile,v 1. 8 1999-08-13 00:15:16 phallerExp $1 # $Id: makefile,v 1.9 1999-08-16 16:28:01 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/kernel32.lib \ 31 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 31 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 32 32 $(CP) $@ $(PDWIN32_BIN) 33 33 -
trunk/src/capi2032/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:38sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:01 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/capi2032/makefile
r450 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:31:30 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:01 sandervl Exp $ 2 2 3 3 # … … 28 28 29 29 $(TARGET).dll: $(OBJS) $(TARGET).def 30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 31 31 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/comctl32/initterm.cpp
r131 r510 1 /* $Id: initterm.cpp,v 1. 4 1999-06-20 14:02:12 sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.5 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 /* 3 * COM DLG32 DLL entry point3 * COMCTL32 DLL entry point 4 4 * 5 5 * Copyright 1998 Sander van Leeuwen … … 33 33 #include <misc.h> /*PLF Wed 98-03-18 23:18:29*/ 34 34 35 extern "C" {36 /*-------------------------------------------------------------------*/37 /* _CRT_init is the C run-time environment initialization function. */38 /* It will return 0 to indicate success and -1 to indicate failure. */39 /*-------------------------------------------------------------------*/40 int CDECL CRT_init(void);41 /*-------------------------------------------------------------------*/42 /* _CRT_term is the C run-time environment termination function. */43 /* It only needs to be called when the C run-time functions are */44 /* statically linked. */45 /*-------------------------------------------------------------------*/46 void CDECL CRT_term(void);47 void CDECL _ctordtorInit( void );48 void CDECL _ctordtorTerm( void );49 }50 51 35 void CDECL RegisterCOMCTL32WindowClasses(unsigned long hinstDLL); 52 36 void CDECL UnregisterCOMCTL32WindowClasses(void); 53 54 /*-------------------------------------------------------------------*/55 /* A clean up routine registered with DosExitList must be used if */56 /* runtime calls are required and the runtime is dynamically linked. */57 /* This will guarantee that this clean up routine is run before the */58 /* library DLL is terminated. */59 /*-------------------------------------------------------------------*/60 static void APIENTRY cleanup(ULONG reason);61 62 37 63 38 /****************************************************************************/ … … 90 65 /*******************************************************************/ 91 66 92 if (CRT_init() == -1)93 return 0UL;94 _ctordtorInit();95 96 67 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 97 98 /*******************************************************************/99 /* A DosExitList routine must be used to clean up if runtime calls */100 /* are required and the runtime is dynamically linked. */101 /*******************************************************************/102 103 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);104 if(rc)105 return 0UL;106 68 107 69 /* register Win32 window classes implemented in this DLL */ … … 110 72 break; 111 73 case 1 : 74 /* unregister Win32 window classes */ 75 UnregisterCOMCTL32WindowClasses(); 112 76 break; 113 77 default : … … 121 85 } 122 86 123 124 static void APIENTRY cleanup(ULONG ulReason)125 {126 /* unregister Win32 window classes */127 UnregisterCOMCTL32WindowClasses();128 129 _ctordtorTerm();130 CRT_term();131 DosExitList(EXLST_EXIT, cleanup);132 return ;133 } -
trunk/src/comctl32/makefile
r498 r510 1 # $Id: makefile,v 1.1 2 1999-08-14 17:10:51 achimhaExp $1 # $Id: makefile,v 1.13 1999-08-16 16:28:02 sandervl Exp $ 2 2 # 3 3 # PD-Win32 API … … 33 33 34 34 $(TARGET).dll: $(OBJS) $(TARGET).def rsrc.res 35 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \35 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 36 36 $(PDWIN32_LIB)/kernel32.lib \ 37 37 $(PDWIN32_LIB)/gdi32.lib \ 38 38 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 39 OS2386.LIB 39 OS2386.LIB cppom30O.lib 40 40 rc rsrc.res comctl32.dll 41 41 $(CP) $@ $(PDWIN32_BIN) -
trunk/src/comdlg32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:39sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/comdlg32/makefile
r450 r510 1 # $Id: makefile,v 1. 5 1999-08-09 18:34:38 achimhaExp $1 # $Id: makefile,v 1.6 1999-08-16 16:28:02 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 OS2386.LIB 32 OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/ddraw/initterm.cpp
r354 r510 1 /* $Id: initterm.cpp,v 1.6 1999-08-16 16:28:02 sandervl Exp $ */ 1 2 2 3 /* 3 4 * This file was created for Sander van Leeuwen 5 6 * by Project Smarts on 8 May 1997. 7 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 * 8 12 */ 9 13 … … 23 27 #define INCL_DOSMODULEMGR 24 28 #define INCL_DOSPROCESS 25 #include <os2wrap.h> 29 #include <os2wrap.h> //Odin32 OS/2 api wrappers 26 30 #include <stdlib.h> 27 31 #include <stdio.h> 28 32 #include <string.h> 29 33 #include <odin.h> 30 #include <misc.h> /*PLF Wed 98-03-18 23:18:29*/ 31 32 extern "C" { 33 /*-------------------------------------------------------------------*/ 34 /* _CRT_init is the C run-time environment initialization function. */ 35 /* It will return 0 to indicate success and -1 to indicate failure. */ 36 /*-------------------------------------------------------------------*/ 37 int CDECL CRT_init(void); 38 /*-------------------------------------------------------------------*/ 39 /* _CRT_term is the C run-time environment termination function. */ 40 /* It only needs to be called when the C run-time functions are */ 41 /* statically linked. */ 42 /*-------------------------------------------------------------------*/ 43 void CDECL CRT_term(void); 44 void CDECL _ctordtorInit( void ); 45 void CDECL _ctordtorTerm( void ); 46 } 47 /*-------------------------------------------------------------------*/ 48 /* A clean up routine registered with DosExitList must be used if */ 49 /* runtime calls are required and the runtime is dynamically linked. */ 50 /* This will guarantee that this clean up routine is run before the */ 51 /* library DLL is terminated. */ 52 /*-------------------------------------------------------------------*/ 53 static void APIENTRY cleanup(ULONG reason); 54 55 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 56 35 57 36 /****************************************************************************/ … … 63 42 /* calling this function. */ 64 43 /****************************************************************************/ 65 unsigned long _System_DLL_InitTerm(unsigned long hModule, unsigned long66 44 unsigned long SYSTEM _DLL_InitTerm(unsigned long hModule, unsigned long 45 ulFlag) 67 46 { 68 47 size_t i; … … 77 56 switch (ulFlag) { 78 57 case 0 : 79 80 /*******************************************************************/ 81 /* The C run-time environment initialization function must be */ 82 /* called before any calls to C run-time functions that are not */ 83 /* inlined. */ 84 /*******************************************************************/ 85 86 if (CRT_init() == -1) 87 return 0UL; 88 _ctordtorInit(); 89 90 //SvL: Temporarily disabled 91 #if 0 92 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 93 #endif 94 95 /*******************************************************************/ 96 /* A DosExitList routine must be used to clean up if runtime calls */ 97 /* are required and the runtime is dynamically linked. */ 98 /*******************************************************************/ 99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup); 101 if(rc) 102 return 0UL; 103 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/ddraw/makefile
r503 r510 13 13 ASFLAGS = -Sc -Sv:ALP 14 14 15 CFLAGS = $(CFLAGS) /Gn+-I$(PDWIN32_INCLUDE);16 CXXFLAGS = $(CXXFLAGS) /Gn+-I$(PDWIN32_INCLUDE);15 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE); 16 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE); 17 17 18 18 TARGET = ddraw … … 22 22 23 23 24 LIBS = ..\..\lib\pmwinx.lib mmpm2.lib ..\..\lib\comctl32.lib $(PDWIN32_LIB)\advapi32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\gdi32.lib $(PDWIN32_LIB)\comctl32.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 24 LIBS = ..\..\lib\pmwinx.lib mmpm2.lib ..\..\lib\comctl32.lib $(PDWIN32_LIB)\advapi32.lib $(PDWIN32_LIB)\kernel32.lib $(PDWIN32_LIB)\gdi32.lib $(PDWIN32_LIB)\comctl32.lib $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 25 25 26 26 all: $(TARGET).dll $(TARGET).lib … … 28 28 29 29 $(TARGET).dll: $(OBJS) $(TARGET).def 30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def $(LIBS)30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def $(LIBS) 31 31 $(CP) $@ $(PDWIN32_BIN) 32 32 -
trunk/src/dsound/initterm.cpp
r97 r510 1 /* $Id: initterm.cpp,v 1. 2 1999-06-10 17:09:30 phallerExp $ */1 /* $Id: initterm.cpp,v 1.3 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #define INCL_DOSMODULEMGR 28 28 #define INCL_DOSPROCESS 29 #include <os2 .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 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 35 61 36 /****************************************************************************/ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/dsound/makefile
r450 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:38:55 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:02 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 31 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 32 32 $(CP) $@ $(PDWIN32_BIN) 33 33 … … 41 41 dsound.obj: dsound.cpp \ 42 42 $(PDWIN32_INCLUDE)/misc.h \ 43 os2dsound.h \ 44 no.h 43 os2dsound.h 45 44 46 45 os2dsound.obj: os2dsound.cpp \ 47 46 $(PDWIN32_INCLUDE)/misc.h \ 48 47 os2sndbuffer.h \ 49 os2dsound.h \ 50 no.h 48 os2dsound.h 51 49 52 50 os2sndbuffer.obj: os2sndbuffer.cpp \ 53 51 $(PDWIN32_INCLUDE)/misc.h \ 54 52 os2sndbuffer.h \ 55 os2dsound.h \ 56 no.h 53 os2dsound.h 57 54 58 55 misc.obj: misc.c \ -
trunk/src/gdi32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:39sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/gdi32/makefile
r450 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:39:53 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:02 sandervl Exp $ 2 2 3 3 # … … 28 28 29 29 $(TARGET).dll: $(OBJS) $(TARGET).def 30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 31 31 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/kernel32/initterm.cpp
r142 r510 1 /* $Id: initterm.cpp,v 1. 7 1999-06-21 08:21:55 phallerExp $ */1 /* $Id: initterm.cpp,v 1.8 1999-08-16 16:28:02 sandervl Exp $ */ 2 2 3 3 /* … … 35 35 #include <wprocess.h> 36 36 #include "handlemanager.h" 37 38 extern "C" {39 /*-------------------------------------------------------------------*/40 /* _CRT_init is the C run-time environment initialization function. */41 /* It will return 0 to indicate success and -1 to indicate failure. */42 /*-------------------------------------------------------------------*/43 int CDECL CRT_init(void);44 /*-------------------------------------------------------------------*/45 /* _CRT_term is the C run-time environment termination function. */46 /* It only needs to be called when the C run-time functions are */47 /* statically linked. */48 /*-------------------------------------------------------------------*/49 void CDECL CRT_term(void);50 void CDECL _ctordtorInit( void );51 void CDECL _ctordtorTerm( void );52 }53 37 54 38 /*-------------------------------------------------------------------*/ … … 97 81 { 98 82 case 0 : 99 100 /*******************************************************************/101 /* The C run-time environment initialization function must be */102 /* called before any calls to C run-time functions that are not */103 /* inlined. */104 /*******************************************************************/105 106 if (CRT_init() == -1)107 return 0UL;108 _ctordtorInit();109 110 83 dprintf(("kernel32 init\n")); 111 84 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ … … 115 88 /*******************************************************************/ 116 89 117 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);90 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 118 91 if (rc) 119 92 return 0UL; … … 147 120 { 148 121 dprintf(("kernel32 exit %d\n", ulReason)); 149 _dump_allocated(10); /*PLF Wed 98-03-18 23:55:07*/150 122 DestroyTIB(); 151 _ctordtorTerm();152 CRT_term();153 123 DosExitList(EXLST_EXIT, cleanup); 154 124 return ; -
trunk/src/kernel32/makefile
r486 r510 1 # $Id: makefile,v 1.1 7 1999-08-12 14:20:29sandervl Exp $1 # $Id: makefile,v 1.18 1999-08-16 16:28:02 sandervl Exp $ 2 2 3 3 # … … 85 85 86 86 $(TARGET).dll: $(OBJS) $(TARGET).def 87 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj $(TARGET).def $(PDWIN32_LIB)\PMWINX.LIB $(PDWIN32_LIB)\LIBULS.LIB $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB87 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def $(PDWIN32_LIB)\PMWINX.LIB $(PDWIN32_LIB)\LIBULS.LIB $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 88 88 rc -r console.rc console.res 89 89 rc console.res $@ -
trunk/src/lz32/initterm.cpp
r468 r510 1 /* $Id: initterm.cpp,v 1. 1 1999-08-10 12:37:33 phallerExp $ */1 /* $Id: initterm.cpp,v 1.2 1999-08-16 16:28:03 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/lz32/makefile
r468 r510 1 # $Id: makefile,v 1. 1 1999-08-10 12:37:33 phallerExp $1 # $Id: makefile,v 1.2 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj\29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) \ 30 30 $(PDWIN32_LIB)\odincrt.lib \ 31 31 $(PDWIN32_LIB)\kernel32.lib \ 32 os2386.lib \32 os2386.lib cppom30O.lib \ 33 33 $(TARGET).def 34 34 $(CP) $@ $(PDWIN32_BIN) -
trunk/src/mpr/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:44sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:03 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/mpr/makefile
r450 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:43:04 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 OS2386.LIB 32 OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/odincrt/makefile
r466 r510 1 # $Id: makefile,v 1. 4 1999-08-10 11:29:43 phallerExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 14 14 !include $(PDWIN32_INCLUDE)/pdwin32.mk 15 15 16 17 CFLAGS = $(CFLAGS) -I$(PDWIN32_INCLUDE) /B"/NOIgnoreCase" 18 CXXFLAGS = $(CXXFLAGS) -I$(PDWIN32_INCLUDE) /B"/NOIgnoreCase" 16 CXXFLAGS = $(CXXFLAGS_ODINCRT) -I$(PDWIN32_INCLUDE) 19 17 IMPLIBFLAGS = $(IMPLIBFLAGS) /NOIgnoreCase 20 18 … … 25 23 all: $(TARGET).dll $(TARGET).lib 26 24 27 28 25 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) CPPOM30.LIB CPPOM30O.LIB \ 30 $(PDWIN32_LIB)\LIBULS.LIB $(PDWIN32_LIB)\LIBCONV.LIB \ 31 OS2386.LIB SOMTK.LIB $(TARGET).def 26 $(LD) $(LDFLAGS_ODINCRT) -Fm -Fe$@ $(OBJS) $(TARGET).def 32 27 $(CP) $@ $(PDWIN32_BIN) 33 28 -
trunk/src/odincrt/odincrt.def
r483 r510 4 4 DATA MULTIPLE NONSHARED READWRITE LOADONCALL 5 5 CODE LOADONCALL 6 SEGMENTS 7 DDE4_DATA32 CLASS 'DATA' NONSHARED READWRITE LOADONCALL 8 LIBDATA16 CLASS 'DATA' NONSHARED READWRITE LOADONCALL 6 9 7 10 ; We should have plain forwarders for functions that do … … 964 967 _Exception_CPP @917 965 968 __ctdtused @918 966 -
trunk/src/ole32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:45sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:03 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/ole32/makefile
r450 r510 33 33 34 34 $(TARGET).dll: $(OBJS) $(TARGET).def 35 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \35 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 36 36 $(PDWIN32_LIB)\pmwinx.lib \ 37 37 $(PDWIN32_LIB)\advapi32.lib \ 38 38 $(PDWIN32_LIB)\kernel32.lib \ 39 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 39 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 40 40 $(CP) $@ $(PDWIN32_BIN) 41 41 # $(PDWIN32_LIB)\ntdll.lib \ -
trunk/src/pe2lx/makefile
r494 r510 1 # $Id: makefile,v 1. 7 1999-08-13 18:59:25sandervl Exp $1 # $Id: makefile,v 1.8 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 15 15 16 16 17 CFLAGS = $(CFLAGS) -Ge+ /Tm+ /I$(PDWIN32_INCLUDE) /D__PE2LX__17 CFLAGS = $(CFLAGS) /Ge+ /Tm+ /I$(PDWIN32_INCLUDE) /D__PE2LX__ 18 18 CXXFLAGS = $(CXXFLAGS) -Ge+ /Tm+ /I$(PDWIN32_INCLUDE) /D__PE2LX__ 19 19 LDFLAGS = $(LDFLAGS) -Ge+ … … 32 32 $(TARGET).exe: $(OBJS) 33 33 $(LD) $(LDFLAGS) -Fe$@ $(OBJS) \ 34 $(PDWIN32_LIB)\LIBCONV.LIB cppom30.lib OS2386.LIB 35 # $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB CPPOM30.LIB 34 # $(PDWIN32_LIB)\LIBCONV.LIB $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 35 $(PDWIN32_LIB)\LIBCONV.LIB OS2386.LIB cppom30.lib 36 36 $(CP) $(TARGET).exe $(PDWIN32_BIN) 37 37 -
trunk/src/peldr/makefile
r506 r510 1 # $Id: makefile,v 1. 5 1999-08-16 13:54:06sandervl Exp $1 # $Id: makefile,v 1.6 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 15 15 16 16 17 CFLAGS = $(CFLAGS) -Ge+ /Gd- -I$(PDWIN32_INCLUDE) 18 CXXFLAGS = $(CXXFLAGS) -Ge+ /Gd- -I$(PDWIN32_INCLUDE) 19 LDFLAGSEXE = $(LDFLAGS) -Ge+ /B"/pmtype:pm /stack:0x30000 /NOBASE /Map" \ 20 $(PDWIN32_LIB)\peldr.lib os2386.lib $(PDWIN32_LIB)\odincrt.lib cppom30.lib 17 CFLAGS = $(CFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) 18 CXXFLAGS = $(CXXFLAGS) /Ge+ -I$(PDWIN32_INCLUDE) 19 LDFLAGSEXE = $(LDFLAGS) /Ge+ /B"/pmtype:pm /stack:0x30000 /NOBASE /Map" \ 20 $(PDWIN32_LIB)\peldr.lib os2386.lib $(PDWIN32_LIB)\odincrt.lib cppom30O.lib 21 21 22 22 23 TARGET = pe -
trunk/src/shell32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:46sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:03 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/shell32/makefile
r451 r510 1 # $Id: makefile,v 1. 8 1999-08-09 18:54:00 achimhaExp $1 # $Id: makefile,v 1.9 1999-08-16 16:28:03 sandervl Exp $ 2 2 3 3 # … … 28 28 29 29 $(TARGET).dll: $(OBJS) $(TARGET).def 30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \30 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 31 31 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 32 32 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/advapi32.lib \ 33 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 33 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 34 34 $(CP) $@ $(PDWIN32_BIN) 35 35 -
trunk/src/tapi32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:46sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/tapi32/makefile
r451 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:55:51 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:04 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 OS2386.LIB 32 OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
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) -
trunk/src/version/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:47sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/version/makefile
r488 r510 1 # $Id: makefile,v 1. 5 1999-08-12 23:33:37 phallerExp $1 # $Id: makefile,v 1.6 1999-08-16 16:28:04 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 $(PDWIN32_LIB)/lz32.lib OS2386.LIB 32 $(PDWIN32_LIB)/lz32.lib OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/winmm/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:48sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 39 39 extern "C" { 40 40 void IRTMidiShutdown(); // IRTMidi shutdown routine 41 42 /*-------------------------------------------------------------------*/43 /* _CRT_init is the C run-time environment initialization function. */44 /* It will return 0 to indicate success and -1 to indicate failure. */45 /*-------------------------------------------------------------------*/46 int CDECL CRT_init(void);47 /*-------------------------------------------------------------------*/48 /* _CRT_term is the C run-time environment termination function. */49 /* It only needs to be called when the C run-time functions are */50 /* statically linked. */51 /*-------------------------------------------------------------------*/52 void CDECL CRT_term(void);53 void CDECL _ctordtorInit( void );54 void CDECL _ctordtorTerm( void );55 41 } 56 42 … … 88 74 case 0 : 89 75 90 /*******************************************************************/91 /* The C run-time environment initialization function must be */92 /* called before any calls to C run-time functions that are not */93 /* inlined. */94 /*******************************************************************/95 96 if (CRT_init() == -1)97 return 0UL;98 _ctordtorInit();99 100 76 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 101 77 … … 105 81 /*******************************************************************/ 106 82 107 rc = DosExitList(0x0000F F00|EXLST_ADD, cleanup);83 rc = DosExitList(0x0000F000|EXLST_ADD, cleanup); 108 84 if(rc) 109 85 return 0UL; … … 128 104 auxOS2Close(); /* SvL: Close aux device if necessary */ 129 105 IRTMidiShutdown; /* JT: Shutdown RT Midi subsystem, if running. */ 130 _ctordtorTerm();131 CRT_term();132 106 DosExitList(EXLST_EXIT, cleanup); 133 107 return ; -
trunk/src/winmm/makefile
r457 r510 1 # $Id: makefile,v 1. 6 1999-08-09 21:03:16 phallerExp $1 # $Id: makefile,v 1.7 1999-08-16 16:28:04 sandervl Exp $ 2 2 3 3 # … … 31 31 32 32 $(TARGET).dll: $(OBJS) $(TARGET).def 33 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \33 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 34 34 $(PDWIN32_LIB)/pmwinx.lib mmpm2.lib \ 35 35 $(PDWIN32_LIB)/kernel32.lib \ 36 36 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 37 37 OS2386.LIB \ 38 cppom30.lib 39 # @@@PH CPPOM30.LIB DOES NOT BELONG here, it's a temporary hack! 40 38 cppom30O.lib 41 39 $(CP) $@ $(PDWIN32_BIN) 42 40 -
trunk/src/winspool/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:48sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:04 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/winspool/makefile
r451 r510 1 # $Id: makefile,v 1. 4 1999-08-09 18:58:59 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:05 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 OS2386.LIB 32 OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/wnetap32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:48sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:05 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/wnetap32/makefile
r453 r510 1 # $Id: makefile,v 1. 4 1999-08-09 19:20:43 achimhaExp $1 # $Id: makefile,v 1.5 1999-08-16 16:28:05 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)/pmwinx.lib $(PDWIN32_LIB)/kernel32.lib \ 31 31 $(PDWIN32_LIB)/user32.lib $(PDWIN32_LIB)/odincrt.lib \ 32 OS2386.LIB 32 OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34 -
trunk/src/wsock32/initterm.cpp
r120 r510 1 /* $Id: initterm.cpp,v 1. 3 1999-06-19 10:54:48sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.4 1999-08-16 16:28:05 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <misc.h> /*PLF Wed 98-03-18 23:18:15*/ 35 35 36 extern "C" {37 /*-------------------------------------------------------------------*/38 /* _CRT_init is the C run-time environment initialization function. */39 /* It will return 0 to indicate success and -1 to indicate failure. */40 /*-------------------------------------------------------------------*/41 int CDECL CRT_init(void);42 /*-------------------------------------------------------------------*/43 /* _CRT_term is the C run-time environment termination function. */44 /* It only needs to be called when the C run-time functions are */45 /* statically linked. */46 /*-------------------------------------------------------------------*/47 void CDECL CRT_term(void);48 void CDECL _ctordtorInit( void );49 void CDECL _ctordtorTerm( void );50 }51 52 /*-------------------------------------------------------------------*/53 /* A clean up routine registered with DosExitList must be used if */54 /* runtime calls are required and the runtime is dynamically linked. */55 /* This will guarantee that this clean up routine is run before the */56 /* library DLL is terminated. */57 /*-------------------------------------------------------------------*/58 static void APIENTRY cleanup(ULONG reason);59 60 61 36 /****************************************************************************/ 62 37 /* _DLL_InitTerm is the function that gets called by the operating system */ … … 81 56 switch (ulFlag) { 82 57 case 0 : 83 84 /*******************************************************************/85 /* The C run-time environment initialization function must be */86 /* called before any calls to C run-time functions that are not */87 /* inlined. */88 /*******************************************************************/89 90 if (CRT_init() == -1)91 return 0UL;92 _ctordtorInit();93 94 58 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 95 /*******************************************************************/96 /* A DosExitList routine must be used to clean up if runtime calls */97 /* are required and the runtime is dynamically linked. */98 /*******************************************************************/99 100 rc = DosExitList(0x0000FF00|EXLST_ADD, cleanup);101 if(rc)102 return 0UL;103 104 59 break; 105 60 case 1 : … … 114 69 return 1UL; 115 70 } 116 117 118 static void APIENTRY cleanup(ULONG ulReason)119 {120 _ctordtorTerm();121 CRT_term();122 DosExitList(EXLST_EXIT, cleanup);123 return ;124 } -
trunk/src/wsock32/makefile
r451 r510 1 # $Id: makefile,v 1. 5 1999-08-09 19:00:24 achimhaExp $1 # $Id: makefile,v 1.6 1999-08-16 16:28:05 sandervl Exp $ 2 2 3 3 # … … 27 27 28 28 $(TARGET).dll: $(OBJS) $(TARGET).def 29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) sbsstub.obj$(TARGET).def \29 $(LD) $(LDFLAGS) -Fm -Fe$@ $(OBJS) $(TARGET).def \ 30 30 $(PDWIN32_LIB)\pmwinx.lib $(PDWIN32_LIB)\user32.lib \ 31 31 tcp32dll.lib so32dll.lib $(PDWIN32_LIB)\kernel32.lib \ 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB 32 $(PDWIN32_LIB)/odincrt.lib OS2386.LIB cppom30O.lib 33 33 $(CP) $@ $(PDWIN32_BIN) 34 34
Note:
See TracChangeset
for help on using the changeset viewer.