Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 109:4483a14ee101
Make -Wcomment work again
author | David A. Holland |
---|---|
date | Tue, 11 Jun 2013 12:26:20 -0400 |
parents | 0921c47b4f22 |
children | b2f2f30194b8 |
files | CHANGES directive.c |
diffstat | 2 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES Tue Jun 11 12:17:27 2013 -0400 +++ b/CHANGES Tue Jun 11 12:26:20 2013 -0400 @@ -7,6 +7,7 @@ from der Mouse, one of mine) - clean out usage of sys/cdefs.h macros and don't use the implementation namespace + - make -Wcomment work again release 0.1 (20130610) - first release, works with at least some imake templates
--- a/directive.c Tue Jun 11 12:17:27 2013 -0400 +++ b/directive.c Tue Jun 11 12:26:20 2013 -0400 @@ -542,12 +542,14 @@ } else { incomment = true; } + pos++; } else if (line[pos] == '*' && line[pos+1] == '/') { if (incomment) { incomment = false; } else { /* stray end-comment; should we care? */ } + pos++; } if (line[pos] == '\n') { p2.line++;