From d1b5e3aa27e10c2ff9dcfa40a2bba461e3ae24e5 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 5 Dec 2014 16:29:17 -0800 Subject: [PATCH] SCP: Add the # character at the beginning of a line as a comment character. Requested by Kevin Handy --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index d1b53053..1b9cceaa 100644 --- a/scp.c +++ b/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;