projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a2c0ca
)
Re-enable skipping of #-led comments.
author
Eric S. Raymond
<esr@thyrsus.com>
Thu, 25 May 2017 03:05:19 +0000
(23:05 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Thu, 25 May 2017 03:05:19 +0000
(23:05 -0400)
misc.c
patch
|
blob
|
history
diff --git
a/misc.c
b/misc.c
index 3e0bb4145adcc2182c4c32e1cdd4f3d294c3eab9..7057bad5272b10ec44239d7ff848008e0564d3c8 100644
(file)
--- 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);