projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b22563a
)
whitespace before tokens affects macro redef
author
Matthias Braun
<matthias.braun@kit.edu>
Wed, 6 Jun 2012 17:52:19 +0000
(19:52 +0200)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 8 Jul 2012 07:54:22 +0000
(09:54 +0200)
preprocessor.c
patch
|
blob
|
history
diff --git
a/preprocessor.c
b/preprocessor.c
index
85bdbf6
..
70b1bac
100644
(file)
--- a/
preprocessor.c
+++ b/
preprocessor.c
@@
-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;
}