Lines Matching refs:type

18 struct menu rootmenu = { .type = M_MENU };
68 void menu_add_entry(struct symbol *sym, enum menu_type type) in menu_add_entry() argument
74 menu->type = type; in menu_add_entry()
109 switch (e->type) { in rewrite_m()
115 e = expr_alloc_two(e->type, in rewrite_m()
135 void menu_set_type(int type) in menu_set_type() argument
139 if (sym->type == type) in menu_set_type()
141 if (sym->type == S_UNKNOWN) { in menu_set_type()
142 sym->type = type; in menu_set_type()
148 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
151 static struct property *menu_add_prop(enum prop_type type, struct expr *expr, in menu_add_prop() argument
158 prop->type = type; in menu_add_prop()
179 struct property *menu_add_prompt(enum prop_type type, const char *prompt, in menu_add_prompt() argument
182 struct property *prop = menu_add_prop(type, NULL, dep); in menu_add_prompt()
193 if (type == P_PROMPT) { in menu_add_prompt()
217 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep) in menu_add_expr() argument
219 menu_add_prop(type, expr, dep); in menu_add_expr()
222 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep) in menu_add_symbol() argument
224 menu_add_prop(type, expr_alloc_symbol(sym), dep); in menu_add_symbol()
229 return sym2->type == S_INT || sym2->type == S_HEX || in menu_validate_number()
230 (sym2->type == S_UNKNOWN && sym_string_valid(sym, sym2->name)); in menu_validate_number()
240 switch (prop->type) { in sym_check_prop()
242 if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && in sym_check_prop()
243 prop->expr->type != E_SYMBOL) in sym_check_prop()
247 if (prop->expr->type != E_SYMBOL) in sym_check_prop()
250 if (sym->type == S_HEX || sym->type == S_INT) { in sym_check_prop()
267 use = prop->type == P_SELECT ? "select" : "imply"; in sym_check_prop()
269 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) in sym_check_prop()
273 else if (sym2->type != S_UNKNOWN && in sym_check_prop()
274 sym2->type != S_BOOLEAN && in sym_check_prop()
275 sym2->type != S_TRISTATE) in sym_check_prop()
282 if (sym->type != S_INT && sym->type != S_HEX) in sym_check_prop()
369 if (prop->type == P_SELECT) { in _menu_finalize()
373 } else if (prop->type == P_IMPLY) { in _menu_finalize()
498 if (sym->type == S_UNKNOWN) in _menu_finalize()
586 if (menu->type == M_MENU) in menu_get_parent_menu()
600 enum prop_type type; in menu_get_menu_or_parent_menu() local
603 type = menu->prompt ? menu->prompt->type : 0; in menu_get_menu_or_parent_menu()
604 if (type == P_MENU) in menu_get_menu_or_parent_menu()
720 str_printf(r, "Type : %s\n", sym_type_name(sym->type)); in get_symbol_str()
721 if (sym->type == S_INT || sym->type == S_HEX) { in get_symbol_str()
817 switch (menu->type) { in menu_dump()