diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-07-05 21:27:19 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2005-07-05 21:27:19 +0000 |
| commit | f3c95109c7b905f74b5f149eea21f68444c31ef7 (patch) | |
| tree | 77e7eeb6b297b201bbd40f67010318d2c4421c85 /puzzles.h | |
| parent | 968828283b7a0aacd71d4868846291b381884eb1 (diff) | |
| download | puzzles-f3c95109c7b905f74b5f149eea21f68444c31ef7.zip puzzles-f3c95109c7b905f74b5f149eea21f68444c31ef7.tar.gz puzzles-f3c95109c7b905f74b5f149eea21f68444c31ef7.tar.bz2 puzzles-f3c95109c7b905f74b5f149eea21f68444c31ef7.tar.xz | |
Add a `full' parameter to validate_params(), analogous to the one in
encode_params(). This is necessary for cases where generation-time parameters
that are normally omitted from descriptive IDs can place restrictions on other
parameters; in particular, when the default value of a relevant generation-time
parameter is not the one used to generate the descriptive ID, validation could
reject self-generated IDs (e.g., Net `5x2w:56182ae7c2', and some cases in
`Pegs').
[originally from svn r6068]
Diffstat (limited to 'puzzles.h')
| -rw-r--r-- | puzzles.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -265,7 +265,7 @@ struct game { int can_configure; config_item *(*configure)(game_params *params); game_params *(*custom_params)(config_item *cfg); - char *(*validate_params)(game_params *params); + char *(*validate_params)(game_params *params, int full); char *(*new_desc)(game_params *params, random_state *rs, char **aux, int interactive); char *(*validate_desc)(game_params *params, char *desc); |