aboutsummaryrefslogtreecommitdiff
path: root/printing.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 /printing.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 'printing.c')
-rw-r--r--printing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/printing.c b/printing.c
index e921a4d..040f7dc 100644
--- a/printing.c
+++ b/printing.c
@@ -35,7 +35,7 @@ document *document_new(int pw, int ph, float userscale)
doc->ph = ph;
doc->puzzles = NULL;
doc->puzzlesize = doc->npuzzles = 0;
- doc->got_solns = FALSE;
+ doc->got_solns = false;
doc->colwid = snewn(pw, float);
doc->rowht = snewn(ph, float);
@@ -85,7 +85,7 @@ void document_add_puzzle(document *doc, const game *game, game_params *par,
doc->puzzles[doc->npuzzles].st2 = st2;
doc->npuzzles++;
if (st2)
- doc->got_solns = TRUE;
+ doc->got_solns = true;
}
static void get_puzzle_size(document *doc, struct puzzle *pz,