Lines Matching refs:prop
75 struct property *prop; in sym_get_choice_prop() local
77 for_all_choices(sym, prop) in sym_get_choice_prop()
78 return prop; in sym_get_choice_prop()
84 struct property *prop; in sym_get_default_prop() local
86 for_all_defaults(sym, prop) { in sym_get_default_prop()
87 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
88 if (prop->visible.tri != no) in sym_get_default_prop()
89 return prop; in sym_get_default_prop()
96 struct property *prop; in sym_get_range_prop() local
98 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
99 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
100 if (prop->visible.tri != no) in sym_get_range_prop()
101 return prop; in sym_get_range_prop()
124 struct property *prop; in sym_validate_range() local
139 prop = sym_get_range_prop(sym); in sym_validate_range()
140 if (!prop) in sym_validate_range()
143 range_sym = prop->expr->left.sym; in sym_validate_range()
146 range_sym = prop->expr->right.sym; in sym_validate_range()
156 struct property *prop; in sym_set_changed() local
159 for (prop = sym->prop; prop; prop = prop->next) { in sym_set_changed()
160 if (prop->menu) in sym_set_changed()
161 prop->menu->flags |= MENU_CHANGED; in sym_set_changed()
176 struct property *prop; in sym_calc_visibility() local
186 for_all_prompts(sym, prop) { in sym_calc_visibility()
187 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
194 prop->visible.tri == mod && choice_sym->curr.tri == yes) in sym_calc_visibility()
195 prop->visible.tri = no; in sym_calc_visibility()
197 tri = EXPR_OR(tri, prop->visible.tri); in sym_calc_visibility()
246 struct property *prop; in sym_choice_default() local
250 for_all_defaults(sym, prop) { in sym_choice_default()
251 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_choice_default()
252 if (prop->visible.tri == no) in sym_choice_default()
254 def_sym = prop_get_symbol(prop); in sym_choice_default()
260 prop = sym_get_choice_prop(sym); in sym_choice_default()
261 expr_list_for_each_sym(prop->expr, e, def_sym) in sym_choice_default()
272 struct property *prop; in sym_calc_choice() local
278 prop = sym_get_choice_prop(sym); in sym_calc_choice()
279 expr_list_for_each_sym(prop->expr, e, def_sym) { in sym_calc_choice()
325 struct property *prop; in sym_calc_value() local
337 prop = sym_get_choice_prop(sym); in sym_calc_value()
338 sym_calc_value(prop_get_symbol(prop)); in sym_calc_value()
374 prop = sym_get_choice_prop(sym); in sym_calc_value()
375 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
390 prop = sym_get_default_prop(sym); in sym_calc_value()
391 if (prop) { in sym_calc_value()
392 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
393 prop->visible.tri); in sym_calc_value()
419 prop = sym_get_default_prop(sym); in sym_calc_value()
420 if (prop) { in sym_calc_value()
421 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
449 prop = sym_get_choice_prop(sym); in sym_calc_value()
450 expr_list_for_each_sym(prop->expr, e, choice_sym) { in sym_calc_value()
513 struct property *prop; in sym_set_tristate_value() local
518 prop = sym_get_choice_prop(cs); in sym_set_tristate_value()
519 for (e = prop->expr; e; e = e->left.expr) { in sym_set_tristate_value()
600 struct property *prop; in sym_string_within_range() local
609 prop = sym_get_range_prop(sym); in sym_string_within_range()
610 if (!prop) in sym_string_within_range()
613 return val >= sym_get_range_val(prop->expr->left.sym, 10) && in sym_string_within_range()
614 val <= sym_get_range_val(prop->expr->right.sym, 10); in sym_string_within_range()
618 prop = sym_get_range_prop(sym); in sym_string_within_range()
619 if (!prop) in sym_string_within_range()
622 return val >= sym_get_range_val(prop->expr->left.sym, 16) && in sym_string_within_range()
623 val <= sym_get_range_val(prop->expr->right.sym, 16); in sym_string_within_range()
698 struct property *prop; in sym_get_string_default() local
709 prop = sym_get_default_prop(sym); in sym_get_string_default()
710 if (prop != NULL) { in sym_get_string_default()
715 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri); in sym_get_string_default()
723 ds = prop_get_symbol(prop); in sym_get_string_default()
969 struct property *prop; member
1000 struct property *prop; in sym_check_print_recursive() local
1019 prop = stack->prop; in sym_check_print_recursive()
1020 if (prop == NULL) in sym_check_print_recursive()
1021 prop = stack->sym->prop; in sym_check_print_recursive()
1025 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_print_recursive()
1026 menu = prop->menu; in sym_check_print_recursive()
1027 if (prop->menu) in sym_check_print_recursive()
1033 prop->file->name, prop->lineno); in sym_check_print_recursive()
1047 prop->file->name, prop->lineno, in sym_check_print_recursive()
1052 prop->file->name, prop->lineno, in sym_check_print_recursive()
1057 prop->file->name, prop->lineno, in sym_check_print_recursive()
1062 prop->file->name, prop->lineno, in sym_check_print_recursive()
1064 prop_get_type_name(prop->type), in sym_check_print_recursive()
1068 prop->file->name, prop->lineno, in sym_check_print_recursive()
1070 prop_get_type_name(prop->type), in sym_check_print_recursive()
1122 struct property *prop; in sym_check_sym_deps() local
1144 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_sym_deps()
1145 if (prop->type == P_CHOICE || prop->type == P_SELECT || in sym_check_sym_deps()
1146 prop->type == P_IMPLY) in sym_check_sym_deps()
1148 stack.prop = prop; in sym_check_sym_deps()
1149 sym2 = sym_check_expr_deps(prop->visible.expr); in sym_check_sym_deps()
1152 if (prop->type != P_DEFAULT || sym_is_choice(sym)) in sym_check_sym_deps()
1154 stack.expr = &prop->expr; in sym_check_sym_deps()
1155 sym2 = sym_check_expr_deps(prop->expr); in sym_check_sym_deps()
1170 struct property *prop; in sym_check_choice_deps() local
1176 prop = sym_get_choice_prop(choice); in sym_check_choice_deps()
1177 expr_list_for_each_sym(prop->expr, e, sym) in sym_check_choice_deps()
1186 expr_list_for_each_sym(prop->expr, e, sym) { in sym_check_choice_deps()
1192 expr_list_for_each_sym(prop->expr, e, sym) in sym_check_choice_deps()
1207 struct property *prop; in sym_check_deps() local
1221 prop = sym_get_choice_prop(sym); in sym_check_deps()
1222 sym2 = sym_check_deps(prop_get_symbol(prop)); in sym_check_deps()
1235 struct symbol *prop_get_symbol(struct property *prop) in prop_get_symbol() argument
1237 if (prop->expr && (prop->expr->type == E_SYMBOL || in prop_get_symbol()
1238 prop->expr->type == E_LIST)) in prop_get_symbol()
1239 return prop->expr->left.sym; in prop_get_symbol()