Lines Matching +full:prop +full:-
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
102 $$->filename, $$->lineno);
144 printd(DEBUG_PARSE, "%s:%d:config %s\n", cur_filename, cur_lineno, $2->name);
150 if (!current_entry->prompt) {
152 current_entry->filename, current_entry->lineno);
156 if (current_entry->sym->type != S_BOOLEAN) {
158 current_entry->filename, current_entry->lineno);
167 if (list_empty(¤t_entry->sym->choice_link))
168 list_add_tail(¤t_entry->sym->choice_link,
169 ¤t_choice->choice_members);
178 printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", cur_filename, cur_lineno, $2->name);
183 if (current_entry->prompt)
184 current_entry->prompt->type = P_MENU;
240 current_entry->sym->name, modules_sym->name);
241 modules_sym = current_entry->sym;
252 INIT_LIST_HEAD(¤t_entry->choice_members);
259 if (!current_entry->prompt) {
261 current_entry->filename, current_entry->lineno);
409 if (current_entry->help) {
410 free(current_entry->help);
411 zconfprint("warning: '%s' defined with more than one help text -- only the last one will be used",
412 current_entry->sym->name ?: "<choice>");
418 current_entry->sym->name ?: "<choice>");
420 current_entry->help = $2;
493 * choice_check_sanity - check sanity of a choice member
497 * Return: -1 if an error is found, 0 otherwise.
501 struct property *prop; variable
504 for (prop = menu->sym->prop; prop; prop = prop->next) {
505 if (prop->type == P_DEFAULT) {
507 prop->filename, prop->lineno,
509 ret = -1;
512 if (prop->menu != menu && prop->type == P_PROMPT &&
513 prop->menu->parent != menu->parent) {
515 prop->filename, prop->lineno,
517 ret = -1;
565 if (menu->sym && sym_check_deps(menu->sym)) in conf_parse()
568 if (menu->sym && sym_is_choice(menu->sym)) { in conf_parse()
570 if (child->sym && choice_check_sanity(child)) in conf_parse()
589 if (strcmp(current_menu->filename, cur_filename)) { in zconf_endtoken()
593 current_menu->filename, current_menu->lineno, in zconf_endtoken()
636 len = p - str; in print_quoted_string()
648 struct symbol *sym = menu->sym; in print_symbol()
649 struct property *prop; in print_symbol() local
654 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol()
655 switch (sym->type) { in print_symbol()
675 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
676 if (prop->menu != menu) in print_symbol()
678 switch (prop->type) { in print_symbol()
681 print_quoted_string(out, prop->text); in print_symbol()
682 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
684 expr_fprint(prop->visible.expr, out); in print_symbol()
690 expr_fprint(prop->expr, out); in print_symbol()
691 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
693 expr_fprint(prop->visible.expr, out); in print_symbol()
699 expr_fprint(prop->expr, out); in print_symbol()
704 expr_fprint(prop->expr, out); in print_symbol()
709 expr_fprint(prop->expr, out); in print_symbol()
714 print_quoted_string(out, prop->text); in print_symbol()
718 fprintf(out, " unknown prop %d!\n", prop->type); in print_symbol()
722 if (menu->help) { in print_symbol()
723 int len = strlen(menu->help); in print_symbol()
724 while (menu->help[--len] == '\n') in print_symbol()
725 menu->help[len] = 0; in print_symbol()
726 fprintf(out, " help\n%s\n", menu->help); in print_symbol()
732 struct property *prop; in zconfdump() local
738 if ((sym = menu->sym)) in zconfdump()
740 else if ((prop = menu->prompt)) { in zconfdump()
741 switch (prop->type) { in zconfdump()
744 print_quoted_string(out, prop->text); in zconfdump()
749 print_quoted_string(out, prop->text); in zconfdump()
755 if (!expr_is_yes(prop->visible.expr)) { in zconfdump()
757 expr_fprint(prop->visible.expr, out); in zconfdump()
762 if (menu->list) in zconfdump()
763 menu = menu->list; in zconfdump()
764 else if (menu->next) in zconfdump()
765 menu = menu->next; in zconfdump()
766 else while ((menu = menu->parent)) { in zconfdump()
767 if (menu->prompt && menu->prompt->type == P_MENU) in zconfdump()
769 if (menu->next) { in zconfdump()
770 menu = menu->next; in zconfdump()