Clean up logic for exiting input loop and scoring.
[open-adventure.git] / misc.h
diff --git a/misc.h b/misc.h
index 67f1e9b0b72923e0e0d61bcb73bcce1c8eddfb72..f4567e3b6cfc5eb820450e56c38fef13f228eda8 100644 (file)
--- a/misc.h
+++ b/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)