Lines Matching refs:newval
359 struct symbol_value newval, oldval; in sym_calc_value() local
384 newval = symbol_empty.curr; in sym_calc_value()
388 newval = symbol_no.curr; in sym_calc_value()
403 sym->curr = newval; in sym_calc_value()
410 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
417 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
427 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
429 if (newval.tri != no) in sym_calc_value()
434 newval.tri = EXPR_OR(newval.tri, sym->implied.tri); in sym_calc_value()
440 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
442 if (newval.tri == mod && in sym_calc_value()
444 newval.tri = yes; in sym_calc_value()
450 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
459 newval.val = ds->curr.val; in sym_calc_value()
467 sym->curr = newval; in sym_calc_value()
468 if (sym_is_choice(sym) && newval.tri == yes) in sym_calc_value()
570 tristate oldval, newval; in sym_toggle_tristate_value() local
572 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value()
574 switch (newval) { in sym_toggle_tristate_value()
576 newval = mod; in sym_toggle_tristate_value()
579 newval = yes; in sym_toggle_tristate_value()
582 newval = no; in sym_toggle_tristate_value()
585 if (sym_set_tristate_value(sym, newval)) in sym_toggle_tristate_value()
587 } while (oldval != newval); in sym_toggle_tristate_value()
588 return newval; in sym_toggle_tristate_value()
676 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value() argument
685 switch (newval[0]) { in sym_set_string_value()
698 if (!sym_string_within_range(sym, newval)) in sym_set_string_value()
707 size = strlen(newval) + 1; in sym_set_string_value()
708 if (sym->type == S_HEX && (newval[0] != '0' || (newval[1] != 'x' && newval[1] != 'X'))) { in sym_set_string_value()
713 } else if (!oldval || strcmp(oldval, newval)) in sym_set_string_value()
718 strcpy(val, newval); in sym_set_string_value()