Lines Matching refs:type
82 switch (e->type) { in menu_check_dep()
107 void menu_set_type(int type) in menu_set_type() argument
111 if (sym->type == type) in menu_set_type()
113 if (sym->type == S_UNKNOWN) { in menu_set_type()
114 sym->type = type; in menu_set_type()
119 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
122 struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct expr *d… in menu_add_prop() argument
124 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop()
140 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) in menu_add_prompt() argument
142 return menu_add_prop(type, prompt, NULL, dep); in menu_add_prompt()
145 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep) in menu_add_expr() argument
147 menu_add_prop(type, NULL, expr, dep); in menu_add_expr()
150 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep) in menu_add_symbol() argument
152 menu_add_prop(type, NULL, expr_alloc_symbol(sym), dep); in menu_add_symbol()
157 return sym2->type == S_INT || sym2->type == S_HEX || in menu_range_valid_sym()
158 (sym2->type == S_UNKNOWN && sym_string_valid(sym, sym2->name)); in menu_range_valid_sym()
166 switch (prop->type) { in sym_check_prop()
168 if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && in sym_check_prop()
169 prop->expr->type != E_SYMBOL) in sym_check_prop()
176 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) in sym_check_prop()
180 else if (sym2->type == S_UNKNOWN) in sym_check_prop()
185 else if (sym2->type != S_BOOLEAN && sym2->type != S_TRISTATE) in sym_check_prop()
192 if (sym->type != S_INT && sym->type != S_HEX) in sym_check_prop()
219 menu_set_type(menu->sym->type); in menu_finalize()
221 menu_set_type(sym->type); in menu_finalize()
246 if (menu->sym && menu->sym->type != S_TRISTATE) in menu_finalize()
249 if (prop->type == P_SELECT) { in menu_finalize()
296 if (prop->type == P_PROMPT && prop->menu != menu) { in menu_finalize()
301 if (prop->type == P_DEFAULT) in menu_finalize()
306 menu_set_type(sym->type); in menu_finalize()
327 if (sym->type == S_UNKNOWN) in menu_finalize()
388 enum prop_type type; in menu_get_parent_menu() local
391 type = menu->prompt ? menu->prompt->type : 0; in menu_get_parent_menu()
392 if (type == P_MENU) in menu_get_parent_menu()