diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-08 23:08:07 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-08 23:08:07 +0000 |
commit | adb84b4254d23c4ff58f53c4f48971b6cd8395d1 (patch) | |
tree | 2829d58899280886dce9cbba61c7c88422fd36e6 /gcc/cpplib.h | |
parent | 09ff8283a84ea06073df34b17baad67126f5b68e (diff) | |
download | gcc-adb84b4254d23c4ff58f53c4f48971b6cd8395d1.zip gcc-adb84b4254d23c4ff58f53c4f48971b6cd8395d1.tar.gz gcc-adb84b4254d23c4ff58f53c4f48971b6cd8395d1.tar.bz2 |
Move directive handling into the lexer itself.
* cpplex.c (_cpp_lex_token): Handle directives directly.
In the case of a directive interrupting a function-like
macro invocation, use extra_char since read_ahead is
used to store the '#'. Return a CPP_EOF in this case.
* cppmacro.c (parse_arg): No need to handle CPP_DHASH any more.
(cpp_get_token): Don't handle directives here.
* cpplib.h: Remove CPP_DHASH token type.
From-SVN: r37329
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r-- | gcc/cpplib.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h index cc559e1..742e1a9 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -139,7 +139,6 @@ struct htab; TK(CPP_HEADER_NAME, SPELL_STRING) /* <stdio.h> in #include */ \ \ TK(CPP_COMMENT, SPELL_STRING) /* Only if output comments. */ \ - TK(CPP_DHASH, SPELL_NONE) /* The # of a directive. */ \ TK(CPP_MACRO_ARG, SPELL_NONE) /* Macro argument. */ \ TK(CPP_PLACEMARKER, SPELL_NONE) /* Placemarker token. */ \ OP(CPP_EOF, "EOL") /* End of line or file. */ |