Changeset 5130


Ignore:
Timestamp:
Feb 14, 2001, 12:41:04 PM (24 years ago)
Author:
sandervl
Message:

initterm call fixes

Location:
trunk/src
Files:
2 deleted
32 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/DPlayX/initterm.cpp

    r4314 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-09-24 22:26:09 hugh Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 
    4239 //Win32 resource table (produced by wrc)
    4340 extern DWORD _Resource_PEResTab;
     
    6966   switch (ulFlag) {
    7067      case 0:
    71          _ctordtorInit();
     68         __ctordtorInit();
    7269
    7370         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    74 
    75    dllHandle = RegisterLxDll(hModule, DPLAYX_LibMain, (PVOID)&_Resource_PEResTab);
     71 
     72         dllHandle = RegisterLxDll(hModule, DPLAYX_LibMain, (PVOID)&_Resource_PEResTab);
    7673         if(dllHandle == 0)
    77     return 0UL;
     74             return 0UL;
    7875
    7976         break;
    8077      case 1:
    8178         if(dllHandle) {
    82     UnregisterLxDll(dllHandle);
     79             UnregisterLxDll(dllHandle);
    8380         }
    8481         break;
  • TabularUnified trunk/src/NTDLL/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.10 2000-08-11 10:56:11 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6157   case DLL_PROCESS_DETACH:
    6258        NTDLL_LibMain(hinstDLL, fdwReason, fImpLoad);
    63         _ctordtorTerm();
     59        __ctordtorTerm();
    6460        return TRUE;
    6561   }
     
    8884   switch (ulFlag) {
    8985      case 0 :
    90          _ctordtorInit();
     86         __ctordtorInit();
    9187
    9288         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/Odin32API/odindll.cpp

    r3993 r5130  
    1 /* $Id: odindll.cpp,v 1.2 2000-08-11 10:56:12 sandervl Exp $ */
     1/* $Id: odindll.cpp,v 1.3 2001-02-14 11:40:58 sandervl Exp $ */
    22
    33/*
     
    3535#include <odinlx.h>
    3636#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     37#include <initdll.h>
    3738
    3839extern "C" {
    39 void CDECL _ctordtorInit( void );
    40 void CDECL _ctordtorTerm( void );
    4140
    4241//Win32 resource table (produced by wrc)
     
    7877   switch (ulFlag) {
    7978      case 0 :
    80          _ctordtorInit();
     79         __ctordtorInit();
    8180
    8281         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     
    9190                return 0UL;
    9291
    93          rc = DosExitList(0x0000F000|EXLST_ADD, cleanup);
     92         rc = DosExitList(EXITLIST_APPDLL|EXLST_ADD, cleanup);
    9493         if(rc)
    9594                return 0UL;
     
    114113static void APIENTRY cleanup(ULONG ulReason)
    115114{
    116    _ctordtorTerm();
     115   __ctordtorTerm();
    117116   DosExitList(EXLST_EXIT, cleanup);
    118117   return ;
  • TabularUnified trunk/src/comctl32/initterm.cpp

    r5076 r5130  
    1 /* $Id: initterm.cpp,v 1.11 2001-02-09 18:31:38 sandervl Exp $ */
    21/*
    32 * COMCTL32 DLL entry point
     
    3534#include <winconst.h>
    3635#include <odinlx.h>
     36#include <initdll.h>
    3737
    3838extern "C" {
    39 void CDECL _ctordtorInit( void );
    40 void CDECL _ctordtorTerm( void );
    41 
    4239 //Win32 resource table (produced by wrc)
    4340 extern DWORD _Resource_PEResTab;
     
    6764        /* unregister Win32 window classes */
    6865        UnregisterCOMCTL32WindowClasses();
    69         _ctordtorTerm();
     66        __ctordtorTerm();
    7067        return TRUE;
    7168   }
     
    9592      case 0 :
    9693
    97          _ctordtorInit();
     94         __ctordtorInit();
    9895
    9996         /*******************************************************************/
  • TabularUnified trunk/src/comdlg32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.10 2000-08-11 10:56:13 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6258   case DLL_PROCESS_DETACH:
    6359        COMDLG32_DllEntryPoint(hinstDLL, fdwReason, fImpLoad);
    64         _ctordtorTerm();
     60        __ctordtorTerm();
    6561        return TRUE;
    6662   }
     
    8985   switch (ulFlag) {
    9086      case 0 :
    91          _ctordtorInit();
     87         __ctordtorInit();
    9288
    9389         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/crtdll/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:13 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <winconst.h>
    3735#include <odinlx.h>
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    4239
    4340 //Win32 resource table (produced by wrc)
     
    6259   case DLL_PROCESS_DETACH:
    6360        CRTDLL_Init(hinstDLL, fdwReason, fImpLoad);
    64         _ctordtorTerm();
     61        __ctordtorTerm();
    6562        return TRUE;
    6663   }
     
    8986   switch (ulFlag) {
    9087      case 0 :
    91          _ctordtorInit();
     88         __ctordtorInit();
    9289
    9390         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/ddraw/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.13 2000-08-11 10:56:14 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6258
    6359   case DLL_PROCESS_DETACH:
    64         _ctordtorTerm();
     60        __ctordtorTerm();
    6561        return TRUE;
    6662   }
     
    9086      case 0 :
    9187      {
    92          _ctordtorInit();
     88         __ctordtorInit();
    9389
    9490         DosQueryModuleName(hModule, CCHMAXPATH, ddrawPath);
  • TabularUnified trunk/src/ddraw/new/initterm.cpp

    r3345 r5130  
    1 /* $Id: initterm.cpp,v 1.1 2000-04-07 18:21:12 mike Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3735#include <exitlist.h>
    3836#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     37#include <initdll.h>
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    6561
    6662   case DLL_PROCESS_DETACH:
    67         _ctordtorTerm();
     63        __ctordtorTerm();
    6864        return TRUE;
    6965   }
     
    9389      case 0 :
    9490      {
    95          _ctordtorInit();
     91         __ctordtorInit();
    9692
    9793         DosQueryModuleName(hModule, CCHMAXPATH, ddrawPath);
  • TabularUnified trunk/src/dllentry/dllentry.cpp

    r4818 r5130  
    1 /* $Id: dllentry.cpp,v 1.3 2000-12-16 23:31:07 bird Exp $ */
     1/* $Id: dllentry.cpp,v 1.4 2001-02-14 11:40:59 sandervl Exp $ */
    22
    33/*
     
    3636#include <odinlx.h>
    3737#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    38 
     38#include <initdll.h>
    3939
    4040extern "C" {
    41 #ifdef __IBMCPP__
    42 void CDECL _ctordtorInit( void );
    43 void CDECL _ctordtorTerm( void );
    44 #endif
    4541 //Win32 resource table (produced by wrc)
    4642 extern DWORD _Resource_PEResTab;
     
    6460      case DLL_PROCESS_DETACH:
    6561#ifdef __IBMCPP__
    66          _ctordtorTerm();
     62         __ctordtorTerm();
    6763#endif
    6864         return TRUE;
     
    9389   {
    9490      case 0:
    95          _ctordtorInit();
     91         __ctordtorInit();
    9692         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9793         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
  • TabularUnified trunk/src/dsound/initterm.cpp

    r4028 r5130  
    1 /* $Id: initterm.cpp,v 1.12 2000-08-17 18:21:05 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6258
    6359   case DLL_PROCESS_DETACH:
    64         _ctordtorTerm();
     60        __ctordtorTerm();
    6561        return TRUE;
    6662   }
     
    9389         char *endofpath = strrchr(dsoundPath, '\\');
    9490         if(endofpath) *(endofpath+1) = 0;
    95          _ctordtorInit();
     91         __ctordtorInit();
    9692
    9793         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/gdi32/initterm.cpp

    r4873 r5130  
    1 /* $Id: initterm.cpp,v 1.13 2001-01-05 23:25:30 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3937#include "dbglocal.h"
    4038#include "region.h"
     39#include <initdll.h>
    4140
    4241extern "C" {
    43 void CDECL _ctordtorInit( void );
    44 void CDECL _ctordtorTerm( void );
    45 
    4642 //Win32 resource table (produced by wrc)
    4743 extern DWORD _Resource_PEResTab;
     
    6258
    6359   case DLL_PROCESS_DETACH:
    64         _ctordtorTerm();
     60        __ctordtorTerm();
    6561        return TRUE;
    6662   }
     
    8985   switch (ulFlag) {
    9086      case 0 :
    91          _ctordtorInit();
     87         __ctordtorInit();
    9288
    9389         ParseLogStatus();
  • TabularUnified trunk/src/imagehlp/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:15 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <winconst.h>
    3735#include <odinlx.h>
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6157   case DLL_PROCESS_DETACH:
    6258        IMAGEHLP_LibMain(hinstDLL, fdwReason, fImpLoad);
    63         _ctordtorTerm();
     59        __ctordtorTerm();
    6460        return TRUE;
    6561   }
     
    8884   switch (ulFlag) {
    8985      case 0 :
    90          _ctordtorInit();
     86         __ctordtorInit();
    9187
    9288         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/kernel32/initterm.cpp

    r4510 r5130  
    1 /* $Id: initterm.cpp,v 1.49 2000-10-21 14:30:47 sandervl Exp $ */
    2 
    31/*
    42 * KERNEL32 DLL entry point
     
    5351#include <cpuhlp.h>
    5452#include <Win32k.h>
     53#include <initdll.h>
    5554
    5655#define DBG_LOCALLOG    DBG_initterm
     
    6766
    6867extern "C" {
    69 void CDECL _ctordtorInit( void );
    70 void CDECL _ctordtorTerm( void );
    71 
    7268 //Win32 resource table (produced by wrc)
    7369 extern DWORD _Resource_PEResTab;
     
    121117            *(endofpath+1) = 0;
    122118            dprintf(("kernel32 init %s %s", __DATE__, __TIME__));
    123             _ctordtorInit();
     119            __ctordtorInit();
    124120
    125121            CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
     
    219215    DestroySharedHeap();
    220216    DestroyCodeHeap();
    221     _ctordtorTerm();
     217    __ctordtorTerm();
    222218
    223219    //NOTE: Must be done after DestroyTIB
  • TabularUnified trunk/src/msacm32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-08-11 10:56:21 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <winconst.h>
    3735#include <odinlx.h>
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6157   case DLL_PROCESS_DETACH:
    6258        MSACM32_LibMain(hinstDLL, fdwReason, fImpLoad);
    63         _ctordtorTerm();
     59        __ctordtorTerm();
    6460        return TRUE;
    6561   }
     
    8884   switch (ulFlag) {
    8985      case 0 :
    90          _ctordtorInit();
     86         __ctordtorInit();
    9187
    9288         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/odincrt/initterm.cpp

    r4818 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-12-16 23:33:37 bird Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3432#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3533#include <exitlist.h>
     34#include <initdll.h>
    3635
    3736#ifdef __IBMCPP__
    3837extern "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 }
    5338
    5439/*-------------------------------------------------------------------*/
     
    5944/*-------------------------------------------------------------------*/
    6045static void APIENTRY cleanup(ULONG reason);
    61 
     46}
    6247
    6348/****************************************************************************/
     
    8974         /*******************************************************************/
    9075
    91          if (CRT_init() == -1)
     76         if (_CRT_init() == -1)
    9277            return 0UL;
    93          _ctordtorInit();
     78         __ctordtorInit();
    9479
    9580         /*******************************************************************/
     
    129114static void APIENTRY cleanup(ULONG ulReason)
    130115{
    131    _ctordtorTerm();
    132    CRT_term();
     116   __ctordtorTerm();
     117   _CRT_term();
    133118   DosExitList(EXLST_EXIT, cleanup);
    134119   return ;
  • TabularUnified trunk/src/oleaut32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.7 2000-08-11 10:56:22 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    7066
    7167   case DLL_PROCESS_DETACH:
    72         _ctordtorTerm();
     68        __ctordtorTerm();
    7369        ClosePrivateLogFiles();
    7470        return TRUE;
     
    105101         *(endofpath+1) = 0;
    106102
    107          _ctordtorInit();
     103         __ctordtorInit();
    108104
    109105         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/opengl/glide/cvg/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3432#include <odinlx.h>
    3533#include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     34#include <initdll.h>
    3635
    3736extern "C" {
    38 void CDECL _ctordtorInit( void );
    39 void CDECL _ctordtorTerm( void );
    40 
    4137 //Win32 resource table (produced by wrc)
    4238 extern DWORD _Resource_PEResTab;
     
    5854
    5955   case DLL_PROCESS_DETACH:
    60         _ctordtorTerm();
    6156        DllMain(hinstDLL, fdwReason, fImpLoad);
     57        __ctordtorTerm();
    6258        return TRUE;
    6359   }
     
    8682   switch (ulFlag) {
    8783      case 0 :
    88          _ctordtorInit();
     84         __ctordtorInit();
    8985
    9086         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/opengl/glide/sst1/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:22 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3432#include <odinlx.h>
    3533#include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     34#include <initdll.h>
    3635
    3736extern "C" {
    38 void CDECL _ctordtorInit( void );
    39 void CDECL _ctordtorTerm( void );
    40 
    4137 //Win32 resource table (produced by wrc)
    4238 extern DWORD _Resource_PEResTab;
     
    5854
    5955   case DLL_PROCESS_DETACH:
    60         _ctordtorTerm();
    6156        DllMain(hinstDLL, fdwReason, fImpLoad);
     57        __ctordtorTerm();
    6258        return TRUE;
    6359   }
     
    8682   switch (ulFlag) {
    8783      case 0 :
    88          _ctordtorInit();
     84         __ctordtorInit();
    8985
    9086         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/opengl/glu/makefile

    r4720 r5130  
    1 # $Id: makefile,v 1.15 2000-12-03 00:26:14 bird Exp $
     1# $Id: makefile,v 1.16 2001-02-14 11:41:02 sandervl Exp $
    22
    33#
     
    3333#
    3434OBJS = \
    35 $(OBJDIR)\initterm.obj \
    36 $(OBJDIR)\glu32rsrc.obj
     35$(OBJDIR)\glu32rsrc.obj \
     36$(DLLENTRY)
    3737
    3838
  • TabularUnified trunk/src/opengl/glut/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.9 2000-08-11 10:56:23 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3533#include <winconst.h>
    3634#include <odinlx.h>
    37 
     35#include <initdll.h>
    3836
    3937extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4338 //Win32 resource table (produced by wrc)
    4439 extern DWORD _Resource_PEResTab;
     
    6156     case DLL_PROCESS_DETACH:
    6257       Glut32Terminate();
    63        _ctordtorTerm();
    64       return TRUE;
     58       __ctordtorTerm();
     59       return TRUE;
    6560   }
    6661   return FALSE;
     
    8782   switch (ulFlag) {
    8883      case 0 :
    89          _ctordtorInit();
     84         __ctordtorInit();
    9085
    9186         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/opengl/mesa/3dfx/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:23 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6258   case DLL_PROCESS_DETACH:
    6359        cleangraphics();
    64         _ctordtorTerm();
     60        __ctordtorTerm();
    6561        return TRUE;
    6662   }
     
    8985   switch (ulFlag) {
    9086      case 0 :
    91          _ctordtorInit();
     87         __ctordtorInit();
    9288
    9389         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/opengl/mesa/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.5 2000-08-11 10:56:23 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     36#include <initdll.h>
    3837
    3938extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 
    4339 //Win32 resource table (produced by wrc)
    4440 extern DWORD _Resource_PEResTab;
     
    6662       DiveGlobalTerminate();
    6763#endif
    68        _ctordtorTerm();
     64       __ctordtorTerm();
    6965       return TRUE;
    7066   }
     
    9490   switch (ulFlag) {
    9591      case 0 :
    96          _ctordtorInit();
     92         __ctordtorInit();
    9793
    9894         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/riched32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.2 2000-08-11 10:56:24 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3836#include <twain.h>
     37#include <initdll.h>
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440//Win32 resource table (produced by wrc)
    4541extern DWORD _Resource_PEResTab;
     
    5248//******************************************************************************
    5349BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    54 {
     50{
     51 BOOL ret;
     52
    5553   switch (fdwReason)
    5654   {
     
    6361
    6462   case DLL_PROCESS_DETACH:
    65         _ctordtorTerm();
    66         return RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     63        ret = RICHED32_LibMain(hinstDLL, fdwReason, fImpLoad);
     64        __ctordtorTerm();
     65        return ret;
    6766   }
    6867   return FALSE;
     
    9190   switch (ulFlag) {
    9291      case 0 :
    93          _ctordtorInit();
     92         __ctordtorInit();
    9493
    9594         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/rpcrt4/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:24 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3836#include "uuidp.h"
     37#include <initdll.h>
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    6157
    6258   case DLL_PROCESS_DETACH:
    63         _ctordtorTerm();
     59        __ctordtorTerm();
    6460        return TRUE;
    6561   }
     
    8884   switch (ulFlag) {
    8985      case 0 :
    90          _ctordtorInit();
     86         __ctordtorInit();
    9187
    9288         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/shell32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.11 2000-08-11 10:56:25 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    38 
    39 extern "C" {
    40 void CDECL _ctordtorInit( void );
    41 void CDECL _ctordtorTerm( void );
    42 }
     36#include <initdll.h>
    4337
    4438extern "C" {
     
    5448BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    5549{
     50 BOOL ret;
     51
    5652   switch (fdwReason)
    5753   {
     
    6258
    6359   case DLL_PROCESS_DETACH:
    64         Shell32LibMain(hinstDLL, fdwReason, fImpLoad);
    65         _ctordtorTerm();
    66         return TRUE;
     60        ret = Shell32LibMain(hinstDLL, fdwReason, fImpLoad);
     61        __ctordtorTerm();
     62        return ret;
    6763   }
    6864   return FALSE;
     
    9086   switch (ulFlag) {
    9187      case 0 :
    92          _ctordtorInit();
     88         __ctordtorInit();
    9389
    9490         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/twain_32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.9 2000-08-11 10:56:25 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
    3836#include <twain.h>
     37#include <initdll.h>
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440//Win32 resource table (produced by wrc)
    4541extern DWORD _Resource_PEResTab;
     
    7066
    7167   case DLL_PROCESS_DETACH:
    72         _ctordtorTerm();
     68        __ctordtorTerm();
    7369        return TRUE;
    7470   }
     
    9894   switch (ulFlag) {
    9995      case 0 :
    100          _ctordtorInit();
     96         __ctordtorInit();
    10197
    10298         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/user32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.23 2000-08-11 10:56:26 sandervl Exp $ */
    2 
    31/*
    42 * USER32 DLL entry point
     
    4442#include "initterm.h"
    4543#include <exitlist.h>
     44#include <initdll.h>
    4645
    4746#define DBG_LOCALLOG    DBG_initterm
     
    5756
    5857extern "C" {
    59 void CDECL _ctordtorInit( void );
    60 void CDECL _ctordtorTerm( void );
    61 
    6258 //Win32 resource table (produced by wrc)
    6359 extern DWORD _Resource_PEResTab;
     
    8783   switch (ulFlag) {
    8884      case 0 :
    89          _ctordtorInit();
     85         __ctordtorInit();
    9086         ParseLogStatus();
    9187
     
    148144   SYSCOLOR_Save();
    149145   CloseSpyQueue();
    150    _ctordtorTerm();
     146   __ctordtorTerm();
    151147   dprintf(("user32 exit done\n"));
    152148
  • TabularUnified trunk/src/wing32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:56:27 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837#include "wing32impl.h"
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    5450   {
    5551   case DLL_PROCESS_ATTACH:
     52        if(!InitWing32())
     53            return FALSE;
     54
    5655        return TRUE;
    5756
     
    6160
    6261   case DLL_PROCESS_DETACH:
    63         _ctordtorTerm();
     62        __ctordtorTerm();
    6463        return TRUE;
    6564   }
     
    9089      case 0 :
    9190      {
    92         _ctordtorInit();
     91         __ctordtorInit();
    9392
    94         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    95 
    96         if(!InitWing32())
    97           return 0UL;
     93         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
    9894
    9995         dllHandle = RegisterLxDll(hModule, LibMain, (PVOID)&_Resource_PEResTab);
  • TabularUnified trunk/src/wininet/initterm.cpp

    r3994 r5130  
    1 /* $Id: initterm.cpp,v 1.3 2000-08-11 10:57:58 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>                      /* PLF Wed  98-03-18 23:18:15       */
     36#include <initdll.h>
    3837
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    5349BOOL WINAPI LibMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
    5450{
     51 BOOL ret;
     52
    5553   switch (fdwReason)
    5654   {
     
    6159
    6260   case DLL_PROCESS_DETACH:
    63         WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
    64         _ctordtorTerm();
    65         return TRUE;
     61        ret = WININET_LibMain(hinstDLL, fdwReason, fImpLoad);
     62        __ctordtorTerm();
     63        return ret;
    6664   }
    6765   return FALSE;
     
    9189   switch (ulFlag) {
    9290      case 0 :
    93          _ctordtorInit();
     91         __ctordtorInit();
    9492
    9593         CheckVersionFromHMOD(PE2LX_VERSION, hModule);/* PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/winmm/initterm.cpp

    r4748 r5130  
    1 /* $Id: initterm.cpp,v 1.11 2000-12-03 22:18:17 sandervl Exp $ */
    2 
    31/*
    42 * WINMM DLL entry point
     
    3836#include <winconst.h>
    3937#include <odinlx.h>
     38#include <initdll.h>
    4039#include "auxiliary.h"
    4140
     
    4443
    4544BOOL MULTIMEDIA_MciInit(void);
    46 BOOL    MULTIMEDIA_CreateIData(HINSTANCE hinstDLL);
     45BOOL MULTIMEDIA_CreateIData(HINSTANCE hinstDLL);
    4746void MULTIMEDIA_DeleteIData(void);
    4847
    4948extern "C" {
    5049void IRTMidiShutdown();  // IRTMidi shutdown routine
    51 void CDECL _ctordtorInit( void );
    52 void CDECL _ctordtorTerm( void );
    53 
    5450
    5551 //Win32 resource table (produced by wrc)
     
    8581
    8682   case DLL_PROCESS_DETACH:
    87      MULTIMEDIA_DeleteIData();
     83        MULTIMEDIA_DeleteIData();
    8884        auxOS2Close(); /* SvL: Close aux device if necessary */
    8985        IRTMidiShutdown;  /* JT: Shutdown RT Midi subsystem, if running. */
    90         _ctordtorTerm();
     86        __ctordtorTerm();
    9187        return TRUE;
    9288   }
     
    115111   switch (ulFlag) {
    116112      case 0 :
    117          _ctordtorInit();
     113         __ctordtorInit();
    118114
    119115         ParseLogStatus();
  • TabularUnified trunk/src/wnaspi32/initterm.cpp

    r4265 r5130  
    1 /* $Id: initterm.cpp,v 1.4 2000-09-15 13:25:48 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
    3837#include "aspilib.h"
    3938
    4039extern "C" {
    41 void CDECL _ctordtorInit( void );
    42 void CDECL _ctordtorTerm( void );
    43 
    4440 //Win32 resource table (produced by wrc)
    4541 extern DWORD _Resource_PEResTab;
     
    8076                aspi = NULL;
    8177        }
    82         _ctordtorTerm();
     78        __ctordtorTerm();
    8379        return TRUE;
    8480   }
     
    107103   switch (ulFlag) {
    108104      case 0:
    109          _ctordtorInit();
     105         __ctordtorInit();
    110106
    111107         CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed  98-03-18 05:28:48*/
  • TabularUnified trunk/src/wsock32/initterm.cpp

    r3993 r5130  
    1 /* $Id: initterm.cpp,v 1.12 2000-08-11 10:56:27 sandervl Exp $ */
    2 
    31/*
    42 * DLL entry point
     
    3634#include <odinlx.h>
    3735#include <misc.h>       /*PLF Wed  98-03-18 23:18:15*/
     36#include <initdll.h>
     37
    3838#define DBG_LOCALLOG    DBG_initterm
    3939#include "dbglocal.h"
    4040
    4141extern "C" {
    42 void CDECL _ctordtorInit( void );
    43 void CDECL _ctordtorTerm( void );
    44 
    4542 //Win32 resource table (produced by wrc)
    4643 extern DWORD _Resource_PEResTab;
     
    6259
    6360   case DLL_PROCESS_DETACH:
    64         _ctordtorTerm();
     61        __ctordtorTerm();
    6562        return TRUE;
    6663   }
     
    8986   switch (ulFlag) {
    9087      case 0 :
    91          _ctordtorInit();
     88         __ctordtorInit();
    9289
    9390         ParseLogStatus();
Note: See TracChangeset for help on using the changeset viewer.