Lines Matching refs:prop

40 	struct property *prop = prop_alloc(P_DEFAULT, sym);  in sym_add_default()  local
42 prop->expr = expr_alloc_symbol(sym_lookup(def, 1)); in sym_add_default()
114 struct property *prop; in sym_get_choice_prop() local
116 for_all_choices(sym, prop) in sym_get_choice_prop()
117 return prop; in sym_get_choice_prop()
123 struct property *prop; in sym_get_default_prop() local
125 for_all_defaults(sym, prop) { in sym_get_default_prop()
126 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
127 if (prop->visible.tri != no) in sym_get_default_prop()
128 return prop; in sym_get_default_prop()
135 struct property *prop; in sym_get_range_prop() local
137 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
138 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
139 if (prop->visible.tri != no) in sym_get_range_prop()
140 return prop; in sym_get_range_prop()
163 struct property *prop; in sym_validate_range() local
177 prop = sym_get_range_prop(sym); in sym_validate_range()
178 if (!prop) in sym_validate_range()
181 val2 = sym_get_range_val(prop->expr->left.sym, base); in sym_validate_range()
183 val2 = sym_get_range_val(prop->expr->right.sym, base); in sym_validate_range()
196 struct property *prop; in sym_calc_visibility() local
201 for_all_prompts(sym, prop) { in sym_calc_visibility()
202 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
203 tri = E_OR(tri, prop->visible.tri); in sym_calc_visibility()
227 struct property *prop; in sym_calc_choice() local
239 for_all_defaults(sym, prop) { in sym_calc_choice()
240 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_choice()
241 if (prop->visible.tri == no) in sym_calc_choice()
243 def_sym = prop_get_symbol(prop); in sym_calc_choice()
250 prop = sym_get_choice_prop(sym); in sym_calc_choice()
251 for (e = prop->expr; e; e = e->left.expr) { in sym_calc_choice()
266 struct property *prop; in sym_calc_value() local
305 prop = sym_get_choice_prop(sym); in sym_calc_value()
306 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
312 prop = sym_get_default_prop(sym); in sym_calc_value()
313 if (prop) in sym_calc_value()
314 newval.tri = expr_calc_value(prop->expr); in sym_calc_value()
318 prop = sym_get_default_prop(sym); in sym_calc_value()
319 if (prop) { in sym_calc_value()
321 newval.tri = expr_calc_value(prop->expr); in sym_calc_value()
337 prop = sym_get_default_prop(sym); in sym_calc_value()
338 if (prop) { in sym_calc_value()
339 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
366 prop = sym_get_choice_prop(sym); in sym_calc_value()
367 for (e = prop->expr; e; e = e->left.expr) { in sym_calc_value()
389 struct property *prop; in sym_set_changed() local
392 for (prop = sym->prop; prop; prop = prop->next) { in sym_set_changed()
393 if (prop->menu) in sym_set_changed()
394 prop->menu->flags |= MENU_CHANGED; in sym_set_changed()
443 struct property *prop; in sym_set_tristate_value() local
448 prop = sym_get_choice_prop(cs); in sym_set_tristate_value()
449 for (e = prop->expr; e; e = e->left.expr) { in sym_set_tristate_value()
530 struct property *prop; in sym_string_within_range() local
539 prop = sym_get_range_prop(sym); in sym_string_within_range()
540 if (!prop) in sym_string_within_range()
543 return val >= sym_get_range_val(prop->expr->left.sym, 10) && in sym_string_within_range()
544 val <= sym_get_range_val(prop->expr->right.sym, 10); in sym_string_within_range()
548 prop = sym_get_range_prop(sym); in sym_string_within_range()
549 if (!prop) in sym_string_within_range()
552 return val >= sym_get_range_val(prop->expr->left.sym, 16) && in sym_string_within_range()
553 val <= sym_get_range_val(prop->expr->right.sym, 16); in sym_string_within_range()
793 struct property *prop; in sym_check_deps() local
807 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_deps()
808 if (prop->type == P_CHOICE || prop->type == P_SELECT) in sym_check_deps()
810 sym2 = sym_check_expr_deps(prop->visible.expr); in sym_check_deps()
813 if (prop->type != P_DEFAULT || sym_is_choice(sym)) in sym_check_deps()
815 sym2 = sym_check_expr_deps(prop->expr); in sym_check_deps()
833 struct property *prop; in prop_alloc() local
836 prop = malloc(sizeof(*prop)); in prop_alloc()
837 memset(prop, 0, sizeof(*prop)); in prop_alloc()
838 prop->type = type; in prop_alloc()
839 prop->sym = sym; in prop_alloc()
840 prop->file = current_file; in prop_alloc()
841 prop->lineno = zconf_lineno(); in prop_alloc()
845 for (propp = &sym->prop; *propp; propp = &(*propp)->next) in prop_alloc()
847 *propp = prop; in prop_alloc()
850 return prop; in prop_alloc()
853 struct symbol *prop_get_symbol(struct property *prop) in prop_get_symbol() argument
855 if (prop->expr && (prop->expr->type == E_SYMBOL || in prop_get_symbol()
856 prop->expr->type == E_CHOICE)) in prop_get_symbol()
857 return prop->expr->left.sym; in prop_get_symbol()