mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 20:17:22 +08:00
* cpplex.c (save_comment): Don't store new lines in C++ comments.
From-SVN: r37122
This commit is contained in:
parent
6f268adf3b
commit
3542203b30
@ -1,3 +1,7 @@
|
||||
2000-10-29 Neil Booth <neilb@earthling.net>
|
||||
|
||||
* cpplex.c (save_comment): Don't store new lines in C++ comments.
|
||||
|
||||
2000-10-29 Michael Hayes <mhayes@redhat.com>
|
||||
|
||||
* integrate.c (copy_insn_list): Copy the unchanging flag for calls.
|
||||
|
@ -724,6 +724,10 @@ save_comment (pfile, token, from)
|
||||
unsigned int len;
|
||||
|
||||
len = pfile->buffer->cur - from + 1; /* + 1 for the initial '/'. */
|
||||
/* C++ comments probably (not definitely) have moved past a new
|
||||
line, which we don't want to save in the comment. */
|
||||
if (pfile->buffer->read_ahead != EOF)
|
||||
len--;
|
||||
buffer = _cpp_pool_alloc (pfile->string_pool, len);
|
||||
|
||||
token->type = CPP_COMMENT;
|
||||
|
Loading…
Reference in New Issue
Block a user