Prevent lines beginning '#' in .include files from being treated
as device lines.
This commit is contained in:
parent
9f0e44cace
commit
b2c0f85c6d
|
|
@ -3241,7 +3241,12 @@ static void inp_stripcomments_line(char *s, bool cs)
|
||||||
return; /* empty line */
|
return; /* empty line */
|
||||||
if (*s == '*')
|
if (*s == '*')
|
||||||
return; /* line is already a comment */
|
return; /* line is already a comment */
|
||||||
/* look for comments */
|
if (*s == '#') {
|
||||||
|
*s = '*'; // Convert to widely-recognised form.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Look for comments in body of line. */
|
||||||
while ((c = *d) != '\0') {
|
while ((c = *d) != '\0') {
|
||||||
d++;
|
d++;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue