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