(discard_comments): Replace comments with a single space.
From-SVN: r6993
This commit is contained in:
parent
1e0181030e
commit
18e2b1c06e
@ -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] == '*'
|
||||
|
Loading…
Reference in New Issue
Block a user