mirror of
https://github.com/simh/simh.git
synced 2026-03-01 09:31:16 +00:00
SCP: Add the # character at the beginning of a line as a comment character. Requested by Kevin Handy
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user