mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Moved all function declarations to the top of the file
This commit is contained in:

committed by
Simon Tatham

parent
155607b768
commit
774395d373
14
galaxies.c
14
galaxies.c
@ -148,6 +148,11 @@ struct game_state {
|
|||||||
or -1 if stale. */
|
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
|
* Game parameters and presets
|
||||||
*/
|
*/
|
||||||
@ -1164,8 +1169,6 @@ int maxtries;
|
|||||||
#define MAXTRIES 50
|
#define MAXTRIES 50
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int solver_obvious_dot(game_state *state,space *dot);
|
|
||||||
|
|
||||||
#define GP_DOTS 1
|
#define GP_DOTS 1
|
||||||
|
|
||||||
static void generate_pass(game_state *state, random_state *rs, int *scratch,
|
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);
|
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,
|
static char *new_game_desc(const game_params *params, random_state *rs,
|
||||||
char **aux, int interactive)
|
char **aux, int interactive)
|
||||||
{
|
{
|
||||||
@ -1464,8 +1464,6 @@ generate:
|
|||||||
return desc;
|
return desc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int solver_obvious(game_state *state);
|
|
||||||
|
|
||||||
static int dots_too_close(game_state *state)
|
static int dots_too_close(game_state *state)
|
||||||
{
|
{
|
||||||
/* Quick-and-dirty check, using half the solver:
|
/* 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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int solver_state(game_state *state, int maxdiff);
|
|
||||||
|
|
||||||
#define MAXRECURSE 5
|
#define MAXRECURSE 5
|
||||||
|
|
||||||
static int solver_recurse(game_state *state, int maxdiff)
|
static int solver_recurse(game_state *state, int maxdiff)
|
||||||
|
Reference in New Issue
Block a user