From a550ea0a47374705a37f36b0f05ffe9e4c8161fb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 13 Nov 2018 21:44:02 +0000 Subject: Replace TRUE/FALSE with C99 true/false throughout. This commit removes the old #defines of TRUE and FALSE from puzzles.h, and does a mechanical search-and-replace throughout the code to replace them with the C99 standard lowercase spellings. --- matching.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'matching.c') diff --git a/matching.c b/matching.c index 89f67ee..67129f7 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; + int found_free_R_vertex = false; Rqs = 0; for (i = 0; i < Lqs; i++) { @@ -148,7 +148,7 @@ int matching_with_scratch(void *scratchv, s->Rlayer[R] = layer+1; s->Rqueue[Rqs++] = R; if (s->RtoL[R] == -1) - found_free_R_vertex = TRUE; + found_free_R_vertex = true; } } } @@ -685,7 +685,7 @@ int main(int argc, char **argv) { static const char stdin_identifier[] = ""; const char *infile = NULL; - int doing_opts = TRUE; + int doing_opts = true; enum { USER_INPUT, AUTOTEST } mode = USER_INPUT; while (--argc > 0) { @@ -693,7 +693,7 @@ int main(int argc, char **argv) if (doing_opts && arg[0] == '-' && arg[1]) { if (!strcmp(arg, "--")) { - doing_opts = FALSE; + doing_opts = false; } else if (!strcmp(arg, "--random")) { char buf[64]; int len = sprintf(buf, "%lu", (unsigned long)time(NULL)); -- cgit v1.1