aboutsummaryrefslogtreecommitdiff
path: root/emcc.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 /emcc.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 'emcc.c')
-rw-r--r--emcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emcc.c b/emcc.c
index 1d16d20..3a289f6 100644
--- a/emcc.c
+++ b/emcc.c
@@ -829,7 +829,7 @@ struct savefile_read_ctx {
int len_remaining;
};
-static int savefile_read(void *vctx, void *buf, int len)
+static bool savefile_read(void *vctx, void *buf, int len)
{
struct savefile_read_ctx *ctx = (struct savefile_read_ctx *)vctx;
if (ctx->len_remaining < len)