projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8cb9806
)
improve declaration counter
author
Matthias Braun
<matze@braunis.de>
Fri, 28 Dec 2007 19:22:20 +0000
(19:22 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 28 Dec 2007 19:22:20 +0000
(19:22 +0000)
[r18822]
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
714e013
..
ce26eb9
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3841,6
+3841,14
@@
static int count_decls_in_expression(const expression_t *expression) {
}
EXPR_UNARY_CASES
return count_decls_in_expression(expression->unary.value);
}
EXPR_UNARY_CASES
return count_decls_in_expression(expression->unary.value);
+ case EXPR_CALL: {
+ int count = 0;
+ call_argument_t *argument = expression->call.arguments;
+ for( ; argument != NULL; argument = argument->next) {
+ count += count_decls_in_expression(argument->expression);
+ }
+ return count;
+ }
default:
break;
default:
break;