Lines Matching refs:type
86 switch (e->type) { in rewrite_m()
111 void menu_set_type(int type) in menu_set_type() argument
115 if (sym->type == type) in menu_set_type()
117 if (sym->type == S_UNKNOWN) { in menu_set_type()
118 sym->type = type; in menu_set_type()
124 sym_type_name(sym->type), sym_type_name(type)); in menu_set_type()
127 static struct property *menu_add_prop(enum prop_type type, char *prompt, struct expr *expr, struct … in menu_add_prop() argument
129 struct property *prop = prop_alloc(type, current_entry->sym); in menu_add_prop()
145 if(type == P_PROMPT) { in menu_add_prop()
177 struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep) in menu_add_prompt() argument
179 return menu_add_prop(type, prompt, NULL, dep); in menu_add_prompt()
188 void menu_add_expr(enum prop_type type, struct expr *expr, struct expr *dep) in menu_add_expr() argument
190 menu_add_prop(type, NULL, expr, dep); in menu_add_expr()
193 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep) in menu_add_symbol() argument
195 menu_add_prop(type, NULL, expr_alloc_symbol(sym), dep); in menu_add_symbol()
222 return sym2->type == S_INT || sym2->type == S_HEX || in menu_validate_number()
223 (sym2->type == S_UNKNOWN && sym_string_valid(sym, sym2->name)); in menu_validate_number()
233 switch (prop->type) { in sym_check_prop()
235 if ((sym->type == S_STRING || sym->type == S_INT || sym->type == S_HEX) && in sym_check_prop()
236 prop->expr->type != E_SYMBOL) in sym_check_prop()
240 if (prop->expr->type != E_SYMBOL) in sym_check_prop()
243 if (sym->type == S_HEX || sym->type == S_INT) { in sym_check_prop()
262 use = prop->type == P_SELECT ? "select" : "imply"; in sym_check_prop()
264 if (sym->type != S_BOOLEAN && sym->type != S_TRISTATE) in sym_check_prop()
268 else if (sym2->type != S_UNKNOWN && in sym_check_prop()
269 sym2->type != S_BOOLEAN && in sym_check_prop()
270 sym2->type != S_TRISTATE) in sym_check_prop()
277 if (sym->type != S_INT && sym->type != S_HEX) in sym_check_prop()
305 if (sym->type == S_UNKNOWN) { in menu_finalize()
309 if (menu->sym && menu->sym->type != S_UNKNOWN) { in menu_finalize()
310 menu_set_type(menu->sym->type); in menu_finalize()
318 if (menu->sym && menu->sym->type == S_UNKNOWN) in menu_finalize()
319 menu_set_type(sym->type); in menu_finalize()
390 if (menu->sym && menu->sym->type != S_TRISTATE) in menu_finalize()
398 if (prop->type == P_SELECT) { in menu_finalize()
402 } else if (prop->type == P_IMPLY) { in menu_finalize()
500 if (prop->type == P_DEFAULT) in menu_finalize()
505 if (prop->type == P_PROMPT && in menu_finalize()
515 if (sym->type == S_TRISTATE && menu->sym->type != S_TRISTATE) { in menu_finalize()
574 if (sym->type == S_UNKNOWN) in menu_finalize()
678 enum prop_type type; in menu_get_parent_menu() local
681 type = menu->prompt ? menu->prompt->type : 0; in menu_get_parent_menu()
682 if (type == P_MENU) in menu_get_parent_menu()
799 str_printf(r, "Type : %s\n", sym_type_name(sym->type)); in get_symbol_str()
800 if (sym->type == S_INT || sym->type == S_HEX) { in get_symbol_str()