Lines Matching refs:val
160 return strtol(sym->curr.val, NULL, base);
166 int base, val, val2;
182 val = strtol(sym->curr.val, NULL, base);
184 if (val >= val2) {
186 if (val <= val2)
193 sym->curr.val = strdup(str);
233 def_sym = sym->def[S_DEF_USER].val;
291 sym->curr.val = sym->name;
308 newval.tri = (prop_get_symbol(prop)->curr.val == sym) ? yes : no;
335 newval.val = sym->def[S_DEF_USER].val;
345 newval.val = ds->curr.val;
355 sym->curr.val = sym_calc_choice(sym);
409 bool sym_tristate_within_range(struct symbol *sym, tristate val)
419 if (type == S_BOOLEAN && val == mod)
424 return val == yes;
425 return val >= sym->rev_dep.tri && val <= sym->visible;
428 bool sym_set_tristate_value(struct symbol *sym, tristate val)
432 if (oldval != val && !sym_tristate_within_range(sym, val))
443 if (sym_is_choice_value(sym) && val == yes) {
448 cs->def[S_DEF_USER].val = sym;
457 sym->def[S_DEF_USER].tri = val;
458 if (oldval != val)
533 int val;
544 val = strtol(str, NULL, 10);
545 return val >= sym_get_range_val(prop->expr->left.sym, 10) &&
546 val <= sym_get_range_val(prop->expr->right.sym, 10);
553 val = strtol(str, NULL, 16);
554 return val >= sym_get_range_val(prop->expr->left.sym, 16) &&
555 val <= sym_get_range_val(prop->expr->right.sym, 16);
575 char *val;
602 oldval = sym->def[S_DEF_USER].val;
606 sym->def[S_DEF_USER].val = val = malloc(size);
607 *val++ = '0';
608 *val++ = 'x';
610 sym->def[S_DEF_USER].val = val = malloc(size);
614 strcpy(val, newval);
623 tristate val;
628 val = sym_get_tristate_value(sym);
629 switch (val) {
641 return (const char *)sym->curr.val;