aboutsummaryrefslogtreecommitdiff
path: root/galaxies.c
diff options
context:
space:
mode:
authorKevin Lyles <kevinlyles@gmail.com>2015-05-09 18:51:00 -0500
committerSimon Tatham <anakin@pobox.com>2015-05-11 10:14:57 +0100
commit774395d37366e52113c434173295db682d7d37e9 (patch)
tree1642512412b0798b7e7bdc4cacff7b75e3273a07 /galaxies.c
parent155607b768bee2284bab05fc02aea9f4b342465f (diff)
downloadpuzzles-774395d37366e52113c434173295db682d7d37e9.zip
puzzles-774395d37366e52113c434173295db682d7d37e9.tar.gz
puzzles-774395d37366e52113c434173295db682d7d37e9.tar.bz2
puzzles-774395d37366e52113c434173295db682d7d37e9.tar.xz
Moved all function declarations to the top of the file
Diffstat (limited to 'galaxies.c')
-rw-r--r--galaxies.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/galaxies.c b/galaxies.c
index d342011..4a6c601 100644
--- a/galaxies.c
+++ b/galaxies.c
@@ -148,6 +148,11 @@ struct game_state {
or -1 if stale. */
};
+static int check_complete(const game_state *state, int *dsf, int *colours);
+static int solver_state(game_state *state, int maxdiff);
+static int solver_obvious(game_state *state);
+static int solver_obvious_dot(game_state *state, space *dot);
+
/* ----------------------------------------------------------
* Game parameters and presets
*/
@@ -1164,8 +1169,6 @@ int maxtries;
#define MAXTRIES 50
#endif
-static int solver_obvious_dot(game_state *state,space *dot);
-
#define GP_DOTS 1
static void generate_pass(game_state *state, random_state *rs, int *scratch,
@@ -1228,9 +1231,6 @@ static void generate_pass(game_state *state, random_state *rs, int *scratch,
dbg_state(state);
}
-static int check_complete(const game_state *state, int *dsf, int *colours);
-static int solver_state(game_state *state, int maxdiff);
-
static char *new_game_desc(const game_params *params, random_state *rs,
char **aux, int interactive)
{
@@ -1464,8 +1464,6 @@ generate:
return desc;
}
-static int solver_obvious(game_state *state);
-
static int dots_too_close(game_state *state)
{
/* Quick-and-dirty check, using half the solver:
@@ -2055,8 +2053,6 @@ static int solver_recurse_cb(game_state *state, space *tile, void *ctx)
return 0;
}
-static int solver_state(game_state *state, int maxdiff);
-
#define MAXRECURSE 5
static int solver_recurse(game_state *state, int maxdiff)