Move a few prototypes and static'ed a few functions

Moved prototypes for initialise() and action() from main.c to advent.h
Made the following functions static, so they wouldn't require prototypes:
   sig_handler (main.c)
   spotted_by_pirate (main.c)
   light (actions.c)
This commit is contained in:
Bob Little 2017-06-17 18:19:09 -04:00
parent 14c83ede8e
commit a3485d2a41
4 changed files with 9 additions and 6 deletions

View file

@ -171,6 +171,9 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR,
enum speechpart {unknown, intransitive, transitive};
void initialise(void);
int action(FILE *input, enum speechpart part, long verb, token_t obj);
/* Phase codes for action returns.
* These were at one time FORTRAN line numbers.
* The values don't matter, but perturb their order at your peril.