Commit b6d90143 by Richard Kenner

(discard_comments): If traditional, replace a comment with nothing

instead of with a space.

From-SVN: r8628
parent c03413c7
......@@ -8407,8 +8407,12 @@ discard_comments (start, length, newlines)
}
if (ibp[0] != '*' || ibp + 1 >= limit)
break;
/* Comments are equivalent to spaces. */
obp[-1] = ' ';
/* Comments are equivalent to spaces.
For -traditional, a comment is equivalent to nothing. */
if (traditional)
obp--;
else
obp[-1] = ' ';
ibp++;
while (ibp + 1 < limit) {
if (ibp[0] == '*'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment