mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
6
divvy.c
6
divvy.c
@ -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
|
||||
|
Reference in New Issue
Block a user