mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
@ -49,7 +49,7 @@
|
||||
#ifdef DEBUGGING
|
||||
#define solvep debug
|
||||
#else
|
||||
bool solver_show_working;
|
||||
static bool solver_show_working;
|
||||
#define solvep(x) do { if (solver_show_working) { printf x; } } while(0)
|
||||
#endif
|
||||
|
||||
@ -1605,7 +1605,7 @@ static game_state *new_game(midend *me, const game_params *params,
|
||||
* Solver and all its little wizards.
|
||||
*/
|
||||
|
||||
int solver_recurse_depth;
|
||||
static int solver_recurse_depth;
|
||||
|
||||
typedef struct solver_ctx {
|
||||
game_state *state;
|
||||
|
Reference in New Issue
Block a user