SCP: Add the # character at the beginning of a line as a comment character. Requested by Kevin Handy

This commit is contained in:
Mark Pizzolato 2014-12-05 16:29:17 -08:00
parent 2030d8fd40
commit d1b5e3aa27

2
scp.c
View file

@ -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;