OSDN Git Service

* cpphash.h: ISvspace, is_vspace, is_nvspace: New.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jul 2000 09:19:44 +0000 (09:19 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Jul 2000 09:19:44 +0000 (09:19 +0000)
commit7871928278f69994071e967abcea37b4a5b715d3
treeda206aace0d455cab3fa91f129af3841c667f84d
parent2d6f73d2cb1628a1402aee6132070e7c5e7bde34
* cpphash.h: ISvspace, is_vspace, is_nvspace: New.
IShspace, ISspace: Update.

* cppinit.c: ISTABLE: Update.
V: New.

* cpplex.c (IS_HSPACE, S_NEWLINE): Remove.
(IS_DIRECTIVE): Rename KNOWN_DIRECTIVE.
(skip_block_comment, skip_line_comment, parse_string,
lex_line): Use is_vspace rather than IS_NEWLINE.
(skip_whitespace, lex_line): Clean up to use is_nvspace.
(lex_line): Use KNOWN_DIRECTIVE.  Any kind of directive
gets a BOL flag.
(lex_next): Unconditionally stop if within a directive.
Treat directives within macro invocations as directives
(after parse_args emits error), not as the argument.

* testsuite/gcc.dg/cpp/directiv.c: New tests.
* testsuite/gcc.dg/cpp/undef1.c: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34933 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplex.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/directiv.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/undef1.c