Re-enable skipping of #-led comments.

This commit is contained in:
Eric S. Raymond 2017-05-24 23:05:19 -04:00
parent 3a2c0ca199
commit 6146406990

7
misc.c
View file

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