Lines Matching refs:dep
779 int expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
781 if (!dep) in expr_contains_symbol()
784 switch (dep->type) { in expr_contains_symbol()
787 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
788 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
790 return dep->left.sym == sym; in expr_contains_symbol()
793 return dep->left.sym == sym || in expr_contains_symbol()
794 dep->right.sym == sym; in expr_contains_symbol()
796 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
803 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
805 if (!dep) in expr_depends_symbol()
808 switch (dep->type) { in expr_depends_symbol()
810 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
811 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
813 return dep->left.sym == sym; in expr_depends_symbol()
815 if (dep->left.sym == sym) { in expr_depends_symbol()
816 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
821 if (dep->left.sym == sym) { in expr_depends_symbol()
822 if (dep->right.sym == &symbol_no) in expr_depends_symbol()