Lines Matching refs:dep
102 void menu_add_dep(struct expr *dep)
104 current_entry->dep = expr_alloc_and(current_entry->dep, menu_check_dep(dep));
122 struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *dep)
128 prop->visible.expr = menu_check_dep(dep);
145 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep)
147 return menu_add_prop(type, prompt, NULL, dep);
150 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep)
152 menu_add_prop(type, NULL, expr, dep);
155 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep)
157 menu_add_prop(type, NULL, expr_alloc_symbol(sym), dep);
233 struct expr *parentdep, *basedep, *dep, *dep2, **ep;
252 parentdep = parent->dep;
255 basedep = expr_transform(menu->dep);
258 menu->dep = basedep;
266 dep = expr_transform(prop->visible.expr);
267 dep = expr_alloc_and(expr_copy(basedep), dep);
268 dep = expr_eliminate_dups(dep);
270 dep = expr_trans_bool(dep);
271 prop->visible.expr = dep;
275 expr_alloc_and(expr_alloc_symbol(menu->sym), expr_copy(dep)));
287 dep = menu->prompt ? menu->prompt->visible.expr : menu->dep;
288 if (!expr_contains_symbol(dep, sym))
290 if (expr_depends_symbol(dep, sym))
292 dep = expr_trans_compare(dep, E_UNEQUAL, &symbol_no);
293 dep = expr_eliminate_dups(expr_transform(dep));
295 expr_eliminate_eq(&dep, &dep2);
296 expr_free(dep);