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/cpplib.c | |
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/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 1679306..4a09939 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -1550,7 +1550,7 @@ do_assert (pfile) ERROR ("missing token-sequence in #assert"); pred = (struct predicate *) xmalloc (sizeof (struct predicate)); - _cpp_init_toklist (&pred->answer); + _cpp_init_toklist (&pred->answer, NO_DUMMY_TOKEN); if (_cpp_scan_until (pfile, &pred->answer, CPP_CLOSE_PAREN) != CPP_CLOSE_PAREN) @@ -1626,7 +1626,7 @@ do_unassert (pfile) if (type == CPP_OPEN_PAREN) { specific = 1; - _cpp_init_toklist (&ans); + _cpp_init_toklist (&ans, NO_DUMMY_TOKEN); if (_cpp_scan_until (pfile, &ans, CPP_CLOSE_PAREN) != CPP_CLOSE_PAREN) |