Use prototypes and bools.

This commit is contained in:
Eric S. Raymond 2017-05-18 09:06:32 -04:00
parent c9e9b64575
commit b38c11abef
7 changed files with 22 additions and 25 deletions

View file

@ -1,3 +1,5 @@
#include <stdbool.h>
/* STATEMENT FUNCTIONS
*
* AT(OBJ) = TRUE IF ON EITHER SIDE OF TWO-PLACED OBJECT
@ -35,7 +37,7 @@
#define OUTSID(LOC) ((LOC) <= 8 || FOREST(LOC) || (LOC) == PLAC[SAPPH] || (LOC) == 180 || (LOC) == 182)
#define INDEEP(LOC) ((LOC) >= 15 && !OUTSID(LOC) && (LOC) != 179)
extern int carry(void), discard(long), attack(void), throw(void), feed(void), fill(void);
extern int carry(void), discard(bool), attack(void), throw(void), feed(void), fill(void);
void score(long);