From: simon Date: Mon, 10 Sep 2012 18:05:54 +0000 (+0000) Subject: Forgot to add the new 'const' in the unfinished subdirectory. Oops. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/c71c970be5e88c014a8eae34fcb653faa9628157 Forgot to add the new 'const' in the unfinished subdirectory. Oops. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9659 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/unfinished/group.c b/unfinished/group.c index b2c62d6..1c2c02e 100644 --- a/unfinished/group.c +++ b/unfinished/group.c @@ -1213,8 +1213,8 @@ static int find_in_sequence(digit *seq, int len, digit n) return -1; } -static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, - int x, int y, int button) +static char *interpret_move(game_state *state, game_ui *ui, + const game_drawstate *ds, int x, int y, int button) { int w = state->par.w; int tx, ty; diff --git a/unfinished/separate.c b/unfinished/separate.c index b20cb52..ee9c830 100644 --- a/unfinished/separate.c +++ b/unfinished/separate.c @@ -718,8 +718,8 @@ struct game_drawstate { int FIXME; }; -static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, - int x, int y, int button) +static char *interpret_move(game_state *state, game_ui *ui, + const game_drawstate *ds, int x, int y, int button) { return NULL; } diff --git a/unfinished/slide.c b/unfinished/slide.c index 6fac469..38ef4d0 100644 --- a/unfinished/slide.c +++ b/unfinished/slide.c @@ -1242,8 +1242,8 @@ struct game_drawstate { int started; }; -static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, - int x, int y, int button) +static char *interpret_move(game_state *state, game_ui *ui, + const game_drawstate *ds, int x, int y, int button) { int w = state->w, h = state->h, wh = w*h; int tx, ty, i, j; diff --git a/unfinished/sokoban.c b/unfinished/sokoban.c index 53bd3a5..4b0780c 100644 --- a/unfinished/sokoban.c +++ b/unfinished/sokoban.c @@ -1041,8 +1041,8 @@ int move_type(game_state *state, int dx, int dy) } } -static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, - int x, int y, int button) +static char *interpret_move(game_state *state, game_ui *ui, + const game_drawstate *ds, int x, int y, int button) { int dx=0, dy=0; char *move;