Lines Matching refs:val
119 return strtoll(sym->curr.val, NULL, base); in sym_get_range_val()
127 long long val, val2; in sym_validate_range() local
142 val = strtoll(sym->curr.val, NULL, base); in sym_validate_range()
145 if (val >= val2) { in sym_validate_range()
148 if (val <= val2) in sym_validate_range()
151 sym->curr.val = range_sym->curr.val; in sym_validate_range()
288 def_sym = sym->def[S_DEF_USER].val; in sym_calc_choice()
356 sym->curr.val = sym->name; in sym_calc_value()
375 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
416 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
425 newval.val = ds->curr.val; in sym_calc_value()
435 sym->curr.val = sym_calc_choice(sym); in sym_calc_value()
477 bool sym_tristate_within_range(struct symbol *sym, tristate val) in sym_tristate_within_range() argument
487 if (type == S_BOOLEAN && val == mod) in sym_tristate_within_range()
492 return val == yes; in sym_tristate_within_range()
493 return val >= sym->rev_dep.tri && val <= sym->visible; in sym_tristate_within_range()
496 bool sym_set_tristate_value(struct symbol *sym, tristate val) in sym_set_tristate_value() argument
500 if (oldval != val && !sym_tristate_within_range(sym, val)) in sym_set_tristate_value()
511 if (sym_is_choice_value(sym) && val == yes) { in sym_set_tristate_value()
516 cs->def[S_DEF_USER].val = sym; in sym_set_tristate_value()
525 sym->def[S_DEF_USER].tri = val; in sym_set_tristate_value()
526 if (oldval != val) in sym_set_tristate_value()
601 long long val; in sym_string_within_range() local
612 val = strtoll(str, NULL, 10); 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()
621 val = strtoll(str, NULL, 16); 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()
643 char *val; in sym_set_string_value() local
670 oldval = sym->def[S_DEF_USER].val; in sym_set_string_value()
674 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
675 *val++ = '0'; in sym_set_string_value()
676 *val++ = 'x'; in sym_set_string_value()
678 sym->def[S_DEF_USER].val = val = xmalloc(size); in sym_set_string_value()
682 strcpy(val, newval); in sym_set_string_value()
701 tristate val; in sym_get_string_default() local
705 val = symbol_no.curr.tri; in sym_get_string_default()
706 str = symbol_empty.curr.val; in sym_get_string_default()
715 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri); in sym_get_string_default()
726 str = (const char *)ds->curr.val; in sym_get_string_default()
732 val = EXPR_OR(val, sym->rev_dep.tri); in sym_get_string_default()
735 if (val == mod) in sym_get_string_default()
737 val = yes; in sym_get_string_default()
740 if (sym->type == S_BOOLEAN && val == mod) in sym_get_string_default()
741 val = yes; in sym_get_string_default()
744 if (val < sym->implied.tri) in sym_get_string_default()
745 val = sym->implied.tri; in sym_get_string_default()
750 switch (val) { in sym_get_string_default()
768 tristate val; in sym_get_string_value() local
773 val = sym_get_tristate_value(sym); in sym_get_string_value()
774 switch (val) { in sym_get_string_value()
787 return (const char *)sym->curr.val; in sym_get_string_value()