inp_stripcomments_line(), drop support for '--' comment style

seems to be not common in the spice world,
and interferes too much with mathematical expressions like
   {3--2}
This commit is contained in:
rlar 2013-10-17 22:34:08 +02:00
parent 9d223d6778
commit bf9551287e
1 changed files with 1 additions and 2 deletions

View File

@ -2055,7 +2055,6 @@ inp_stripcomments_deck(struct line *c)
* ';'
* '$ '
* '//' (like in c++ and as per the numparam code)
* '--' (as per the numparam code)
* Any following text to the end of the line is ignored.
* Note requirement for $ to be followed by a space. This is to avoid conflict
* with use in front of a variable.
@ -2086,7 +2085,7 @@ inp_stripcomments_line(char *s)
} else if ((c == '$') && (*d == ' ')) {
d--; /* move d back to first comment character */
break;
} else if ((*d == c) && ((c == '/') || (c == '-'))) {
} else if ((c == '/') && (*d == '/')) {
d--; /* move d back to first comment character */
break;
}