]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
Fix cpp_peek_token behaviour (PR bootstrap/50778)
authorDodji Seketeli <dodji@redhat.com>
Sat, 22 Oct 2011 17:49:18 +0000 (17:49 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Sat, 22 Oct 2011 17:49:18 +0000 (19:49 +0200)
commitad2305adb4957005096c0fd019a1cb7071879abd
tree06c0096adb2e891ed006c895e4c785b4ad2b1133
parent94bf1a5fb73fc9c6a9bf9810c56b3f1678667f20
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.

From-SVN: r180328
libcpp/ChangeLog
libcpp/internal.h
libcpp/lex.c