shithub: puzzles

Download patch

ref: 0e8a37581418222ab7bd6063fa13371efd9f9f23
parent: 0880ef058328c1cad8b5dac8b0e19551bb9bccd1
author: Simon Tatham <anakin@pobox.com>
date: Mon Sep 10 14:05:54 EDT 2012

Forgot to add the new 'const' in the unfinished subdirectory. Oops.

[originally from svn r9659]

--- a/unfinished/group.c
+++ b/unfinished/group.c
@@ -1213,8 +1213,8 @@
     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;
--- a/unfinished/separate.c
+++ b/unfinished/separate.c
@@ -718,8 +718,8 @@
     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;
 }
--- a/unfinished/slide.c
+++ b/unfinished/slide.c
@@ -1242,8 +1242,8 @@
     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;
--- a/unfinished/sokoban.c
+++ b/unfinished/sokoban.c
@@ -1041,8 +1041,8 @@
     }
 }
 
-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;