Lines Matching refs:newval

324 	struct symbol_value newval, oldval;  in sym_calc_value()  local
349 newval = symbol_empty.curr; in sym_calc_value()
353 newval = symbol_no.curr; in sym_calc_value()
368 sym->curr = newval; in sym_calc_value()
375 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
382 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
392 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
394 if (newval.tri != no) in sym_calc_value()
399 newval.tri = EXPR_OR(newval.tri, sym->implied.tri); in sym_calc_value()
400 newval.tri = EXPR_AND(newval.tri, in sym_calc_value()
407 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
409 if (newval.tri == mod && sym_get_type(sym) == S_BOOLEAN) in sym_calc_value()
410 newval.tri = yes; 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()
433 sym->curr = newval; in sym_calc_value()
434 if (sym_is_choice(sym) && newval.tri == yes) in sym_calc_value()
534 tristate oldval, newval; in sym_toggle_tristate_value() local
536 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value()
538 switch (newval) { in sym_toggle_tristate_value()
540 newval = mod; in sym_toggle_tristate_value()
543 newval = yes; in sym_toggle_tristate_value()
546 newval = no; in sym_toggle_tristate_value()
549 if (sym_set_tristate_value(sym, newval)) in sym_toggle_tristate_value()
551 } while (oldval != newval); in sym_toggle_tristate_value()
552 return newval; in sym_toggle_tristate_value()
640 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value() argument
649 switch (newval[0]) { in sym_set_string_value()
662 if (!sym_string_within_range(sym, newval)) in sym_set_string_value()
671 size = strlen(newval) + 1; in sym_set_string_value()
672 if (sym->type == S_HEX && (newval[0] != '0' || (newval[1] != 'x' && newval[1] != 'X'))) { in sym_set_string_value()
677 } else if (!oldval || strcmp(oldval, newval)) in sym_set_string_value()
682 strcpy(val, newval); in sym_set_string_value()