diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-05 09:44:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:59 -0700 |
commit | d9fcf85a0229c8dc03b1cfebce208393021ca087 (patch) | |
tree | c276b92d151e1481b12819383ca8fd60c2567c16 /pre-process.c | |
parent | 5cf22b3e5d339af1ed67544122673e1a76bfa129 (diff) | |
download | sparse-dev-d9fcf85a0229c8dc03b1cfebce208393021ca087.tar.gz |
When re-defining a symbol, let the new definition shine through.
Don't just complain. It may be wrogn to redefine, but if people
do it, use the most recent one.
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pre-process.c b/pre-process.c index 63274cae..3eb02896 100644 --- a/pre-process.c +++ b/pre-process.c @@ -999,6 +999,8 @@ static int handle_define(struct stream *stream, struct token **line, struct toke warning(left->pos, "preprocessor token %.*s redefined", name->len, name->name); info(sym->pos, "this was the original definition"); + sym->expansion = expansion; + sym->arglist = arglist; } return 1; } |