Prevent lines beginning '#' in .include files from being treated

as device lines.
This commit is contained in:
Giles Atkinson 2024-04-17 18:51:12 +01:00 committed by Holger Vogt
parent aed347c95a
commit 69fd0296a4
1 changed files with 6 additions and 1 deletions

View File

@ -3241,7 +3241,12 @@ static void inp_stripcomments_line(char *s, bool cs)
return; /* empty line */
if (*s == '*')
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') {
d++;