Skip to content

Commit c0a0408

Browse files
committed
function search: properly search through switch st
(cherry picked from commit 446dd58)
1 parent 69aad41 commit c0a0408

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

route_struct.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,23 @@ int is_mod_async_func_used(struct action *a, char *name, int param_no)
710710
&& (param_no == acmd->param_no || param_no == -1))
711711
return 1;
712712
}
713+
714+
/* follow all leads from actions than may have
715+
* sub-blocks of instructions */
716+
if (a->elem[0].type==ACTIONS_ST)
717+
if (is_mod_async_func_used((struct action*)a->elem[0].u.data,
718+
name,param_no)==1)
719+
return 1;
720+
721+
if (a->elem[1].type==ACTIONS_ST)
722+
if (is_mod_async_func_used((struct action*)a->elem[1].u.data,
723+
name,param_no)==1)
724+
return 1;
725+
726+
if (a->elem[2].type==ACTIONS_ST)
727+
if (is_mod_async_func_used((struct action*)a->elem[2].u.data,
728+
name,param_no)==1)
729+
return 1;
713730
}
714731

715732
return 0;

0 commit comments

Comments
 (0)