OSDN Git Service

Fix cpp_peek_token behaviour (PR bootstrap/50778)
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Oct 2011 17:49:18 +0000 (17:49 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Oct 2011 17:49:18 +0000 (17:49 +0000)
commita2eb22f09bcadd9a021cda72aee6aefee477bc55
tree06c0096adb2e891ed006c895e4c785b4ad2b1133
parent38cde3487be0a6d23cb126e6c4ca80369a945595
Fix cpp_peek_token behaviour (PR bootstrap/50778)

libcpp/

* include/internal.h (_cpp_remaining_tokens_num_in_context): Take the
context to act upon.
* lex.c (_cpp_remaining_tokens_num_in_context): Likewise.  Update
comment.
(cpp_token_from_context_at): Likewise.
(cpp_peek_token): Use the context to peek tokens from.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180328 138bc75d-0d04-0410-961f-82ee72b054a4
libcpp/ChangeLog
libcpp/internal.h
libcpp/lex.c