Re-enable skipping of #-led comments.

This commit is contained in:
Eric S. Raymond 2017-05-24 23:05:19 -04:00
parent 060601da2f
commit 54afefba94

9
misc.c
View file

@ -883,9 +883,12 @@ long I, VAL;
if(MAP2[1] == 0)MPINIT();
if (!oldstyle && isatty(0))
fputs("> ", stdout);
IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED));
if (!oldstyle && OPENED == stdin)
fputs("> ", stdout);
do {
IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED));
} while
(!feof(OPENED) && INLINE[1] == '#');
if (feof(OPENED)) {
if (logfp)
fclose(logfp);