cpphash.c (special_symbol): Represent an empty macro with "\r \r " not just "\r ".
authorZack Weinberg <zack@wolery.cumb.org>
Wed, 19 Apr 2000 20:53:06 +0000 (20:53 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Wed, 19 Apr 2000 20:53:06 +0000 (20:53 +0000)
commit0d5a06bd0b6e6b8a71fe8707ce0a93915c5a86e3
treec18dfee98cd0004a33f644025c4dfb4c94a3a231
parentb13fe8bfb261f1f8239507d4316cd2d0b158d990
cpphash.c (special_symbol): Represent an empty macro with "\r \r " not just "\r ".

* cpphash.c (special_symbol): Represent an empty macro with
"\r \r " not just "\r ".
(_cpp_macroexpand): Correct condition for the foo ( ) special
case.
(unsafe_chars): Handle EOF as second argument.
(push_macro_expansion): Simplify test for removing escape at
end.  Do not trim both escapes if there is no text in between.

* gcc.dg/20000419-1.c: New test.

From-SVN: r33267
gcc/ChangeLog
gcc/cpphash.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20000419-1.c [new file with mode: 0644]