Input source is parametrized all the way down.
This means that, potentially, do_command() could be called on any text file pointer and the right thing would happen.
This commit is contained in:
parent
baa508a683
commit
a416d78a58
6 changed files with 32 additions and 32 deletions
2
funcs.h
2
funcs.h
|
@ -37,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(bool), attack(void), throw(void), feed(void), fill(void);
|
||||
extern int carry(void), discard(bool), attack(FILE *), throw(FILE *), feed(void), fill(void);
|
||||
void score(long);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue