diff options
author | Neil Booth <neilb@earthling.net> | 2000-05-15 22:44:22 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-05-15 22:44:22 +0000 |
commit | 41e8b1d7354eda1000077456decb2d146501eac7 (patch) | |
tree | fd225ba4e2690969afebfd05e915de6365aa5cc3 /gcc/cpplex.c | |
parent | e4c85816577edeef910cdd45a4405c564beba903 (diff) | |
download | gcc-41e8b1d7354eda1000077456decb2d146501eac7.zip gcc-41e8b1d7354eda1000077456decb2d146501eac7.tar.gz gcc-41e8b1d7354eda1000077456decb2d146501eac7.tar.bz2 |
cpplex.c (parse_string2): Update comment.
* cpplex.c (parse_string2): Update comment.
(cpp_lex_line): No special assertion treatment for '('.
* cpplib.c (DIRECTIVE_TABLE): Remove SYNTAX_ASSERT.
* cpplib.h (SYNTAX_ASSERT): Remove.
From-SVN: r33915
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index cf31d91..03b3c35 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -2643,7 +2643,8 @@ parse_number (pfile, list, name) escaped newlines. Can be used for character constants (terminator = '\''), string - constants ('"'), angled headers ('>') and assertions (')'). */ + constants ('"') and angled headers ('>'). Multi-line strings are + allowed, except for within directives. */ static void parse_string2 (pfile, list, name, terminator) @@ -3185,17 +3186,6 @@ _cpp_lex_line (pfile, list) cur_token++; break; - case '(': - /* Is this the beginning of an assertion string? */ - if (list->dir_flags & SYNTAX_ASSERT) - { - c = ')'; /* Terminator. */ - cur_token->type = CPP_ASSERTION; - goto do_parse_string; - } - PUSH_TOKEN (CPP_OPEN_PAREN); - break; - case '?': if (cur + 1 < buffer->rlimit && *cur == '?' && trigraph_map[cur[1]] && trigraph_ok (pfile, cur + 1)) @@ -3261,6 +3251,7 @@ _cpp_lex_line (pfile, list) case '!': PUSH_TOKEN (CPP_NOT); break; case ',': PUSH_TOKEN (CPP_COMMA); break; case ';': PUSH_TOKEN (CPP_SEMICOLON); break; + case '(': PUSH_TOKEN (CPP_OPEN_PAREN); break; case ')': PUSH_TOKEN (CPP_CLOSE_PAREN); break; case '$': |