diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:44:02 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:48:24 +0000 |
| commit | a550ea0a47374705a37f36b0f05ffe9e4c8161fb (patch) | |
| tree | a4664ac4d90cdeb581ddd2bf41ccda7b0d45855c /divvy.c | |
| parent | 064da876828ea3079d5d7be5849b693f4d55364b (diff) | |
| download | puzzles-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 'divvy.c')
| -rw-r--r-- | divvy.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -233,7 +233,7 @@ static int addremcommon(int w, int h, int x, int y, int *own, int val) */ if (neighbours[0] != val && neighbours[2] != val && neighbours[4] != val && neighbours[6] != val) - return FALSE; + return false; count = 0; @@ -341,9 +341,9 @@ static int *divvy_internal(int w, int h, int k, random_state *rs) int dir; if (curr < 0) { - removable[yx] = FALSE; /* can't remove if not owned! */ + removable[yx] = false; /* can't remove if not owned! */ } else if (sizes[curr] == 1) { - removable[yx] = TRUE; /* can always remove a singleton */ + removable[yx] = true; /* can always remove a singleton */ } else { /* * See if this square can be removed from its |