From: Eric S. Raymond Date: Thu, 25 May 2017 03:05:19 +0000 (-0400) Subject: Re-enable skipping of #-led comments. X-Git-Tag: seed~54 X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=commitdiff_plain;h=6146406990839864bfc5074327f44f207d3b61c2 Re-enable skipping of #-led comments. --- diff --git a/misc.c b/misc.c index 3e0bb41..7057bad 100644 --- a/misc.c +++ b/misc.c @@ -886,8 +886,11 @@ long I, VAL; if(MAP2[1] == 0)MPINIT(); if (!oldstyle && SETUP && OPENED == stdin) - fputs("> ", stdout); - IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + fputs("> ", stdout); + do { + IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + } while + (!feof(OPENED) && INLINE[1] == '#'); if (feof(OPENED)) { if (logfp && OPENED == stdin) fclose(logfp);