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:
parent
14c83ede8e
commit
a3485d2a41
4 changed files with 9 additions and 6 deletions
7
main.c
7
main.c
|
@ -48,10 +48,7 @@ bool oldstyle = false;
|
|||
bool editline = true;
|
||||
bool prompt = true;
|
||||
|
||||
extern void initialise();
|
||||
extern int action(FILE *, long, long, long);
|
||||
|
||||
void sig_handler(int signo)
|
||||
static void sig_handler(int signo)
|
||||
{
|
||||
if (signo == SIGINT){
|
||||
if (logfp != NULL)
|
||||
|
@ -268,7 +265,7 @@ static void checkhints(FILE *cmdin)
|
|||
}
|
||||
}
|
||||
|
||||
bool spotted_by_pirate(int i)
|
||||
static bool spotted_by_pirate(int i)
|
||||
{
|
||||
if (i != PIRATE)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue