Lines Matching defs:val

152 	return strtol(sym->curr.val, NULL, base);
158 int base, val, val2;
174 val = strtol(sym->curr.val, NULL, base);
176 if (val >= val2) {
178 if (val <= val2)
185 sym->curr.val = strdup(str);
279 def_sym = sym->def[S_DEF_USER].val;
318 sym->curr.val = sym->name;
335 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no;
382 newval.val = sym->def[S_DEF_USER].val;
392 newval.val = ds->curr.val;
402 sym->curr.val = sym_calc_choice(sym);
462 bool sym_tristate_within_range(struct symbol *sym, tristate val)
472 if (type == S_BOOLEAN && val == mod)
477 return val == yes;
478 return val >= sym->rev_dep.tri && val <= sym->visible;
481 bool sym_set_tristate_value(struct symbol *sym, tristate val)
485 if (oldval != val && !sym_tristate_within_range(sym, val))
496 if (sym_is_choice_value(sym) && val == yes) {
501 cs->def[S_DEF_USER].val = sym;
510 sym->def[S_DEF_USER].tri = val;
511 if (oldval != val)
586 int val;
597 val = strtol(str, NULL, 10);
598 return val >= sym_get_range_val(prop->expr->left.sym, 10) &&
599 val <= sym_get_range_val(prop->expr->right.sym, 10);
606 val = strtol(str, NULL, 16);
607 return val >= sym_get_range_val(prop->expr->left.sym, 16) &&
608 val <= sym_get_range_val(prop->expr->right.sym, 16);
628 char *val;
655 oldval = sym->def[S_DEF_USER].val;
659 sym->def[S_DEF_USER].val = val = malloc(size);
660 *val++ = '0';
661 *val++ = 'x';
663 sym->def[S_DEF_USER].val = val = malloc(size);
667 strcpy(val, newval);
686 tristate val;
690 val = symbol_no.curr.tri;
691 str = symbol_empty.curr.val;
700 val = EXPR_AND(expr_calc_value(prop->expr), prop->visible.tri);
711 str = (const char *)ds->curr.val;
717 val = EXPR_OR(val, sym->rev_dep.tri);
720 if (val == mod)
722 val = yes;
725 if (sym->type == S_BOOLEAN && val == mod)
726 val = yes;
731 switch (val) {
750 tristate val;
755 val = sym_get_tristate_value(sym);
756 switch (val) {
769 return (const char *)sym->curr.val;