diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-06 11:00:15 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:07 -0700 |
commit | dd9cfb98ae580a52173462d4cbf97ec2f28eeec9 (patch) | |
tree | f1cca957073b06770aebe2286ae25a40d0b7659f /evaluate.c | |
parent | ff94b4aa37edf4ca557fd562a8eee6f102a66954 (diff) | |
download | sparse-dd9cfb98ae580a52173462d4cbf97ec2f28eeec9.tar.gz |
Make END_FOR_EACH_PTR[_REVERSE] take the ptr name as an argument.
..and switch us entirely over to the new naming scheme.
All the nasty work of going through the users thanks to Chris Li.
Diffstat (limited to 'evaluate.c')
-rw-r--r-- | evaluate.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1124,7 +1124,7 @@ static void examine_fn_arguments(struct symbol *fn) break; } } - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(s); } static struct symbol *convert_to_as_mod(struct symbol *sym, int as, int mod) @@ -1709,7 +1709,7 @@ static int evaluate_arguments(struct symbol *f, struct symbol *fn, struct expres i++; NEXT_PTR_LIST(argtype); - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(expr); FINISH_PTR_LIST(argtype); return 1; } @@ -1741,7 +1741,7 @@ static int evaluate_array_initializer(struct symbol *ctype, struct expression *e current += entries; if (current > max) max = current; - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(entry); return max; } @@ -1790,7 +1790,7 @@ static int evaluate_struct_or_union_initializer(struct symbol *ctype, struct exp evaluate_initializer(sym, p, offset + sym->offset); NEXT_PTR_LIST(sym); - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(entry); FINISH_PTR_LIST(sym); return 0; @@ -2306,7 +2306,7 @@ struct symbol *evaluate_statement(struct statement *stmt) /* Evaluate each symbol in the compound statement */ FOR_EACH_PTR(stmt->syms, sym) { evaluate_symbol(sym); - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(sym); evaluate_symbol(stmt->ret); /* @@ -2316,7 +2316,7 @@ struct symbol *evaluate_statement(struct statement *stmt) type = NULL; FOR_EACH_PTR(stmt->stmts, s) { type = evaluate_statement(s); - } END_FOR_EACH_PTR; + } END_FOR_EACH_PTR(s); if (!type) type = &void_ctype; return type; |