Lines Matching refs:type
58 sym->type = S_STRING; in sym_init()
65 sym->type = S_STRING; in sym_init()
72 sym->type = S_STRING; in sym_init()
79 enum symbol_type type = sym->type; in sym_get_type() local
81 if (type == S_TRISTATE) { in sym_get_type()
83 type = S_BOOLEAN; in sym_get_type()
85 type = S_BOOLEAN; in sym_get_type()
87 return type; in sym_get_type()
90 const char *sym_type_name(enum symbol_type type) in sym_type_name() argument
92 switch (type) { in sym_type_name()
147 switch (sym->type) { in sym_get_range_val()
166 switch (sym->type) { in sym_validate_range()
186 if (sym->type == S_INT) in sym_validate_range()
204 if (tri == mod && (sym->type != S_TRISTATE || modules_val == no)) in sym_calc_visibility()
277 switch (sym->type) { in sym_calc_value()
405 int type = sym_get_type(sym); in sym_tristate_within_range() local
410 if (type != S_BOOLEAN && type != S_TRISTATE) in sym_tristate_within_range()
413 if (type == S_BOOLEAN && val == mod) in sym_tristate_within_range()
488 switch (sym->type) { in sym_string_valid()
532 switch (sym->type) { in sym_string_within_range()
575 switch (sym->type) { in sym_set_string_value()
601 if (sym->type == S_HEX && (newval[0] != '0' || (newval[1] != 'x' && newval[1] != 'X'))) { in sym_set_string_value()
622 switch (sym->type) { in sym_get_string_value()
681 symbol->type = S_UNKNOWN; in sym_lookup()
766 switch (e->type) { in sym_check_expr_deps()
786 printf("Oops! How to check %d?\n", e->type); in sym_check_expr_deps()
808 if (prop->type == P_CHOICE || prop->type == P_SELECT) in sym_check_deps()
813 if (prop->type != P_DEFAULT || sym_is_choice(sym)) in sym_check_deps()
831 struct property *prop_alloc(enum prop_type type, struct symbol *sym) in prop_alloc() argument
838 prop->type = type; in prop_alloc()
855 if (prop->expr && (prop->expr->type == E_SYMBOL || in prop_get_symbol()
856 prop->expr->type == E_CHOICE)) in prop_get_symbol()
861 const char *prop_get_type_name(enum prop_type type) in prop_get_type_name() argument
863 switch (type) { in prop_get_type_name()