• Home
  • Raw
  • Download

Lines Matching refs:newval

329 	struct symbol_value newval, oldval;  in sym_calc_value()  local
354 newval = symbol_empty.curr; in sym_calc_value()
358 newval = symbol_no.curr; in sym_calc_value()
371 sym->curr = newval; in sym_calc_value()
378 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
386 newval.tri = EXPR_AND(sym->def[S_DEF_USER].tri, in sym_calc_value()
397 newval.tri = EXPR_AND(expr_calc_value(prop->expr), in sym_calc_value()
414 newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); in sym_calc_value()
416 if (newval.tri == mod && sym_get_type(sym) == S_BOOLEAN) in sym_calc_value()
417 newval.tri = yes; in sym_calc_value()
425 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
435 newval.val = ds->curr.val; in sym_calc_value()
443 sym->curr = newval; in sym_calc_value()
444 if (sym_is_choice(sym) && newval.tri == yes) in sym_calc_value()
544 tristate oldval, newval; in sym_toggle_tristate_value() local
546 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value()
548 switch (newval) { in sym_toggle_tristate_value()
550 newval = mod; in sym_toggle_tristate_value()
553 newval = yes; in sym_toggle_tristate_value()
556 newval = no; in sym_toggle_tristate_value()
559 if (sym_set_tristate_value(sym, newval)) in sym_toggle_tristate_value()
561 } while (oldval != newval); in sym_toggle_tristate_value()
562 return newval; in sym_toggle_tristate_value()
650 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value() argument
659 switch (newval[0]) { in sym_set_string_value()
672 if (!sym_string_within_range(sym, newval)) in sym_set_string_value()
681 size = strlen(newval) + 1; in sym_set_string_value()
682 if (sym->type == S_HEX && (newval[0] != '0' || (newval[1] != 'x' && newval[1] != 'X'))) { in sym_set_string_value()
687 } else if (!oldval || strcmp(oldval, newval)) in sym_set_string_value()
692 strcpy(val, newval); in sym_set_string_value()