aboutsummaryrefslogtreecommitdiff
path: root/galaxies.c
diff options
context:
space:
mode:
authorKevin Lyles <kevinlyles@gmail.com>2015-05-09 21:05:18 -0500
committerSimon Tatham <anakin@pobox.com>2015-05-11 10:46:12 +0100
commitbef1b2c59b443a2778a01e6c167e29ee9670603a (patch)
treea787231fd4c08635625bbe2d9b61eaf4311a6abf /galaxies.c
parent3768ed65f281400f5fcdd6e2192e154a6661c0f8 (diff)
downloadpuzzles-bef1b2c59b443a2778a01e6c167e29ee9670603a.zip
puzzles-bef1b2c59b443a2778a01e6c167e29ee9670603a.tar.gz
puzzles-bef1b2c59b443a2778a01e6c167e29ee9670603a.tar.bz2
puzzles-bef1b2c59b443a2778a01e6c167e29ee9670603a.tar.xz
Mark some arguments constant
Diffstat (limited to 'galaxies.c')
-rw-r--r--galaxies.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/galaxies.c b/galaxies.c
index d2d2eda..f276265 100644
--- a/galaxies.c
+++ b/galaxies.c
@@ -152,8 +152,9 @@ 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);
-static space *space_opposite_dot(game_state *state, space *sp, space *dot);
-static space *tile_opposite(game_state *state, space *sp);
+static space *space_opposite_dot(const game_state *state, const space *sp,
+ const space *dot);
+static space *tile_opposite(const game_state *state, const space *sp);
/* ----------------------------------------------------------
* Game parameters and presets
@@ -552,7 +553,8 @@ static int edges_into_vertex(game_state *state,
}
#endif
-static space *space_opposite_dot(game_state *state, space *sp, space *dot)
+static space *space_opposite_dot(const game_state *state, const space *sp,
+ const space *dot)
{
int dx, dy, tx, ty;
space *sp2;
@@ -568,7 +570,7 @@ static space *space_opposite_dot(game_state *state, space *sp, space *dot)
return sp2;
}
-static space *tile_opposite(game_state *state, space *sp)
+static space *tile_opposite(const game_state *state, const space *sp)
{
space *dot;