8 DECLARE_PTR_LIST(tracker_list
, struct tracker
);
10 static struct tracker_list
*ignored
;
12 void add_ignore(const char *name
, int owner
, struct symbol
*sym
)
16 tmp
= malloc(sizeof(*tmp
));
20 add_ptr_list(&ignored
, tmp
);
23 int is_ignored(const char *name
, int owner
, struct symbol
*sym
)
27 FOR_EACH_PTR(ignored
, tmp
) {
28 if (tmp
->owner
== owner
&& tmp
->sym
== sym
29 && !strcmp(tmp
->name
, name
))
31 } END_FOR_EACH_PTR(tmp
);
35 static void clear_ignores()
37 __free_ptr_list((struct ptr_list
**)&ignored
);
40 void register_smatch_ignore(int id
)
42 add_hook(&clear_ignores
, END_FUNC_HOOK
);