(discard_comments): Replace comments with a single space.

From-SVN: r6993
This commit is contained in:
Jim Wilson 1994-04-06 16:01:45 -07:00
parent 1e0181030e
commit 18e2b1c06e

View File

@ -8170,14 +8170,16 @@ discard_comments (start, length, newlines)
newline_fix (ibp);
/* Delete any comment. */
if (cplusplus_comments && ibp[0] == '/') {
obp--;
/* Comments are equivalent to spaces. */
obp[-1] = ' ';
ibp++;
while (ibp < limit && *ibp++ != '\n') ;
break;
}
if (ibp[0] != '*' || ibp + 1 >= limit)
break;
obp--;
/* Comments are equivalent to spaces. */
obp[-1] = ' ';
ibp++;
while (ibp + 1 < limit) {
if (ibp[0] == '*'