Lines Matching refs:prop
78 struct property *prop; in sym_get_choice_prop() local
80 for_all_choices(sym, prop) in sym_get_choice_prop()
81 return prop; in sym_get_choice_prop()
87 struct property *prop; in sym_get_default_prop() local
89 for_all_defaults(sym, prop) { in sym_get_default_prop()
90 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_default_prop()
91 if (prop->visible.tri != no) in sym_get_default_prop()
92 return prop; in sym_get_default_prop()
99 struct property *prop; in sym_get_range_prop() local
101 for_all_properties(sym, prop, P_RANGE) { in sym_get_range_prop()
102 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_get_range_prop()
103 if (prop->visible.tri != no) in sym_get_range_prop()
104 return prop; in sym_get_range_prop()
127 struct property *prop; in sym_validate_range() local
142 prop = sym_get_range_prop(sym); in sym_validate_range()
143 if (!prop) in sym_validate_range()
146 range_sym = prop->expr->left.sym; in sym_validate_range()
149 range_sym = prop->expr->right.sym; in sym_validate_range()
159 struct property *prop; in sym_set_changed() local
162 for (prop = sym->prop; prop; prop = prop->next) { in sym_set_changed()
163 if (prop->menu) in sym_set_changed()
164 prop->menu->flags |= MENU_CHANGED; in sym_set_changed()
179 struct property *prop; in sym_calc_visibility() local
189 for_all_prompts(sym, prop) { in sym_calc_visibility()
190 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_calc_visibility()
197 prop->visible.tri == mod && choice_sym->curr.tri == yes) in sym_calc_visibility()
198 prop->visible.tri = no; in sym_calc_visibility()
200 tri = EXPR_OR(tri, prop->visible.tri); in sym_calc_visibility()
249 struct property *prop; in sym_choice_default() local
253 for_all_defaults(sym, prop) { in sym_choice_default()
254 prop->visible.tri = expr_calc_value(prop->visible.expr); in sym_choice_default()
255 if (prop->visible.tri == no) in sym_choice_default()
257 def_sym = prop_get_symbol(prop); in sym_choice_default()
263 prop = sym_get_choice_prop(sym); in sym_choice_default()
264 expr_list_for_each_sym(prop->expr, e, def_sym) in sym_choice_default()
275 struct property *prop; in sym_calc_choice() local
281 prop = sym_get_choice_prop(sym); in sym_calc_choice()
282 expr_list_for_each_sym(prop->expr, e, def_sym) { in sym_calc_choice()
328 struct property *prop; in sym_calc_value() local
340 prop = sym_get_choice_prop(sym); in sym_calc_value()
341 sym_calc_value(prop_get_symbol(prop)); in sym_calc_value()
377 prop = sym_get_choice_prop(sym); in sym_calc_value()
378 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
393 prop = sym_get_default_prop(sym); in sym_calc_value()
394 if (prop) { in sym_calc_value()
395 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
396 prop->visible.tri); in sym_calc_value()
422 prop = sym_get_default_prop(sym); in sym_calc_value()
423 if (prop) { in sym_calc_value()
424 struct symbol *ds = prop_get_symbol(prop); in sym_calc_value()
452 prop = sym_get_choice_prop(sym); in sym_calc_value()
453 expr_list_for_each_sym(prop->expr, e, choice_sym) { in sym_calc_value()
516 struct property *prop; in sym_set_tristate_value() local
521 prop = sym_get_choice_prop(cs); in sym_set_tristate_value()
522 for (e = prop->expr; e; e = e->left.expr) { in sym_set_tristate_value()
603 struct property *prop; in sym_string_within_range() local
612 prop = sym_get_range_prop(sym); in sym_string_within_range()
613 if (!prop) in sym_string_within_range()
616 return val >= sym_get_range_val(prop->expr->left.sym, 10) && in sym_string_within_range()
617 val <= sym_get_range_val(prop->expr->right.sym, 10); in sym_string_within_range()
621 prop = sym_get_range_prop(sym); in sym_string_within_range()
622 if (!prop) in sym_string_within_range()
625 return val >= sym_get_range_val(prop->expr->left.sym, 16) && in sym_string_within_range()
626 val <= sym_get_range_val(prop->expr->right.sym, 16); in sym_string_within_range()
701 struct property *prop; in sym_get_string_default() local
712 prop = sym_get_default_prop(sym); in sym_get_string_default()
713 if (prop != NULL) { in sym_get_string_default()
718 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri); in sym_get_string_default()
726 ds = prop_get_symbol(prop); in sym_get_string_default()
971 struct property *prop; member
1002 struct property *prop; in sym_check_print_recursive() local
1021 prop = stack->prop; in sym_check_print_recursive()
1022 if (prop == NULL) in sym_check_print_recursive()
1023 prop = stack->sym->prop; in sym_check_print_recursive()
1027 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_print_recursive()
1028 menu = prop->menu; in sym_check_print_recursive()
1029 if (prop->menu) in sym_check_print_recursive()
1035 prop->file->name, prop->lineno); in sym_check_print_recursive()
1049 prop->file->name, prop->lineno, in sym_check_print_recursive()
1054 prop->file->name, prop->lineno, in sym_check_print_recursive()
1059 prop->file->name, prop->lineno, in sym_check_print_recursive()
1064 prop->file->name, prop->lineno, in sym_check_print_recursive()
1066 prop_get_type_name(prop->type), in sym_check_print_recursive()
1070 prop->file->name, prop->lineno, in sym_check_print_recursive()
1072 prop_get_type_name(prop->type), in sym_check_print_recursive()
1124 struct property *prop; in sym_check_sym_deps() local
1146 for (prop = sym->prop; prop; prop = prop->next) { in sym_check_sym_deps()
1147 if (prop->type == P_CHOICE || prop->type == P_SELECT || in sym_check_sym_deps()
1148 prop->type == P_IMPLY) in sym_check_sym_deps()
1150 stack.prop = prop; in sym_check_sym_deps()
1151 sym2 = sym_check_expr_deps(prop->visible.expr); in sym_check_sym_deps()
1154 if (prop->type != P_DEFAULT || sym_is_choice(sym)) in sym_check_sym_deps()
1156 stack.expr = &prop->expr; in sym_check_sym_deps()
1157 sym2 = sym_check_expr_deps(prop->expr); in sym_check_sym_deps()
1172 struct property *prop; in sym_check_choice_deps() local
1178 prop = sym_get_choice_prop(choice); in sym_check_choice_deps()
1179 expr_list_for_each_sym(prop->expr, e, sym) in sym_check_choice_deps()
1188 expr_list_for_each_sym(prop->expr, e, sym) { in sym_check_choice_deps()
1194 expr_list_for_each_sym(prop->expr, e, sym) in sym_check_choice_deps()
1209 struct property *prop; in sym_check_deps() local
1223 prop = sym_get_choice_prop(sym); in sym_check_deps()
1224 sym2 = sym_check_deps(prop_get_symbol(prop)); in sym_check_deps()
1237 struct symbol *prop_get_symbol(struct property *prop) in prop_get_symbol() argument
1239 if (prop->expr && (prop->expr->type == E_SYMBOL || in prop_get_symbol()
1240 prop->expr->type == E_LIST)) in prop_get_symbol()
1241 return prop->expr->left.sym; in prop_get_symbol()