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. --- findloop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'findloop.c') diff --git a/findloop.c b/findloop.c index 501c3f9..ffda12d 100644 --- a/findloop.c +++ b/findloop.c @@ -14,7 +14,8 @@ #include "puzzles.h" struct findloopstate { - int parent, child, sibling, visited; + int parent, child, sibling; + bool visited; int index, minindex, maxindex; int minreachable, maxreachable; int bridge; -- cgit v1.1