diff options
| author | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-22 17:49:18 +0000 |
|---|---|---|
| committer | dodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-22 17:49:18 +0000 |
| commit | a2eb22f09bcadd9a021cda72aee6aefee477bc55 (patch) | |
| tree | 06c0096adb2e891ed006c895e4c785b4ad2b1133 /libcpp/internal.h | |
| parent | 38cde3487be0a6d23cb126e6c4ca80369a945595 (diff) | |
| download | gcc-a2eb22f09bcadd9a021cda72aee6aefee477bc55.tar.gz | |
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
Diffstat (limited to 'libcpp/internal.h')
| -rw-r--r-- | libcpp/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h index 6fb2606c9b8..e60330df490 100644 --- a/libcpp/internal.h +++ b/libcpp/internal.h @@ -652,7 +652,7 @@ extern cpp_token *_cpp_lex_direct (cpp_reader *); extern int _cpp_equiv_tokens (const cpp_token *, const cpp_token *); extern void _cpp_init_tokenrun (tokenrun *, unsigned int); extern cpp_hashnode *_cpp_lex_identifier (cpp_reader *, const char *); -extern int _cpp_remaining_tokens_num_in_context (cpp_reader *); +extern int _cpp_remaining_tokens_num_in_context (cpp_context *); /* In init.c. */ extern void _cpp_maybe_push_include_file (cpp_reader *); |
