Lines Matching refs:val

153 	return strtol(sym->curr.val, NULL, base);
159 int base, val, val2;
175 val = strtol(sym->curr.val, NULL, base);
177 if (val >= val2) {
179 if (val <= val2)
186 sym->curr.val = strdup(str);
273 def_sym = sym->def[S_DEF_USER].val;
312 sym->curr.val = sym->name;
329 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no;
376 newval.val = sym->def[S_DEF_USER].val;
386 newval.val = ds->curr.val;
396 sym->curr.val = sym_calc_choice(sym);
456 bool sym_tristate_within_range(struct symbol *sym, tristate val)
466 if (type == S_BOOLEAN && val == mod)
471 return val == yes;
472 return val >= sym->rev_dep.tri && val <= sym->visible;
475 bool sym_set_tristate_value(struct symbol *sym, tristate val)
479 if (oldval != val && !sym_tristate_within_range(sym, val))
490 if (sym_is_choice_value(sym) && val == yes) {
495 cs->def[S_DEF_USER].val = sym;
504 sym->def[S_DEF_USER].tri = val;
505 if (oldval != val)
580 int val;
591 val = strtol(str, NULL, 10);
592 return val >= sym_get_range_val(prop->expr->left.sym, 10) &&
593 val <= sym_get_range_val(prop->expr->right.sym, 10);
600 val = strtol(str, NULL, 16);
601 return val >= sym_get_range_val(prop->expr->left.sym, 16) &&
602 val <= sym_get_range_val(prop->expr->right.sym, 16);
622 char *val;
649 oldval = sym->def[S_DEF_USER].val;
653 sym->def[S_DEF_USER].val = val = malloc(size);
654 *val++ = '0';
655 *val++ = 'x';
657 sym->def[S_DEF_USER].val = val = malloc(size);
661 strcpy(val, newval);
680 tristate val;
684 val = symbol_no.curr.tri;
685 str = symbol_empty.curr.val;
694 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri);
705 str = (const char *)ds->curr.val;
711 val = EXPR_OR(val, sym->rev_dep.tri);
714 if (val == mod)
716 val = yes;
719 if (sym->type == S_BOOLEAN && val == mod)
720 val = yes;
725 switch (val) {
744 tristate val;
749 val = sym_get_tristate_value(sym);
750 switch (val) {
762 return (const char *)sym->curr.val;