aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppexp.c
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-05-27 23:19:56 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-05-27 23:19:56 +0000
commitd1d9a6bd66d3d9b6cbade5609395fc618fa88f11 (patch)
treeff9a2b403a2c145b28540e1d32020de18ec3ff6c /gcc/cppexp.c
parentf45c9d956fb0a137a3ec8e48e38a617b0119db53 (diff)
downloadgcc-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/cppexp.c')
-rw-r--r--gcc/cppexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c
index 4e61915..e823232 100644
--- a/gcc/cppexp.c
+++ b/gcc/cppexp.c
@@ -423,7 +423,7 @@ parse_assertion (pfile)
if (_cpp_get_directive_token (pfile) != CPP_OPEN_PAREN)
CPP_ICE ("impossible token, expecting ( in parse_assertion");
- _cpp_init_toklist (&query);
+ _cpp_init_toklist (&query, NO_DUMMY_TOKEN);
specific = 1;
if (_cpp_scan_until (pfile, &query, CPP_CLOSE_PAREN) != CPP_CLOSE_PAREN)
SYNTAX_ERROR ("missing close paren on assertion answer");