diff options
| author | Kevin Lyles <kevinlyles@gmail.com> | 2015-05-09 21:05:18 -0500 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-05-11 10:46:12 +0100 |
| commit | bef1b2c59b443a2778a01e6c167e29ee9670603a (patch) | |
| tree | a787231fd4c08635625bbe2d9b61eaf4311a6abf /galaxies.c | |
| parent | 3768ed65f281400f5fcdd6e2192e154a6661c0f8 (diff) | |
| download | puzzles-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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; |