Refactor scoring so score() does not conditionally exit.
This commit is contained in:
parent
f66cb0cdae
commit
704b86afbb
4 changed files with 30 additions and 27 deletions
3
advent.h
3
advent.h
|
@ -114,7 +114,8 @@ enum termination {endgame, quitgame, scoregame};
|
|||
extern void set_seed(long);
|
||||
extern unsigned long get_next_lcg_value(void);
|
||||
extern long randrange(long);
|
||||
extern void score(enum termination);
|
||||
extern long score(enum termination);
|
||||
extern void terminate(enum termination) __attribute__((noreturn));
|
||||
extern int suspend(FILE *);
|
||||
extern int resume(FILE *);
|
||||
extern int restore(FILE *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue