Reapply "Clean up logic for exiting input loop and scoring."
This commit is contained in:
parent
ba1369310d
commit
3a2c0ca199
3 changed files with 30 additions and 29 deletions
3
misc.h
3
misc.h
|
@ -1,5 +1,6 @@
|
|||
#include <time.h>
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* b is not needed for POSIX but harmless */
|
||||
#define READ_MODE "rb"
|
||||
|
@ -13,7 +14,7 @@ extern void fRSPEAK(long);
|
|||
#define RSPEAK(I) fRSPEAK(I)
|
||||
extern void fSETPRM(long,long,long);
|
||||
#define SETPRM(FIRST,P1,P2) fSETPRM(FIRST,P1,P2)
|
||||
extern void fGETIN(FILE *,long*,long*,long*,long*);
|
||||
extern bool fGETIN(FILE *,long*,long*,long*,long*);
|
||||
#define GETIN(input,WORD1,WORD1X,WORD2,WORD2X) fGETIN(input,&WORD1,&WORD1X,&WORD2,&WORD2X)
|
||||
extern long fYES(FILE *,long,long,long);
|
||||
#define YES(input,X,Y,Z) fYES(input,X,Y,Z)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue