Lines Matching refs:dep
778 int expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
780 if (!dep) in expr_contains_symbol()
783 switch (dep->type) { in expr_contains_symbol()
786 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
787 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
789 return dep->left.sym == sym; in expr_contains_symbol()
792 return dep->left.sym == sym || in expr_contains_symbol()
793 dep->right.sym == sym; in expr_contains_symbol()
795 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
802 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
804 if (!dep) in expr_depends_symbol()
807 switch (dep->type) { in expr_depends_symbol()
809 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
810 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
812 return dep->left.sym == sym; in expr_depends_symbol()
814 if (dep->left.sym == sym) { in expr_depends_symbol()
815 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
820 if (dep->left.sym == sym) { in expr_depends_symbol()
821 if (dep->right.sym == &symbol_no) in expr_depends_symbol()