From 5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Nov 2018 21:45:44 +0000 Subject: Use C99 bool within source modules. This is the main bulk of this boolification work, but although it's making the largest actual change, it should also be the least disruptive to anyone interacting with this code base downstream of me, because it doesn't modify any interface between modules: all the inter-module APIs were updated one by one in the previous commits. This just cleans up the code within each individual source file to use bool in place of int where I think that makes things clearer. --- matching.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'matching.c') diff --git a/matching.c b/matching.c index 67129f7..9078f6c 100644 --- a/matching.c +++ b/matching.c @@ -135,7 +135,7 @@ int matching_with_scratch(void *scratchv, layer = 0; while (1) { - int found_free_R_vertex = false; + bool found_free_R_vertex = false; Rqs = 0; for (i = 0; i < Lqs; i++) { @@ -685,7 +685,7 @@ int main(int argc, char **argv) { static const char stdin_identifier[] = ""; const char *infile = NULL; - int doing_opts = true; + bool doing_opts = true; enum { USER_INPUT, AUTOTEST } mode = USER_INPUT; while (--argc > 0) { -- cgit v1.1