diff options
author | Neil Booth <neilb@earthling.net> | 2000-05-27 23:19:56 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-05-27 23:19:56 +0000 |
commit | d1d9a6bd66d3d9b6cbade5609395fc618fa88f11 (patch) | |
tree | ff9a2b403a2c145b28540e1d32020de18ec3ff6c /gcc/cpphash.h | |
parent | f45c9d956fb0a137a3ec8e48e38a617b0119db53 (diff) | |
download | gcc-d1d9a6bd66d3d9b6cbade5609395fc618fa88f11.zip gcc-d1d9a6bd66d3d9b6cbade5609395fc618fa88f11.tar.gz gcc-d1d9a6bd66d3d9b6cbade5609395fc618fa88f11.tar.bz2 |
cppexp.c (parse_assertion): Supply extra argument to _cpp_init_toklist.
* cppexp.c (parse_assertion): Supply extra argument to
_cpp_init_toklist.
* cpplib.c (do_assert, do_unassert): Similarly.
* cpphash.h (_cpp_init_toklist) Update.
(_cpp_expand_token_space): New.
(DUMMY_TOKEN, NO_DUMMY_TOKEN): New.
* cpplex.c (_cpp_init_toklist): New argument.
(parse_string2): New argument multiline_ok.
(spell_token): Take a const cpp_token *.
(INIT_NAME): Replace with INIT_TOKEN_NAME. Update tokens_used.
(SPELL_ macros): Replace with enum.
(expand_token_space): Replace with _cpp_expand_token_space.
Take COUNT argument.
(IS_DIRECTIVE): Update.
(_cpp_lex_line): Update token structure before parsing number.
Don't assume start at beginning of token list.
(save_comment): Use INIT_TOKEN_NAME.
From-SVN: r34214
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 927927c..afa5d92 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -218,6 +218,10 @@ extern unsigned char _cpp_IStable[256]; #define ADJACENT_TO_MARK(PFILE) \ (CPP_BUFFER(PFILE)->cur - CPP_BUFFER(PFILE)->mark == 1) +/* Flags for _cpp_init_toklist. */ +#define DUMMY_TOKEN 0 +#define NO_DUMMY_TOKEN 1 + /* In cpphash.c */ extern unsigned int _cpp_calc_hash PARAMS ((const U_CHAR *, size_t)); extern HASHNODE *_cpp_lookup PARAMS ((cpp_reader *, @@ -260,7 +264,7 @@ extern enum cpp_ttype _cpp_get_define_token PARAMS ((cpp_reader *)); extern enum cpp_ttype _cpp_scan_until PARAMS ((cpp_reader *, cpp_toklist *, enum cpp_ttype)); -extern void _cpp_init_toklist PARAMS ((cpp_toklist *)); +extern void _cpp_init_toklist PARAMS ((cpp_toklist *, int)); extern void _cpp_clear_toklist PARAMS ((cpp_toklist *)); extern void _cpp_free_toklist PARAMS ((cpp_toklist *)); extern void _cpp_slice_toklist PARAMS ((cpp_toklist *, @@ -271,7 +275,7 @@ extern int _cpp_equiv_tokens PARAMS ((const cpp_token *, const cpp_token *)); extern int _cpp_equiv_toklists PARAMS ((const cpp_toklist *, const cpp_toklist *)); - +extern void _cpp_expand_token_space PARAMS ((cpp_toklist *, unsigned int)); /* In cpplib.c */ extern int _cpp_handle_directive PARAMS ((cpp_reader *)); |