From db3b531e2cab765a00475054d2e9046c9d0437d3 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Nov 2018 22:06:19 +0000 Subject: Add missing 'static' to game-internal declarations. Another thing I spotted while trawling the whole source base was that a couple of games had omitted 'static' on a lot of their internal functions. Checking with nm, there turned out to be quite a few more than I'd spotted by eye, so this should fix them all. Also added one missing 'const', on the lookup table nbits[] in Tracks. --- map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'map.c') diff --git a/map.c b/map.c index 2e64479..ac0bea1 100644 --- a/map.c +++ b/map.c @@ -2624,7 +2624,7 @@ static void game_set_size(drawing *dr, game_drawstate *ds, ds->bl = blitter_new(dr, TILESIZE+3, TILESIZE+3); } -const float map_colours[FOUR][3] = { +static const float map_colours[FOUR][3] = { #ifdef VIVID_COLOURS /* Use more vivid colours (e.g. on the Pocket PC) */ {0.75F, 0.25F, 0.25F}, @@ -2638,7 +2638,7 @@ const float map_colours[FOUR][3] = { {0.55F, 0.45F, 0.35F}, #endif }; -const int map_hatching[FOUR] = { +static const int map_hatching[FOUR] = { HATCH_VERT, HATCH_SLASH, HATCH_HORIZ, HATCH_BACKSLASH }; -- cgit v1.1