aboutsummaryrefslogtreecommitdiff
path: root/matching.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2018-11-13 21:44:02 +0000
committerSimon Tatham <anakin@pobox.com>2018-11-13 21:48:24 +0000
commita550ea0a47374705a37f36b0f05ffe9e4c8161fb (patch)
treea4664ac4d90cdeb581ddd2bf41ccda7b0d45855c /matching.c
parent064da876828ea3079d5d7be5849b693f4d55364b (diff)
downloadpuzzles-a550ea0a47374705a37f36b0f05ffe9e4c8161fb.zip
puzzles-a550ea0a47374705a37f36b0f05ffe9e4c8161fb.tar.gz
puzzles-a550ea0a47374705a37f36b0f05ffe9e4c8161fb.tar.bz2
puzzles-a550ea0a47374705a37f36b0f05ffe9e4c8161fb.tar.xz
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.
Diffstat (limited to 'matching.c')
-rw-r--r--matching.c8
1 files changed, 4 insertions, 4 deletions
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[] = "<standard input>";
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));