]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/lex.c
Move directive handling into the lexer itself.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Nov 2000 23:08:07 +0000 (23:08 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 8 Nov 2000 23:08:07 +0000 (23:08 +0000)
commit230f09435a0964b0435bd27cb9824fdfdae21f64
tree2829d58899280886dce9cbba61c7c88422fd36e6
parent1aaa692a9b9dfd74aaae183447b5aaff0010bc61
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37329 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpplex.c
gcc/cpplib.h
gcc/cppmacro.c