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. --- solo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'solo.c') diff --git a/solo.c b/solo.c index 338aeeb..cfe38c5 100644 --- a/solo.c +++ b/solo.c @@ -146,9 +146,9 @@ enum { #define MAX_2SUMS 5 #define MAX_3SUMS 8 #define MAX_4SUMS 12 -unsigned long sum_bits2[18][MAX_2SUMS]; -unsigned long sum_bits3[25][MAX_3SUMS]; -unsigned long sum_bits4[31][MAX_4SUMS]; +static unsigned long sum_bits2[18][MAX_2SUMS]; +static unsigned long sum_bits3[25][MAX_3SUMS]; +static unsigned long sum_bits4[31][MAX_4SUMS]; static int find_sum_bits(unsigned long *array, int idx, int value_left, int addends_left, int min_addend, -- cgit v1.1