for (;;) {
if (game.blklin)
TYPE0();
- MAPLIN(input);
- if (feof(input))
+ if (!MAPLIN(input))
return false;
*pword1=GETTXT(true,true,true);
if (game.blklin && *pword1 < 0)
/* Machine dependent routines (MAPLIN, TYPE, SAVEIO) */
-void MAPLIN(FILE *fp)
+bool MAPLIN(FILE *fp)
{
long i, val;
if (feof(fp)) {
if (logfp && fp == stdin)
fclose(logfp);
+ return false;
} else {
if (logfp && fp == stdin)
IGNORE(fputs(rawbuf, logfp));
LNLENG=i;
}
LNPOSN=1;
+ return true;
}
}