whitespace before tokens affects macro redef
authorMatthias Braun <matthias.braun@kit.edu>
Wed, 6 Jun 2012 17:52:19 +0000 (19:52 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sun, 8 Jul 2012 07:54:22 +0000 (09:54 +0200)
preprocessor.c

index 85bdbf6..70b1bac 100644 (file)
@@ -1590,6 +1590,8 @@ static bool pp_definitions_equal(const pp_definition_t *definition1,
        for (size_t i = 0; i < len; ++i, ++t1, ++t2) {
                if (!pp_tokens_equal(&t1->token, &t2->token))
                        return false;
+               if (t1->had_whitespace != t2->had_whitespace)
+                       return false;
        }
        return true;
 }