]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/directives.c
cpphash.h (struct lexer_state): Add directive_wants_padding.
authorZack Weinberg <zack@gcc.gnu.org>
Fri, 21 Feb 2003 18:06:30 +0000 (18:06 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Fri, 21 Feb 2003 18:06:30 +0000 (18:06 +0000)
commita8d0ddaf4c62bdc34262be64de2161a413391b8d
tree4fb088465e0f2697e44b72ef804c30281053c4db
parent3a3f137e0de6ea3acab06f1b4b16ada378caec2b
cpphash.h (struct lexer_state): Add directive_wants_padding.

* cpphash.h (struct lexer_state): Add directive_wants_padding.
* cpplib.c (_cpp_handle_directive): Set directive_wants_padding
for directives of type INCL.
(glue_header_name, parse_include): Use get_token_no_padding.
* cppmacro.c (replace_args): If directive_wants_padding,
provide padding tokens.

* testsuite/gcc.dg/cpp/include3.c: New test.
* testsuite/gcc.dg/cpp/inc/foo.h: New file.

From-SVN: r63231
gcc/ChangeLog
gcc/cpphash.h
gcc/cpplib.c
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/inc/foo.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/include3.c [new file with mode: 0644]