From: Dan Carpenter Date: Tue, 23 Oct 2012 08:45:38 +0000 (+0300) Subject: db: add a comment X-Git-Tag: 1.57~204 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/2e8d7d9e303920e573962c45016eee2e0ca9e3a9 db: add a comment Signed-off-by: Dan Carpenter --- diff --git a/smatch_db.c b/smatch_db.c index 12a1daec..1cef3817 100644 --- a/smatch_db.c +++ b/smatch_db.c @@ -70,6 +70,11 @@ void add_definition_db_callback(void (*callback)(const char *name, struct symbol add_ptr_list(&callbacks, def_callback); } +/* + * These call backs are used when the --info option is turned on to print struct + * member information. For example foo->bar could have a state in + * smatch_extra.c and also check_user.c. + */ void add_member_info_callback(int owner, void (*callback)(char *fn, char *global_static, int param, char *printed_name, struct smatch_state *state)) { struct member_info_callback *member_callback = __alloc_member_info_callback(0);