[CLASSES]: Codiff and prefcnt doesn't use the filter in cu__for_each_function

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2006-12-18 15:42:03 -02:00
parent bd4dfbccb9
commit 67621fcea8
2 changed files with 4 additions and 3 deletions

View File

@ -209,7 +209,7 @@ static int cu_diff_iterator(struct cu *cu, void *new_cus)
if (new_cu != NULL) {
cu__for_each_class(cu, diff_class_iterator, new_cu, NULL);
cu__for_each_function(cu, diff_function_iterator, new_cu);
cu__for_each_function(cu, diff_function_iterator, new_cu, NULL);
}
return 0;
@ -368,7 +368,8 @@ static int cu_show_diffs_iterator(struct cu *cu, void *cookie)
if (cu->nr_functions_changed != 0 && show_function_diffs) {
total_nr_functions_changed += cu->nr_functions_changed;
cu__for_each_function(cu, show_function_diffs_iterator, NULL);
cu__for_each_function(cu, show_function_diffs_iterator,
NULL, NULL);
printf(" %u function%s changed", cu->nr_functions_changed,
cu->nr_functions_changed > 1 ? "s" : "");
if (cu->function_bytes_added != 0) {

View File

@ -127,7 +127,7 @@ static int refcnt_class_iterator(struct class *class, void *cookie)
static int cu_refcnt_iterator(struct cu *cu, void *cookie)
{
cu__for_each_class(cu, refcnt_class_iterator, cookie, NULL);
cu__for_each_function(cu, refcnt_function_iterator, cookie);
cu__for_each_function(cu, refcnt_function_iterator, cookie, NULL);
return 0;
}