diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2002-06-27 06:01:58 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-06-27 06:01:58 +0000 |
commit | 951a07660948ce4c3b048dc7637f5738a9d9d288 (patch) | |
tree | b68bbff6125d07a1cae24355b3075fc5c636bea1 /gcc/cpplib.c | |
parent | 0647023885b52c9eda290f593432d245f1e30ce3 (diff) | |
download | gcc-951a07660948ce4c3b048dc7637f5738a9d9d288.zip gcc-951a07660948ce4c3b048dc7637f5738a9d9d288.tar.gz gcc-951a07660948ce4c3b048dc7637f5738a9d9d288.tar.bz2 |
cpphash.h (_cpp_set_trad_context): Remove.
* cpphash.h (_cpp_set_trad_context): Remove.
* cpplib.c (prepare_directive_trad): Do nothing for #define.
(cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
* cpptrad.c: Update comments.
(_cpp_read_logical_line_trad): Let scan_logical_line handle
updating the current context.
(scan_logical_line): Update the current context.
(_cpp_create_trad_definition): Similarly.
(_cpp_set_trad_context): Remove.
From-SVN: r55022
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 18e44ba..6bb9f4d 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -284,9 +284,7 @@ static void prepare_directive_trad (pfile) cpp_reader *pfile; { - if (pfile->directive == &dtable[T_DEFINE]) - CUR (pfile->context) = pfile->buffer->cur; - else + if (pfile->directive != &dtable[T_DEFINE]) { bool no_expand = (pfile->directive && ! (pfile->directive->flags & EXPAND)); @@ -1937,9 +1935,6 @@ cpp_push_buffer (pfile, buffer, len, from_stage3, return_at_eof) pfile->buffer = new; - if (CPP_OPTION (pfile, traditional)) - _cpp_set_trad_context (pfile); - return new; } @@ -1984,9 +1979,6 @@ _cpp_pop_buffer (pfile) _cpp_maybe_push_include_file (pfile); } } - - if (pfile->buffer && CPP_OPTION (pfile, traditional)) - _cpp_set_trad_context (pfile); } /* Enter all recognised directives in the hash table. */ |