Lines Matching refs:dep
713 bool expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
715 if (!dep) in expr_contains_symbol()
718 switch (dep->type) { in expr_contains_symbol()
721 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
722 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
724 return dep->left.sym == sym; in expr_contains_symbol()
731 return dep->left.sym == sym || in expr_contains_symbol()
732 dep->right.sym == sym; in expr_contains_symbol()
734 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
741 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
743 if (!dep) in expr_depends_symbol()
746 switch (dep->type) { in expr_depends_symbol()
748 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
749 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
751 return dep->left.sym == sym; in expr_depends_symbol()
753 if (dep->left.sym == sym) { in expr_depends_symbol()
754 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
759 if (dep->left.sym == sym) { in expr_depends_symbol()
760 if (dep->right.sym == &symbol_no) in expr_depends_symbol()