From bf9551287ebca75732076d2d8f9895d0b8624226 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 17 Oct 2013 22:34:08 +0200 Subject: [PATCH] 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} --- src/frontend/inpcom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 9052ae75a..1df65d6eb 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -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; }