Allow comments in logfiles.
This commit is contained in:
parent
cf219e920b
commit
263b5ac3ba
1 changed files with 6 additions and 2 deletions
4
misc.c
4
misc.c
|
@ -885,7 +885,11 @@ void fMAPLIN(FILE *OPENED) {
|
||||||
|
|
||||||
if (!oldstyle && SETUP)
|
if (!oldstyle && SETUP)
|
||||||
fputs("> ", stdout);
|
fputs("> ", stdout);
|
||||||
|
do {
|
||||||
IGNORE(fgets(raw_input,sizeof(INLINE)-1,OPENED));
|
IGNORE(fgets(raw_input,sizeof(INLINE)-1,OPENED));
|
||||||
|
} while
|
||||||
|
/* allow comments in logfiles */
|
||||||
|
(!feof(OPENED) && raw_input[0] == '#');
|
||||||
if (feof(OPENED)) {
|
if (feof(OPENED)) {
|
||||||
if (logfp)
|
if (logfp)
|
||||||
fclose(logfp);
|
fclose(logfp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue