Lines Matching refs:dep
751 int expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
753 if (!dep) in expr_contains_symbol()
756 switch (dep->type) { in expr_contains_symbol()
759 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
760 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
762 return dep->left.sym == sym; in expr_contains_symbol()
769 return dep->left.sym == sym || in expr_contains_symbol()
770 dep->right.sym == sym; in expr_contains_symbol()
772 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
779 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
781 if (!dep) in expr_depends_symbol()
784 switch (dep->type) { in expr_depends_symbol()
786 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
787 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
789 return dep->left.sym == sym; in expr_depends_symbol()
791 if (dep->left.sym == sym) { in expr_depends_symbol()
792 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
797 if (dep->left.sym == sym) { in expr_depends_symbol()
798 if (dep->right.sym == &symbol_no) in expr_depends_symbol()