diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-05 20:27:12 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-05 20:27:12 +0000 |
commit | f15f6c8d99ed1e31613d275d23d67dee187de88e (patch) | |
tree | b098c6dcb911ae0a74ccb0f807fc5136f1aaecd4 /gcc/cpphash.h | |
parent | febf5bcde894469b0d07da8a3776852764da3a1e (diff) | |
download | gcc-f15f6c8d99ed1e31613d275d23d67dee187de88e.tar.gz |
* cpphash.h (_cpp_create_definition): Update prototype.
(_cpp_push_text_context, _cpp_create_trad_definition): New.
( cpp_lex_identifier_trad): New.
(_cpp_set_trad_context): New.
* cppinit.c (cpp_finish_options): Don't conditionalize builtins.
* cpplib.c (SEEN_EOL): Update.
(lex_macro_node): Update for -traditional.
(cpp_push_buffer, _cpp_pop_buffer): Similarly.
* cppmacro.c (_cpp_create_definition): Split into
create_iso_definition() and _cpp_create_trad_definition().
(warn_of_redefinition): Update prototype; handle traditional
macros.
(_cpp_push_text_context): New.
* cpptrad.c (skip_whitespace, push_replacement_text): New.
(lex_identifier): Call ht_lookup with correct start.
(_cpp_lex_identifier_tradm _cpp_create_trad_definition,
_cpp_set_trad_context): New.
(scan_out_logical_line): Update to handle changing contexts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54293 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 6d3f1b9fb09..e508b80ddcf 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -424,8 +424,11 @@ extern int _cpp_begin_message PARAMS ((cpp_reader *, int, /* In cppmacro.c */ extern void _cpp_free_definition PARAMS ((cpp_hashnode *)); -extern int _cpp_create_definition PARAMS ((cpp_reader *, cpp_hashnode *)); +extern bool _cpp_create_definition PARAMS ((cpp_reader *, cpp_hashnode *)); extern void _cpp_pop_context PARAMS ((cpp_reader *)); +extern void _cpp_push_text_context PARAMS ((cpp_reader *, cpp_hashnode *, + const uchar *, const uchar*)); +extern bool _cpp_create_trad_definition PARAMS ((cpp_reader *, cpp_macro *)); /* In cpphash.c */ extern void _cpp_init_hashtable PARAMS ((cpp_reader *, hash_table *)); @@ -478,6 +481,8 @@ extern void _cpp_pop_buffer PARAMS ((cpp_reader *)); extern bool _cpp_read_logical_line_trad PARAMS ((cpp_reader *)); extern void _cpp_overlay_buffer PARAMS ((cpp_reader *pfile, const uchar *, size_t)); +extern cpp_hashnode *_cpp_lex_identifier_trad PARAMS ((cpp_reader *)); +extern void _cpp_set_trad_context PARAMS ((cpp_reader *)); /* Utility routines and macros. */ #define DSC(str) (const uchar *)str, sizeof str - 1 |