SCP: Add the # character at the beginning of a line as a comment character. Requested by Kevin Handy
This commit is contained in:
parent
2030d8fd40
commit
d1b5e3aa27
1 changed files with 1 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -6752,7 +6752,7 @@ for (tptr = cptr; tptr < (cptr + size); tptr++) { /* remove cr or nl */
|
|||
}
|
||||
while (isspace (*cptr)) /* trim leading spc */
|
||||
cptr++;
|
||||
if (*cptr == ';') { /* ignore comment */
|
||||
if ((*cptr == ';') || (*cptr == '#')) { /* ignore comment */
|
||||
if (sim_do_echo) /* echo comments if -v */
|
||||
sim_printf("%s> %s\n", do_position(), cptr);
|
||||
*cptr = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue