Move directive handling into the lexer itself.
authorNeil Booth <neilb@earthling.net>
Wed, 8 Nov 2000 23:08:07 +0000 (23:08 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 8 Nov 2000 23:08:07 +0000 (23:08 +0000)
commitadb84b4254d23c4ff58f53c4f48971b6cd8395d1
tree2829d58899280886dce9cbba61c7c88422fd36e6
parent09ff8283a84ea06073df34b17baad67126f5b68e
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
gcc/ChangeLog
gcc/cpplex.c
gcc/cpplib.h
gcc/cppmacro.c