~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow for trailing '\0' in game_text_format() in various games.
[sgt/puzzles]
/
nullgame.c
diff --git
a/nullgame.c
b/nullgame.c
index
a071971
..
6eb427c
100644
(file)
--- a/
nullgame.c
+++ b/
nullgame.c
@@
-88,11
+88,17
@@
static char *validate_params(game_params *params)
return NULL;
}
return NULL;
}
-static char *new_game_seed(game_params *params, random_state *rs)
+static char *new_game_seed(game_params *params, random_state *rs,
+ game_aux_info **aux)
{
return dupstr("FIXME");
}
{
return dupstr("FIXME");
}
+static void game_free_aux_info(game_aux_info *aux)
+{
+ assert(!"Shouldn't happen");
+}
+
static char *validate_seed(game_params *params, char *seed)
{
return NULL;
static char *validate_seed(game_params *params, char *seed)
{
return NULL;
@@
-121,6
+127,17
@@
static void free_game(game_state *state)
sfree(state);
}
sfree(state);
}
+static game_state *solve_game(game_state *state, game_aux_info *aux,
+ char **error)
+{
+ return NULL;
+}
+
+static char *game_text_format(game_state *state)
+{
+ return NULL;
+}
+
static game_ui *new_ui(game_state *state)
{
return NULL;
static game_ui *new_ui(game_state *state)
{
return NULL;
@@
-218,10
+235,13
@@
const struct game thegame = {
FALSE, game_configure, custom_params,
validate_params,
new_game_seed,
FALSE, game_configure, custom_params,
validate_params,
new_game_seed,
+ game_free_aux_info,
validate_seed,
new_game,
dup_game,
free_game,
validate_seed,
new_game,
dup_game,
free_game,
+ FALSE, solve_game,
+ FALSE, game_text_format,
new_ui,
free_ui,
make_move,
new_ui,
free_ui,
make_move,