Change NAPLIN signature - prepration for linenoise.
This commit is contained in:
parent
9bac28878d
commit
037f1df7dd
1 changed files with 4 additions and 3 deletions
7
misc.c
7
misc.c
|
@ -194,8 +194,7 @@ bool GETIN(FILE *input,
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (game.blklin)
|
if (game.blklin)
|
||||||
TYPE0();
|
TYPE0();
|
||||||
MAPLIN(input);
|
if (!MAPLIN(input))
|
||||||
if (feof(input))
|
|
||||||
return false;
|
return false;
|
||||||
*pword1=GETTXT(true,true,true);
|
*pword1=GETTXT(true,true,true);
|
||||||
if (game.blklin && *pword1 < 0)
|
if (game.blklin && *pword1 < 0)
|
||||||
|
@ -701,7 +700,7 @@ void BUG(long num)
|
||||||
|
|
||||||
/* Machine dependent routines (MAPLIN, TYPE, SAVEIO) */
|
/* Machine dependent routines (MAPLIN, TYPE, SAVEIO) */
|
||||||
|
|
||||||
void MAPLIN(FILE *fp)
|
bool MAPLIN(FILE *fp)
|
||||||
{
|
{
|
||||||
long i, val;
|
long i, val;
|
||||||
|
|
||||||
|
@ -739,6 +738,7 @@ void MAPLIN(FILE *fp)
|
||||||
if (feof(fp)) {
|
if (feof(fp)) {
|
||||||
if (logfp && fp == stdin)
|
if (logfp && fp == stdin)
|
||||||
fclose(logfp);
|
fclose(logfp);
|
||||||
|
return false;
|
||||||
} else {
|
} else {
|
||||||
if (logfp && fp == stdin)
|
if (logfp && fp == stdin)
|
||||||
IGNORE(fputs(rawbuf, logfp));
|
IGNORE(fputs(rawbuf, logfp));
|
||||||
|
@ -753,6 +753,7 @@ void MAPLIN(FILE *fp)
|
||||||
LNLENG=i;
|
LNLENG=i;
|
||||||
}
|
}
|
||||||
LNPOSN=1;
|
LNPOSN=1;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue