Refactor scoring so score() does not conditionally exit.

This commit is contained in:
Eric S. Raymond 2017-06-18 12:51:05 -04:00
parent f66cb0cdae
commit 704b86afbb
4 changed files with 30 additions and 27 deletions

View file

@ -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 *);