diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 22:06:19 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 22:06:19 +0000 |
| commit | db3b531e2cab765a00475054d2e9046c9d0437d3 (patch) | |
| tree | f029f201ad3dec7ba0dac6e1c18eb1ed4da98c4c /galaxies.c | |
| parent | 47cec547e59ac8c5012f6091394dcb4304d64fc3 (diff) | |
| download | puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.zip puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.gz puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.bz2 puzzles-db3b531e2cab765a00475054d2e9046c9d0437d3.tar.xz | |
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.
Diffstat (limited to 'galaxies.c')
| -rw-r--r-- | galaxies.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |