From 690862829ab797d27d8bedb108394bffb4fc58bd Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Sat, 12 Feb 2022 16:37:04 +0800 Subject: [PATCH] mmc3: Make some variables static --- src/boards/mmc3.c | 15 ++++++--------- src/boards/mmc3.h | 6 ------ 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/boards/mmc3.c b/src/boards/mmc3.c index 25e6f51..d2c905d 100644 --- a/src/boards/mmc3.c +++ b/src/boards/mmc3.c @@ -28,20 +28,17 @@ #include "mmc3.h" uint8 MMC3_cmd; -uint8 *WRAM; -uint32 WRAMSIZE; -uint8 *CHRRAM; -uint32 CHRRAMSIZE; +static uint8 *WRAM; +static uint32 WRAMSIZE; +static uint8 *CHRRAM; +static uint32 CHRRAMSIZE; uint8 DRegBuf[8]; uint8 EXPREGS[8]; /* For bootleg games, mostly. */ uint8 A000B, A001B; uint8 mmc3opts = 0; -#undef IRQCount -#undef IRQLatch -#undef IRQa -uint8 IRQCount, IRQLatch, IRQa; -uint8 IRQReload; +static uint8 IRQCount, IRQLatch, IRQa; +static uint8 IRQReload; static SFORMAT MMC3_StateRegs[] = { diff --git a/src/boards/mmc3.h b/src/boards/mmc3.h index 2479f9d..b29a53e 100644 --- a/src/boards/mmc3.h +++ b/src/boards/mmc3.h @@ -8,12 +8,6 @@ extern uint8 A001B; extern uint8 EXPREGS[8]; extern uint8 DRegBuf[8]; -#undef IRQCount -#undef IRQLatch -#undef IRQa -extern uint8 IRQCount, IRQLatch, IRQa; -extern uint8 IRQReload; - extern void (*pwrap)(uint32 A, uint8 V); extern void (*cwrap)(uint32 A, uint8 V); extern void (*mwrap)(uint8 V);