mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
@ -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[] = "<standard input>";
|
||||
const char *infile = NULL;
|
||||
int doing_opts = true;
|
||||
bool doing_opts = true;
|
||||
enum { USER_INPUT, AUTOTEST } mode = USER_INPUT;
|
||||
|
||||
while (--argc > 0) {
|
||||
|
Reference in New Issue
Block a user