aboutsummaryrefslogtreecommitdiff
path: root/windows.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-13 21:37:09 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-13 21:46:39 +0000
commitcd6cadbecf245b2916350939343db14e2978f782 (patch)
treea2d7a73fc88c944b14e45cff4190e8a2767089fe /windows.c
parenta76d269cf222ba81e717c7e9046db391f19036eb (diff)
downloadpuzzles-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/windows.c b/windows.c
index 8e5b406..268c8f5 100644
--- a/windows.c
+++ b/windows.c
@@ -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;