Lines Matching refs:dep
843 int expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
845 if (!dep) in expr_contains_symbol()
848 switch (dep->type) { in expr_contains_symbol()
851 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
852 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
854 return dep->left.sym == sym; in expr_contains_symbol()
861 return dep->left.sym == sym || in expr_contains_symbol()
862 dep->right.sym == sym; in expr_contains_symbol()
864 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
871 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
873 if (!dep) in expr_depends_symbol()
876 switch (dep->type) { in expr_depends_symbol()
878 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
879 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
881 return dep->left.sym == sym; in expr_depends_symbol()
883 if (dep->left.sym == sym) { in expr_depends_symbol()
884 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
889 if (dep->left.sym == sym) { in expr_depends_symbol()
890 if (dep->right.sym == &symbol_no) in expr_depends_symbol()