• Home
  • Raw
  • Download

Lines Matching refs:newval

265 	struct symbol_value newval, oldval;  in sym_calc_value()  local
282 newval = symbol_empty.curr; in sym_calc_value()
286 newval = symbol_no.curr; in sym_calc_value()
299 sym->curr = newval; in sym_calc_value()
306 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no; in sym_calc_value()
310 newval.tri = sym->def[S_DEF_USER].tri; in sym_calc_value()
314 newval.tri = expr_calc_value(prop->expr); in sym_calc_value()
316 newval.tri = E_OR(E_AND(newval.tri, sym->visible), sym->rev_dep.tri); in sym_calc_value()
321 newval.tri = expr_calc_value(prop->expr); in sym_calc_value()
324 if (newval.tri == mod && sym_get_type(sym) == S_BOOLEAN) in sym_calc_value()
325 newval.tri = yes; in sym_calc_value()
333 newval.val = sym->def[S_DEF_USER].val; in sym_calc_value()
343 newval.val = ds->curr.val; in sym_calc_value()
351 sym->curr = newval; in sym_calc_value()
352 if (sym_is_choice(sym) && newval.tri == yes) in sym_calc_value()
464 tristate oldval, newval; in sym_toggle_tristate_value() local
466 oldval = newval = sym_get_tristate_value(sym); in sym_toggle_tristate_value()
468 switch (newval) { in sym_toggle_tristate_value()
470 newval = mod; in sym_toggle_tristate_value()
473 newval = yes; in sym_toggle_tristate_value()
476 newval = no; in sym_toggle_tristate_value()
479 if (sym_set_tristate_value(sym, newval)) in sym_toggle_tristate_value()
481 } while (oldval != newval); in sym_toggle_tristate_value()
482 return newval; in sym_toggle_tristate_value()
570 bool sym_set_string_value(struct symbol *sym, const char *newval) in sym_set_string_value() argument
579 switch (newval[0]) { in sym_set_string_value()
592 if (!sym_string_within_range(sym, newval)) in sym_set_string_value()
601 size = strlen(newval) + 1; in sym_set_string_value()
602 if (sym->type == S_HEX && (newval[0] != '0' || (newval[1] != 'x' && newval[1] != 'X'))) { in sym_set_string_value()
607 } else if (!oldval || strcmp(oldval, newval)) in sym_set_string_value()
612 strcpy(val, newval); in sym_set_string_value()