Allow comments in logfiles.

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

4
misc.c
View file

@ -885,7 +885,11 @@ void fMAPLIN(FILE *OPENED) {
if (!oldstyle && SETUP)
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);