Lines Matching +full:prop +full:-
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
101 $$->filename, $$->lineno);
143 printd(DEBUG_PARSE, "%s:%d:config %s\n", cur_filename, cur_lineno, $2->name);
149 if (!current_entry->prompt) {
151 current_entry->filename, current_entry->lineno);
155 if (current_entry->sym->type != S_BOOLEAN) {
157 current_entry->filename, current_entry->lineno);
166 if (list_empty(¤t_entry->sym->choice_link))
167 list_add_tail(¤t_entry->sym->choice_link,
168 ¤t_choice->choice_members);
177 printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", cur_filename, cur_lineno, $2->name);
182 if (current_entry->prompt)
183 current_entry->prompt->type = P_MENU;
239 current_entry->sym->name, modules_sym->name);
240 modules_sym = current_entry->sym;
251 INIT_LIST_HEAD(¤t_entry->choice_members);
258 if (!current_entry->prompt) {
260 current_entry->filename, current_entry->lineno);
402 if (current_entry->help) {
403 free(current_entry->help);
405 current_entry->sym->name ?: "<choice>");
411 current_entry->sym->name ?: "<choice>");
413 current_entry->help = $2;
486 * choice_check_sanity - check sanity of a choice member
490 * Return: -1 if an error is found, 0 otherwise.
494 struct property *prop; variable
497 for (prop = menu->sym->prop; prop; prop = prop->next) {
498 if (prop->type == P_DEFAULT) {
500 prop->filename, prop->lineno,
502 ret = -1;
505 if (prop->menu != menu && prop->type == P_PROMPT &&
506 prop->menu->parent != menu->parent) {
508 prop->filename, prop->lineno,
510 ret = -1;
558 if (menu->sym && sym_check_deps(menu->sym)) in conf_parse()
561 if (menu->sym && sym_is_choice(menu->sym)) { in conf_parse()
563 if (child->sym && choice_check_sanity(child)) in conf_parse()
582 if (strcmp(current_menu->filename, cur_filename)) { in zconf_endtoken()
586 current_menu->filename, current_menu->lineno, in zconf_endtoken()
618 len = p - str; in print_quoted_string()
630 struct symbol *sym = menu->sym; in print_symbol()
631 struct property *prop; in print_symbol() local
636 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol()
637 switch (sym->type) { in print_symbol()
657 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
658 if (prop->menu != menu) in print_symbol()
660 switch (prop->type) { in print_symbol()
663 print_quoted_string(out, prop->text); in print_symbol()
664 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
666 expr_fprint(prop->visible.expr, out); in print_symbol()
672 expr_fprint(prop->expr, out); in print_symbol()
673 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
675 expr_fprint(prop->visible.expr, out); in print_symbol()
681 expr_fprint(prop->expr, out); in print_symbol()
686 expr_fprint(prop->expr, out); in print_symbol()
691 expr_fprint(prop->expr, out); in print_symbol()
696 print_quoted_string(out, prop->text); in print_symbol()
700 fprintf(out, " unknown prop %d!\n", prop->type); in print_symbol()
704 if (menu->help) { in print_symbol()
705 int len = strlen(menu->help); in print_symbol()
706 while (menu->help[--len] == '\n') in print_symbol()
707 menu->help[len] = 0; in print_symbol()
708 fprintf(out, " help\n%s\n", menu->help); in print_symbol()
714 struct property *prop; in zconfdump() local
720 if ((sym = menu->sym)) in zconfdump()
722 else if ((prop = menu->prompt)) { in zconfdump()
723 switch (prop->type) { in zconfdump()
726 print_quoted_string(out, prop->text); in zconfdump()
731 print_quoted_string(out, prop->text); in zconfdump()
737 if (!expr_is_yes(prop->visible.expr)) { in zconfdump()
739 expr_fprint(prop->visible.expr, out); in zconfdump()
744 if (menu->list) in zconfdump()
745 menu = menu->list; in zconfdump()
746 else if (menu->next) in zconfdump()
747 menu = menu->next; in zconfdump()
748 else while ((menu = menu->parent)) { in zconfdump()
749 if (menu->prompt && menu->prompt->type == P_MENU) in zconfdump()
751 if (menu->next) { in zconfdump()
752 menu = menu->next; in zconfdump()