summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortwinaphex2016-08-06 04:29:02 +0200
committertwinaphex2016-08-06 04:29:02 +0200
commit7009e4011bfbb239d59039262aeac9c1bff33a7f (patch)
tree492a1a7359d86a4fee5bd1ace37de12c23f33ea3 /src
parent70d12639317897cfb59406e53b4aaac0ee4b1c9c (diff)
downloadsnes9x2002-7009e4011bfbb239d59039262aeac9c1bff33a7f.tar.gz
snes9x2002-7009e4011bfbb239d59039262aeac9c1bff33a7f.tar.bz2
snes9x2002-7009e4011bfbb239d59039262aeac9c1bff33a7f.zip
Turn functions static
Diffstat (limited to 'src')
-rw-r--r--src/memmap.c20
-rw-r--r--src/memmap.h4
2 files changed, 10 insertions, 14 deletions
diff --git a/src/memmap.c b/src/memmap.c
index 827d897..e65f6fe 100644
--- a/src/memmap.c
+++ b/src/memmap.c
@@ -63,18 +63,18 @@ static uint8 bytes0x2000 [0x2000];
extern bool8 ROMAPUEnabled;
-bool8_32 AllASCII (uint8 *b, int size)
+static bool8_32 AllASCII (uint8 *b, int size)
{
int i;
- for (i = 0; i < size; i++)
- {
- if (b[i] < 32 || b[i] > 126)
- return (FALSE);
- }
- return (TRUE);
+ for (i = 0; i < size; i++)
+ {
+ if (b[i] < 32 || b[i] > 126)
+ return (FALSE);
+ }
+ return (TRUE);
}
-int ScoreHiROM (bool8_32 skip_header)
+static int ScoreHiROM (bool8_32 skip_header)
{
int score = 0;
int o = skip_header ? 0xff00 + 0x200 : 0xff00;
@@ -101,7 +101,7 @@ int ScoreHiROM (bool8_32 skip_header)
return (score);
}
-int ScoreLoROM (bool8_32 skip_header)
+static int ScoreLoROM (bool8_32 skip_header)
{
int score = 0;
int o = skip_header ? 0x7f00 + 0x200 : 0x7f00;
@@ -128,7 +128,7 @@ int ScoreLoROM (bool8_32 skip_header)
return (score);
}
-char *Safe (const char *s)
+static char *Safe (const char *s)
{
static char *safe = NULL;
static int safe_len = 0;
diff --git a/src/memmap.h b/src/memmap.h
index 38fae6b..175bc39 100644
--- a/src/memmap.h
+++ b/src/memmap.h
@@ -90,7 +90,6 @@ void WriteProtectROM();
void FixROMSpeed();
void MapRAM();
void MapExtraRAM();
-char* Safe(const char*);
void LoROMMap();
void LoROM24MBSMap();
@@ -103,9 +102,6 @@ void TalesROMMap(bool8_32);
void AlphaROMMap();
void SA1ROMMap();
void BSHiROMMap();
-bool8_32 AllASCII(uint8* b, int size);
-int ScoreHiROM(bool8_32 skip_header);
-int ScoreLoROM(bool8_32 skip_header);
void ApplyROMFixes();
const char* TVStandard();