Lines Matching refs:dep
851 int expr_contains_symbol(struct expr *dep, struct symbol *sym) in expr_contains_symbol() argument
853 if (!dep) in expr_contains_symbol()
856 switch (dep->type) { in expr_contains_symbol()
859 return expr_contains_symbol(dep->left.expr, sym) || in expr_contains_symbol()
860 expr_contains_symbol(dep->right.expr, sym); in expr_contains_symbol()
862 return dep->left.sym == sym; in expr_contains_symbol()
869 return dep->left.sym == sym || in expr_contains_symbol()
870 dep->right.sym == sym; in expr_contains_symbol()
872 return expr_contains_symbol(dep->left.expr, sym); in expr_contains_symbol()
879 bool expr_depends_symbol(struct expr *dep, struct symbol *sym) in expr_depends_symbol() argument
881 if (!dep) in expr_depends_symbol()
884 switch (dep->type) { in expr_depends_symbol()
886 return expr_depends_symbol(dep->left.expr, sym) || in expr_depends_symbol()
887 expr_depends_symbol(dep->right.expr, sym); in expr_depends_symbol()
889 return dep->left.sym == sym; in expr_depends_symbol()
891 if (dep->left.sym == sym) { in expr_depends_symbol()
892 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod) in expr_depends_symbol()
897 if (dep->left.sym == sym) { in expr_depends_symbol()
898 if (dep->right.sym == &symbol_no) in expr_depends_symbol()