From 2e8d7d9e303920e573962c45016eee2e0ca9e3a9 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 23 Oct 2012 11:45:38 +0300 Subject: [PATCH] db: add a comment Signed-off-by: Dan Carpenter --- smatch_db.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.11.4.GIT