Lines Matching defs:dep
773 int expr_contains_symbol(struct expr *dep, struct symbol *sym)
775 if (!dep)
778 switch (dep->type) {
781 return expr_contains_symbol(dep->left.expr, sym) ||
782 expr_contains_symbol(dep->right.expr, sym);
784 return dep->left.sym == sym;
787 return dep->left.sym == sym ||
788 dep->right.sym == sym;
790 return expr_contains_symbol(dep->left.expr, sym);
797 bool expr_depends_symbol(struct expr *dep, struct symbol *sym)
799 if (!dep)
802 switch (dep->type) {
804 return expr_depends_symbol(dep->left.expr, sym) ||
805 expr_depends_symbol(dep->right.expr, sym);
807 return dep->left.sym == sym;
809 if (dep->left.sym == sym) {
810 if (dep->right.sym == &symbol_yes || dep->right.sym == &symbol_mod)
815 if (dep->left.sym == sym) {
816 if (dep->right.sym == &symbol_no)