From d7086902f1a11ba1006bf17f60978d2e96af84a0 Mon Sep 17 00:00:00 2001 From: sezero Date: Fri, 3 Aug 2018 17:10:05 +0300 Subject: [PATCH] removed some static vars relying on cvs revision number. --- glide3x/cvg/incsrc/fxhal.h | 4 ---- glide3x/cvg/init/rcver.h | 2 +- glide3x/cvg/init/sst1init.c | 15 --------------- glide3x/cvg/init/sst1init.h | 10 ---------- glide3x/h3/incsrc/fxhal.h | 5 ----- glide3x/h5/incsrc/fxhal.h | 3 --- glide3x/sst1/init/init96/init96.c | 7 ++----- glide3x/sst1/init/init96/initat3d.c | 7 ------- glide3x/sst1/init/init96/initmcrx.c | 4 ---- glide3x/sst1/init/initvg/rcver.h | 2 +- glide3x/sst1/init/initvg/sst1init.c | 11 ----------- glide3x/sst1/init/initvg/sst1init.h | 5 ----- 12 files changed, 4 insertions(+), 71 deletions(-) diff --git a/glide3x/cvg/incsrc/fxhal.h b/glide3x/cvg/incsrc/fxhal.h index c6063ea..feb5a91 100644 --- a/glide3x/cvg/incsrc/fxhal.h +++ b/glide3x/cvg/incsrc/fxhal.h @@ -1,4 +1,3 @@ -/*-*-c++-*-*/ #ifndef __FXHAL_H__ #define __FXHAL_H__ @@ -32,9 +31,6 @@ #include -// Allow SourceSafe to track Revision values -#define HAL_H_REV "$Revision$" - // Just to unconfuse myself: // // CHIP FBI-REV TMU-REV DEV-ID diff --git a/glide3x/cvg/init/rcver.h b/glide3x/cvg/init/rcver.h index 4335c51..7b5d90c 100644 --- a/glide3x/cvg/init/rcver.h +++ b/glide3x/cvg/init/rcver.h @@ -2,4 +2,4 @@ #define MANREVISION 1 #define BUILD_NUMBER 1 -#define VERSIONSTR "Voodoo2 InitCode " "$Revision$" "\0" +#define VERSIONSTR "Voodoo2 InitCode " "$Revision: 1 $" "\0" diff --git a/glide3x/cvg/init/sst1init.c b/glide3x/cvg/init/sst1init.c index 3dab330..63f9b64 100644 --- a/glide3x/cvg/init/sst1init.c +++ b/glide3x/cvg/init/sst1init.c @@ -18,10 +18,6 @@ ** ** COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED ** -** -** $Revision$ -** $Date$ -** */ /* @@ -170,9 +166,6 @@ #include #endif -// Allow SourceSafe to track Revision -static char codeIdent[] = "@#%" VERSIONSTR ; - /* ** sst1InitMapBoard(): ** Find and map SST-1 board into virtual memory @@ -230,10 +223,6 @@ FX_EXPORT FxU32 * FX_CSTYLE sst1InitMapBoardDirect(FxU32 BoardNumber, * board which will (of course) fail to map. */ if(firstTime) { - // Make Watcom happy - codeIdent[0] = '@'; - headersIdent[0] = '@'; - // Find "voodoo2.ini" file if it exists... sst1InitUseVoodooFile = sst1InitVoodooFile(); @@ -255,10 +244,6 @@ FX_EXPORT FxU32 * FX_CSTYLE sst1InitMapBoardDirect(FxU32 BoardNumber, if( clearBoardInfo ) { INIT_PRINTF(("sst1Init Routines")); -#ifdef FX_DLL_ENABLE - INIT_PRINTF(("(DLL)")); -#endif - INIT_PRINTF((": %s\n", VERSIONSTR)); INIT_PRINTF(("sst1InitMapBoard(): BoardsInSystem = %d\n", boardsInSystem)); diff --git a/glide3x/cvg/init/sst1init.h b/glide3x/cvg/init/sst1init.h index a6b80a4..d3048fc 100644 --- a/glide3x/cvg/init/sst1init.h +++ b/glide3x/cvg/init/sst1init.h @@ -1,4 +1,3 @@ -/*-*-c++-*-*/ /* ** THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED ONLY ** PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO RIGHT @@ -18,20 +17,12 @@ ** ** COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED ** -** -** $Revision$ -** $Date$ -** */ #ifndef __SST1INIT_H__ #define __SST1INIT_H__ /* -** -** $Revision$ -** $Date$ -** ** SST-1 Initialization routine protypes ** ** If all initialization routines are called, it is assumed they are called @@ -764,7 +755,6 @@ extern "C" { #endif #ifdef SST1INIT_ALLOCATE - static char headersIdent[] = "@#%Voodoo2 InitHeaders $Revision$"; FxBool sst1InitUseVoodooFile = FXFALSE; sst1InitEnvVarStruct *envVarsBase = (sst1InitEnvVarStruct *) NULL; sst1InitDacStruct *dacStructBase = (sst1InitDacStruct *) NULL; diff --git a/glide3x/h3/incsrc/fxhal.h b/glide3x/h3/incsrc/fxhal.h index 6c73ace..8e4c974 100644 --- a/glide3x/h3/incsrc/fxhal.h +++ b/glide3x/h3/incsrc/fxhal.h @@ -1,5 +1,3 @@ - - /* ** THIS SOFTWARE IS SUBJECT TO COPYRIGHT PROTECTION AND IS OFFERED ONLY ** PURSUANT TO THE 3DFX GLIDE GENERAL PUBLIC LICENSE. THERE IS NO RIGHT @@ -34,9 +32,6 @@ #include -// Allow SourceSafe to track Revision values -#define HAL_H_REV "$Revision$" - // Just to unconfuse myself: // // CHIP FBI-REV TMU-REV DEV-ID diff --git a/glide3x/h5/incsrc/fxhal.h b/glide3x/h5/incsrc/fxhal.h index 3948682..296ed0f 100644 --- a/glide3x/h5/incsrc/fxhal.h +++ b/glide3x/h5/incsrc/fxhal.h @@ -32,9 +32,6 @@ #include -// Allow SourceSafe to track Revision values -#define HAL_H_REV "$Revision$" - /* * Just to confuse you: * CHIP FBI-REV TMU-REV DEV-ID diff --git a/glide3x/sst1/init/init96/init96.c b/glide3x/sst1/init/init96/init96.c index a3d563b..250d6b6 100644 --- a/glide3x/sst1/init/init96/init96.c +++ b/glide3x/sst1/init/init96/init96.c @@ -20,7 +20,6 @@ ** $Date$ ** */ -static char revString[] = "@#%$Workfile: INIT96.C $ $Revision$"; /* ANSI Headers */ #include @@ -702,10 +701,8 @@ INITVG96ENTRY(init96MapBoard, FxBool , (void *rd, void *info, FxU16 vID, FxU16 d vendorID = vID, deviceID = dID; - GDBG_INFO((80, "SST-96 Initialization code %s\n", revString)); - - /* Watcom warning suppression */ - revString[0] = revString[0]; + GDBG_INFO((80, "SST-96 Initialization code\n")); + /* !!! FIXME hack for vxd bug */ putenv( "SST_DUALHEAD=1" ); diff --git a/glide3x/sst1/init/init96/initat3d.c b/glide3x/sst1/init/init96/initat3d.c index 7993d03..26ea2b1 100644 --- a/glide3x/sst1/init/init96/initat3d.c +++ b/glide3x/sst1/init/init96/initat3d.c @@ -19,7 +19,6 @@ ** $Date$ ** */ -static char revString[] = "@#%$Workfile: initat3d.c $ $Revision$"; #define INIT_AT3D_LIB #include <3dfx.h> @@ -771,9 +770,6 @@ INITAT3DENTRY(initAT3DEnableRegs,FxBool,(InitRegisterDesc *rd)) GDBG_INFO((80, "%s:\n", FN_NAME)); - /* Watcom warning suppression */ - revString[0] = revString[0]; - GDBG_INFO((80, "%s: Enabling writes to AT3D registers\n", FN_NAME)); GDBG_INFO((80, "%s: Setting VGA sequencer to point at flat model control\n", FN_NAME)); GDBG_INFO((80, "%s: 6MB Memory Aperture\n", FN_NAME)); @@ -1352,9 +1348,6 @@ INITAT3DENTRY(initAT3DGetInfo,FxBool,(VG96Info *info)) GDBG_INFO((80, "%s:\n", FN_NAME)); - /* Watcom warning suppression */ - revString[0] = revString[0]; - info->vgaChip = 0; info->vg96Rev = 0; diff --git a/glide3x/sst1/init/init96/initmcrx.c b/glide3x/sst1/init/init96/initmcrx.c index 3eb96a1..c6a3ade 100644 --- a/glide3x/sst1/init/init96/initmcrx.c +++ b/glide3x/sst1/init/init96/initmcrx.c @@ -22,7 +22,6 @@ ** $Date$ ** */ -static char revString[] = "@#%$Workfile: initmcrx.c $ $Revision$"; #include <3dfx.h> @@ -602,9 +601,6 @@ INITMCRXENTRY(initMCRXGetInfo,FxBool,(VG96Info *info)) /* We care about bit 5 & 6 */ mBytesPow = ((res >> 5) & 3); - - /* Watcom warning suppression */ - revString[0] = revString[0]; info->vgaChip = 0; info->vg96Rev = 0; diff --git a/glide3x/sst1/init/initvg/rcver.h b/glide3x/sst1/init/initvg/rcver.h index 86e239a..5807a7f 100644 --- a/glide3x/sst1/init/initvg/rcver.h +++ b/glide3x/sst1/init/initvg/rcver.h @@ -22,4 +22,4 @@ #define MANREVISION 1 #define BUILD_NUMBER 1 -#define VERSIONSTR "InitCode " "$Revision$" "\0" +#define VERSIONSTR "InitCode " "$Revision: 1 $" "\0" diff --git a/glide3x/sst1/init/initvg/sst1init.c b/glide3x/sst1/init/initvg/sst1init.c index 581498e..02e22f3 100644 --- a/glide3x/sst1/init/initvg/sst1init.c +++ b/glide3x/sst1/init/initvg/sst1init.c @@ -141,9 +141,6 @@ #include #endif -/* Allow SourceSafe to track Revision */ -static char codeIdent[] = "@#%" VERSIONSTR ; - /* ** sst1InitMapBoard(): ** Find and map SST-1 board into virtual memory @@ -162,10 +159,6 @@ FX_EXPORT FxU32 * FX_CSTYLE sst1InitMapBoard(FxU32 BoardNumber) FxU32 n, j; if(firstTime) { - /* Make Watcom happy */ - codeIdent[0] = '@'; - headersIdent[0] = '@'; - /* Find "voodoo.ini" file if it exists... */ sst1InitUseVoodooFile = sst1InitVoodooFile(); @@ -175,10 +168,6 @@ FX_EXPORT FxU32 * FX_CSTYLE sst1InitMapBoard(FxU32 BoardNumber) if(BoardNumber == 0) { INIT_PRINTF(("sst1Init Routines")); -#ifdef FX_DLL_ENABLE - INIT_PRINTF(("(DLL)")); -#endif - INIT_PRINTF((": %s\n", VERSIONSTR)); INIT_PRINTF(("sst1InitMapBoard(): BoardsInSystem = %d\n", boardsInSystem)); diff --git a/glide3x/sst1/init/initvg/sst1init.h b/glide3x/sst1/init/initvg/sst1init.h index 1ab4a38..e46f5d1 100644 --- a/glide3x/sst1/init/initvg/sst1init.h +++ b/glide3x/sst1/init/initvg/sst1init.h @@ -17,10 +17,6 @@ ** ** COPYRIGHT 3DFX INTERACTIVE, INC. 1999, ALL RIGHTS RESERVED ** -** -** $Revision$ -** $Date$ -** */ #ifndef __SST1INIT_H__ @@ -675,7 +671,6 @@ extern "C" { #endif #ifdef SST1INIT_ALLOCATE - static char headersIdent[] = "@#%InitHeaders $Revision$"; FxBool sst1InitUseVoodooFile = FXFALSE; sst1InitEnvVarStruct *envVarsBase = (sst1InitEnvVarStruct *) NULL; sst1InitDacStruct *dacStructBase = (sst1InitDacStruct *) NULL;