···167167 P_COMMENT, /* text associated with a comment */168168 P_MENU, /* prompt associated with a menu or menuconfig symbol */169169 P_DEFAULT, /* default y */170170- P_CHOICE, /* choice value */171170 P_SELECT, /* select BAR */172171 P_IMPLY, /* imply BAR */173172 P_RANGE, /* range 7..100 (for a symbol) */···180181 struct expr_value visible;181182 struct expr *expr; /* the optional conditional part of the property */182183 struct menu *menu; /* the menu the property are associated with183183- * valid for: P_SELECT, P_RANGE, P_CHOICE,184184+ * valid for: P_SELECT, P_RANGE,184185 * P_PROMPT, P_DEFAULT, P_MENU, P_COMMENT */185186 const char *filename; /* what file was this property defined */186187 int lineno; /* what lineno was this property defined */···190191 for (st = sym->prop; st; st = st->next) \191192 if (st->type == (tok))192193#define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT)193193-#define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE)194194#define for_all_prompts(sym, st) \195195 for (st = sym->prop; st; st = st->next) \196196 if (st->text)
-1
scripts/kconfig/lkc_proto.h
···3434bool sym_string_within_range(struct symbol *sym, const char *str);3535bool sym_set_string_value(struct symbol *sym, const char *newval);3636bool sym_is_changeable(struct symbol *sym);3737-struct property * sym_get_choice_prop(struct symbol *sym);3837struct menu *sym_get_choice_menu(struct symbol *sym);3938const char * sym_get_string_value(struct symbol *sym);4039
+1-8
scripts/kconfig/menu.c
···306306 struct menu *menu, *last_menu;307307 struct symbol *sym;308308 struct property *prop;309309- struct expr *parentdep, *basedep, *dep, *dep2, **ep;309309+ struct expr *parentdep, *basedep, *dep, *dep2;310310311311 sym = parent->sym;312312 if (parent->list) {···490490 for (menu = parent->list; menu; menu = menu->next) {491491 if (sym && sym_is_choice(sym) &&492492 menu->sym && !sym_is_choice_value(menu->sym)) {493493- current_entry = menu;494493 menu->sym->flags |= SYMBOL_CHOICEVAL;495495- menu_add_symbol(P_CHOICE, sym, NULL);496496- prop = sym_get_choice_prop(sym);497497- for (ep = &prop->expr; *ep; ep = &(*ep)->left.expr)498498- ;499499- *ep = expr_alloc_one(E_LIST, NULL);500500- (*ep)->right.sym = menu->sym;501494 }502495503496 /*