diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:37:09 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:46:39 +0000 |
| commit | cd6cadbecf245b2916350939343db14e2978f782 (patch) | |
| tree | a2d7a73fc88c944b14e45cff4190e8a2767089fe /windows.c | |
| parent | a76d269cf222ba81e717c7e9046db391f19036eb (diff) | |
| download | puzzles-cd6cadbecf245b2916350939343db14e2978f782.zip puzzles-cd6cadbecf245b2916350939343db14e2978f782.tar.gz puzzles-cd6cadbecf245b2916350939343db14e2978f782.tar.bz2 puzzles-cd6cadbecf245b2916350939343db14e2978f782.tar.xz | |
Adopt C99 bool in the midend API.
This changes parameters of midend_size and midend_print_puzzle, the
return types of midend_process_key, midend_wants_statusbar,
midend_can_format_as_text_now and midend_can_{undo,redo}, the 'bval'
field in struct config_item, and finally the return type of the
function pointer passed to midend_deserialise and identify_game.
The last of those changes requires a corresponding fix in clients of
midend_deserialise and identify_game, so in this commit I've also
updated all the in-tree front ends to match. I expect downstream front
ends will need to do the same when they merge this change.
Diffstat (limited to 'windows.c')
| -rw-r--r-- | windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1557,7 +1557,7 @@ static void savefile_write(void *wctx, const void *buf, int len) fwrite(buf, 1, len, fp); } -static int savefile_read(void *wctx, void *buf, int len) +static bool savefile_read(void *wctx, void *buf, int len) { FILE *fp = (FILE *)wctx; int ret; |