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