Allow comments in logfiles.

This commit is contained in:
Eric S. Raymond 2017-05-24 10:07:05 -04:00
parent cf219e920b
commit 263b5ac3ba

8
misc.c
View file

@ -884,8 +884,12 @@ void fMAPLIN(FILE *OPENED) {
if(MAP2[1] == 0)MPINIT();
if (!oldstyle && SETUP)
fputs("> ", stdout);
IGNORE(fgets(raw_input,sizeof(INLINE)-1,OPENED));
fputs("> ", stdout);
do {
IGNORE(fgets(raw_input,sizeof(INLINE)-1,OPENED));
} while
/* allow comments in logfiles */
(!feof(OPENED) && raw_input[0] == '#');
if (feof(OPENED)) {
if (logfp)
fclose(logfp);