Lines Matching +full:0 +full:- +full:latest

3 /* Bison implementation for Yacc-like parsers in C
5 Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
34 simplifying the original so-called "semantic" parser. */
53 #define YYPURE 0
56 #define YYPUSH 0
76 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
77 * Released under the terms of the GNU GPL v2.0.
91 #define PRINTD 0x0001
92 #define DEBUG_PARSE 0x0002
113 # define YY_NULLPTR 0
122 # define YYERROR_VERBOSE 0
297 #define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
303 # define YY_(Msgid) dgettext ("bison-runtime", Msgid)
314 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
338 /* Suppress unused-variable warnings by "using" E. */
349 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
350 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
386 # define EXIT_SUCCESS 0
394 /* Pacify GCC's 'empty if-body' warning. */
395 # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
400 to allow for a few compiler-allocated temporary stack slots. */
414 # define EXIT_SUCCESS 0
445 # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
464 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
465 Stack = &yyptr->Stack_alloc; \
469 while (0)
485 for (yyi = 0; yyi < (Count); yyi++) \
488 while (0)
493 /* YYFINAL -- State number of the termination state. */
495 /* YYLAST -- Last index in YYTABLE. */
498 /* YYNTOKENS -- Number of terminals. */
500 /* YYNNTS -- Number of nonterminals. */
502 /* YYNRULES -- Number of rules. */
504 /* YYNSTATES -- Number of states. */
507 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
508 by yylex, with out-of-bounds checking. */
515 /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
516 as returned by yylex, without out-of-bounds checking. */
519 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
552 /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
555 0, 109, 109, 109, 111, 111, 113, 115, 116, 117,
571 #if YYDEBUG || YYERROR_VERBOSE || 0
572 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
598 /* YYTOKNUM[NUM] -- (External) token number corresponding to the
602 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
610 #define YYPACT_NINF -92
613 (!!((Yystate) == (-92)))
615 #define YYTABLE_NINF -88
618 0
620 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
621 STATE-NUM. */
624 17, 41, -92, 15, -92, 150, -92, 19, -92, -92,
625 -13, -92, 28, 41, 38, 41, 50, 47, 41, 79,
626 82, 44, 76, -92, -92, -92, -92, -92, -92, -92,
627 -92, -92, 118, -92, 129, -92, -92, -92, -92, -92,
628 -92, -92, -92, -92, -92, -92, -92, -92, -92, -92,
629 -92, -92, 184, -92, -92, 107, -92, 111, -92, 113,
630 -92, 116, -92, 139, 140, 151, -92, -92, 44, 44,
631 142, 256, -92, 160, 173, 27, 117, 80, 51, 255,
632 -15, 255, 217, -92, -92, -92, -92, -92, -92, -8,
633 -92, 44, 44, 107, 87, 87, 87, 87, 87, 87,
634 -92, -92, 174, 176, 187, 41, 41, 44, 188, 189,
635 87, -92, 213, -92, -92, -92, -92, 206, -92, -92,
636 193, 41, 41, 203, -92, -92, -92, -92, -92, -92,
637 -92, -92, -92, -92, -92, -92, -92, 229, -92, 241,
638 -92, -92, -92, -92, -92, -92, -92, -92, -92, -92,
639 216, -92, -92, -92, -92, -92, -92, -92, -92, -92,
641 -92, -92, 229, 236, 229, 44, -92, 145, 242, -92,
642 -92, 243, 244, 245, 229, 251, -92, -92, 247, -92,
643 257, 125, -92, -92, -92, -92, -92, 260, 41, -92,
644 -92, -92, -92, -92
647 /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
652 6, 0, 106, 0, 3, 0, 6, 6, 101, 102,
653 0, 1, 0, 0, 0, 0, 123, 0, 0, 0,
654 0, 0, 0, 14, 19, 15, 16, 21, 17, 18,
655 20, 22, 0, 23, 0, 7, 35, 26, 35, 27,
657 25, 10, 0, 107, 2, 76, 13, 0, 103, 0,
658 124, 0, 104, 0, 0, 0, 121, 122, 0, 0,
659 0, 110, 105, 0, 0, 0, 0, 0, 0, 0,
660 90, 0, 0, 77, 85, 53, 86, 31, 33, 0,
661 118, 0, 0, 69, 0, 0, 0, 0, 0, 0,
662 11, 12, 0, 0, 0, 0, 99, 0, 0, 0,
663 0, 49, 0, 41, 40, 36, 37, 0, 39, 38,
664 0, 0, 99, 0, 61, 62, 58, 60, 59, 68,
665 56, 55, 73, 75, 71, 74, 70, 108, 97, 0,
668 0, 108, 0, 108, 108, 108, 108, 0, 0, 0,
669 89, 65, 108, 0, 108, 0, 98, 0, 0, 42,
670 100, 0, 0, 0, 108, 51, 48, 29, 0, 64,
671 0, 109, 94, 43, 44, 45, 46, 0, 0, 50,
675 /* YYPGOTO[NTERM-NUM]. */
678 -92, -92, 285, 291, -92, 32, -66, -92, -92, -92,
679 -92, 261, -92, -92, -92, -92, -92, -92, -92, 1,
680 -92, -92, -92, -92, -92, -92, -92, -92, -92, -92,
681 -92, 24, -92, -92, -92, -92, -92, 221, 220, -64,
682 -92, -92, 179, -1, 67, 0, 110, -67, -91, -92
685 /* YYDEFGOTO[NTERM-NUM]. */
688 -1, 3, 4, 5, 34, 35, 114, 36, 37, 38,
695 /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
702 1, 138, 1, 2, 150, 151, 149, -32, 102, 91,
703 92, -32, -32, -32, -32, -32, -32, -32, -32, 103,
704 164, -32, -32, 104, -32, 105, 106, 107, 108, 109,
705 110, -32, 111, 2, 112, 53, 14, 15, 185, 17,
708 133, 102, 142, 62, 69, -54, -54, 33, -54, -54,
709 -54, -54, 103, 177, -54, -54, 104, 120, 121, 122,
711 129, 132, 72, 141, 66, 67, 124, -34, 102, 73,
712 172, -34, -34, -34, -34, -34, -34, -34, -34, 103,
713 74, -34, -34, 104, -34, 105, 106, 107, 108, 109,
714 110, -34, 111, 53, 112, 131, 136, 83, 145, 84,
715 -5, 12, 85, 113, 13, 14, 15, 16, 17, 18,
718 92, 192, 91, 92, -4, 12, 33, 88, 13, 14,
721 158, 32, 159, 160, 169, 165, 166, -87, 102, 170,
722 33, -87, -87, -87, -87, -87, -87, -87, -87, 171,
723 174, -87, -87, 104, -87, -87, -87, -87, -87, -87,
724 -87, -87, 102, 175, 112, -78, -78, -78, -78, -78,
725 -78, -78, -78, 146, 92, -78, -78, 104, 179, 13,
736 10, 77, 13, 77, 15, 0, 82, 18, 82, 110,
737 3, 36, 3, 36, 91, 92, 34, 0, 1, 37,
746 78, 79, 36, 81, 27, 28, 36, 0, 1, 1,
750 0, 1, 36, 36, 4, 5, 6, 7, 8, 9,
753 38, 36, 37, 38, 0, 1, 36, 36, 4, 5,
756 36, 27, 36, 26, 1, 27, 27, 0, 1, 13,
768 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
769 symbol of state STATE-NUM. */
772 0, 3, 36, 42, 43, 44, 68, 86, 27, 28,
773 84, 0, 1, 4, 5, 6, 7, 8, 9, 10,
795 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
798 0, 41, 42, 42, 43, 43, 44, 44, 44, 44,
813 /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
816 0, 2, 2, 1, 2, 1, 0, 2, 2, 2,
819 2, 3, 2, 3, 2, 0, 2, 2, 2, 2,
820 2, 2, 3, 4, 4, 4, 4, 5, 3, 0,
821 3, 0, 2, 3, 2, 1, 3, 0, 2, 2,
822 2, 2, 2, 4, 3, 2, 4, 0, 2, 3,
823 1, 3, 0, 2, 2, 2, 3, 3, 3, 1,
824 3, 0, 2, 2, 2, 3, 3, 2, 2, 2,
825 0, 2, 2, 2, 4, 0, 2, 2, 2, 0,
826 2, 1, 1, 2, 2, 2, 1, 2, 0, 2,
828 3, 1, 1, 0, 1
832 #define yyerrok (yyerrstatus = 0)
834 #define YYEMPTY (-2)
835 #define YYEOF 0
859 while (0)
879 } while (0)
883 # define YY_LOCATION_PRINT(File, Loc) ((void) 0)
896 } while (0)
899 /*----------------------------------------.
901 `----------------------------------------*/
918 /*--------------------------------.
920 `--------------------------------*/
932 /*------------------------------------------------------------------.
933 | yy_stack_print -- Print the state stack from its BOTTOM up to its |
935 `------------------------------------------------------------------*/
953 } while (0)
956 /*------------------------------------------------.
958 `------------------------------------------------*/
967 yyrule - 1, yylno); in yy_reduce_print()
969 for (yyi = 0; yyi < yynrhs; yyi++) in yy_reduce_print()
973 yystos[yyssp[yyi + 1 - yynrhs]], in yy_reduce_print()
974 &(yyvsp[(yyi + 1) - (yynrhs)]) in yy_reduce_print()
984 } while (0)
997 /* YYINITDEPTH -- initial size of the parser's stacks. */
1002 /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
1003 if the built-in stack extension method is used).
1007 evaluated with infinite-precision integer arithmetic. */
1025 for (yylen = 0; yystr[yylen]; yylen++) in yystrlen()
1036 /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
1044 while ((*yyd++ = *yys++) != '\0') in yystpcpy()
1047 return yyd - 1; in yystpcpy()
1055 heuristic is that double-quoting is unnecessary unless the string
1057 backslash-backslash). YYSTR is taken from yytname. If YYRES is
1065 YYSIZE_T yyn = 0; in yytnamerr()
1087 yyres[yyn] = '\0'; in yytnamerr()
1096 return yystpcpy (yyres, yystr) - yyres; in yytnamerr()
1104 Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
1121 int yycount = 0; in yysyntax_error()
1124 - If this state is a consistent state with a default action, then in yysyntax_error()
1128 - The only way there can be no lookahead present (in yychar) is if in yysyntax_error()
1133 - Don't assume there isn't a lookahead just because this state is a in yysyntax_error()
1135 previous inconsistent state, consistent state with a non-default in yysyntax_error()
1137 - Of course, the expected token list depends on states to have in yysyntax_error()
1152 /* Start YYX at -YYN if negative to avoid negative indexes in in yysyntax_error()
1153 YYCHECK. In other words, skip the first -YYN actions for in yysyntax_error()
1155 int yyxbegin = yyn < 0 ? -yyn : 0; in yysyntax_error()
1157 int yychecklim = YYLAST - yyn + 1; in yysyntax_error()
1189 YYCASE_(0, YY_("syntax error")); in yysyntax_error()
1219 int yyi = 0; in yysyntax_error()
1220 while ((*yyp = *yyformat) != '\0') in yysyntax_error()
1232 return 0; in yysyntax_error()
1236 /*-----------------------------------------------.
1238 `-----------------------------------------------*/
1255 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); in yydestruct()
1266 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); in yydestruct()
1277 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); in yydestruct()
1303 /*----------.
1305 `----------*/
1336 int yytoken = 0; in yyparse()
1348 #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) in yyparse()
1352 int yylen = 0; in yyparse()
1360 yystate = 0; in yyparse()
1361 yyerrstatus = 0; in yyparse()
1362 yynerrs = 0; in yyparse()
1366 /*------------------------------------------------------------. in yyparse()
1367 | yynewstate -- Push a new state, which is found in yystate. | in yyparse()
1368 `------------------------------------------------------------*/ in yyparse()
1377 if (yyss + yystacksize - 1 <= yyssp) in yyparse()
1380 YYSIZE_T yysize = yyssp - yyss + 1; in yyparse()
1428 yyssp = yyss + yysize - 1; in yyparse()
1429 yyvsp = yyvs + yysize - 1; in yyparse()
1434 if (yyss + yystacksize - 1 <= yyssp) in yyparse()
1445 /*-----------. in yyparse()
1447 `-----------*/ in yyparse()
1481 if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) in yyparse()
1484 if (yyn <= 0) in yyparse()
1488 yyn = -yyn; in yyparse()
1495 yyerrstatus--; in yyparse()
1511 /*-----------------------------------------------------------. in yyparse()
1512 | yydefault -- do the default action for the current state. | in yyparse()
1513 `-----------------------------------------------------------*/ in yyparse()
1516 if (yyn == 0) in yyparse()
1521 /*-----------------------------. in yyparse()
1522 | yyreduce -- Do a reduction. | in yyparse()
1523 `-----------------------------*/ in yyparse()
1536 yyval = yyvsp[1-yylen]; in yyparse()
1550 { zconf_error("unknown statement \"%s\"", (yyvsp[-2].string)); } in yyparse()
1557 zconf_error("unexpected option \"%s\"", kconf_id_strings + (yyvsp[-2].id)->name); in yyparse()
1570 { zconf_error("unknown option \"%s\"", (yyvsp[-2].string)); } in yyparse()
1583 struct symbol *sym = sym_lookup((yyvsp[-1].string), 0); in yyparse()
1584 sym->flags |= SYMBOL_OPTIONAL; in yyparse()
1586 printd(DEBUG_PARSE, "%s:%d:config %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); in yyparse()
1603 struct symbol *sym = sym_lookup((yyvsp[-1].string), 0); in yyparse()
1604 sym->flags |= SYMBOL_OPTIONAL; in yyparse()
1606 printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); in yyparse()
1614 if (current_entry->prompt) in yyparse()
1615 current_entry->prompt->type = P_MENU; in yyparse()
1627 menu_set_type((yyvsp[-2].id)->stype); in yyparse()
1630 (yyvsp[-2].id)->stype); in yyparse()
1638 menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); in yyparse()
1647 menu_add_expr(P_DEFAULT, (yyvsp[-2].expr), (yyvsp[-1].expr)); in yyparse()
1648 if ((yyvsp[-3].id)->stype != S_UNKNOWN) in yyparse()
1649 menu_set_type((yyvsp[-3].id)->stype); in yyparse()
1652 (yyvsp[-3].id)->stype); in yyparse()
1660 menu_add_symbol(P_SELECT, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); in yyparse()
1669 menu_add_symbol(P_IMPLY, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); in yyparse()
1678 …menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,(yyvsp[-3].symbol), (yyvsp[-2].symbol)), (yyvsp[-1]… in yyparse()
1687 const struct kconf_id *id = kconf_id_lookup((yyvsp[-1].string), strlen((yyvsp[-1].string))); in yyparse()
1688 if (id && id->flags & TF_OPTION) in yyparse()
1689 menu_add_option(id->token, (yyvsp[0].string)); in yyparse()
1691 zconfprint("warning: ignoring unknown option %s", (yyvsp[-1].string)); in yyparse()
1692 free((yyvsp[-1].string)); in yyparse()
1705 { (yyval.string) = (yyvsp[0].string); } in yyparse()
1712 struct symbol *sym = sym_lookup((yyvsp[-1].string), SYMBOL_CHOICE); in yyparse()
1713 sym->flags |= SYMBOL_AUTO; in yyparse()
1732 if (zconf_endtoken((yyvsp[0].id), T_CHOICE, T_ENDCHOICE)) { in yyparse()
1743 menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); in yyparse()
1752 if ((yyvsp[-2].id)->stype == S_BOOLEAN || (yyvsp[-2].id)->stype == S_TRISTATE) { in yyparse()
1753 menu_set_type((yyvsp[-2].id)->stype); in yyparse()
1756 (yyvsp[-2].id)->stype); in yyparse()
1766 current_entry->sym->flags |= SYMBOL_OPTIONAL; in yyparse()
1775 if ((yyvsp[-3].id)->stype == S_UNKNOWN) { in yyparse()
1776 menu_add_symbol(P_DEFAULT, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); in yyparse()
1790 menu_add_dep((yyvsp[-1].expr)); in yyparse()
1799 if (zconf_endtoken((yyvsp[0].id), T_IF, T_ENDIF)) { in yyparse()
1810 menu_add_prompt(P_MENU, (yyvsp[-1].string), NULL); in yyparse()
1819 menu_add_prompt(P_MENU, (yyvsp[-1].string), NULL); in yyparse()
1836 if (zconf_endtoken((yyvsp[0].id), T_MENU, T_ENDMENU)) { in yyparse()
1847 printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); in yyparse()
1848 zconf_nextfile((yyvsp[-1].string)); in yyparse()
1857 menu_add_prompt(P_COMMENT, (yyvsp[-1].string), NULL); in yyparse()
1883 current_entry->help = (yyvsp[0].string); in yyparse()
1891 menu_add_dep((yyvsp[-1].expr)); in yyparse()
1900 menu_add_visibility((yyvsp[0].expr)); in yyparse()
1908 menu_add_prompt(P_PROMPT, (yyvsp[-1].string), (yyvsp[0].expr)); in yyparse()
1915 { (yyval.id) = (yyvsp[-1].id); } in yyparse()
1921 { (yyval.id) = (yyvsp[-1].id); } in yyparse()
1927 { (yyval.id) = (yyvsp[-1].id); } in yyparse()
1939 { (yyval.expr) = (yyvsp[0].expr); } in yyparse()
1945 { (yyval.expr) = expr_alloc_symbol((yyvsp[0].symbol)); } in yyparse()
1951 { (yyval.expr) = expr_alloc_comp(E_LTH, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1957 { (yyval.expr) = expr_alloc_comp(E_LEQ, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1963 { (yyval.expr) = expr_alloc_comp(E_GTH, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1969 { (yyval.expr) = expr_alloc_comp(E_GEQ, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1975 { (yyval.expr) = expr_alloc_comp(E_EQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1981 { (yyval.expr) = expr_alloc_comp(E_UNEQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } in yyparse()
1987 { (yyval.expr) = (yyvsp[-1].expr); } in yyparse()
1993 { (yyval.expr) = expr_alloc_one(E_NOT, (yyvsp[0].expr)); } in yyparse()
1999 { (yyval.expr) = expr_alloc_two(E_OR, (yyvsp[-2].expr), (yyvsp[0].expr)); } in yyparse()
2005 { (yyval.expr) = expr_alloc_two(E_AND, (yyvsp[-2].expr), (yyvsp[0].expr)); } in yyparse()
2011 { (yyval.symbol) = sym_lookup((yyvsp[0].string), 0); free((yyvsp[0].string)); } in yyparse()
2017 { (yyval.symbol) = sym_lookup((yyvsp[0].string), SYMBOL_CONST); free((yyvsp[0].string)); } in yyparse()
2042 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); in yyparse()
2045 yylen = 0; in yyparse()
2056 yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; in yyparse()
2057 if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) in yyparse()
2060 yystate = yydefgoto[yyn - YYNTOKENS]; in yyparse()
2065 /*--------------------------------------. in yyparse()
2066 | yyerrlab -- here on detecting error. | in yyparse()
2067 `--------------------------------------*/ in yyparse()
2069 /* Make sure we have latest lookahead translation. See comments at in yyparse()
2086 if (yysyntax_error_status == 0) in yyparse()
2139 /*---------------------------------------------------. in yyparse()
2140 | yyerrorlab -- error raised explicitly by YYERROR. | in yyparse()
2141 `---------------------------------------------------*/ in yyparse()
2147 if (/*CONSTCOND*/ 0) in yyparse()
2153 yylen = 0; in yyparse()
2159 /*-------------------------------------------------------------. in yyparse()
2160 | yyerrlab1 -- common code for both syntax error and YYERROR. | in yyparse()
2161 `-------------------------------------------------------------*/ in yyparse()
2171 if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) in yyparse()
2174 if (0 < yyn) in yyparse()
2203 /*-------------------------------------. in yyparse()
2204 | yyacceptlab -- YYACCEPT comes here. | in yyparse()
2205 `-------------------------------------*/ in yyparse()
2207 yyresult = 0; in yyparse()
2210 /*-----------------------------------. in yyparse()
2211 | yyabortlab -- YYABORT comes here. | in yyparse()
2212 `-----------------------------------*/ in yyparse()
2218 /*-------------------------------------------------. in yyparse()
2219 | yyexhaustedlab -- memory exhaustion comes here. | in yyparse()
2220 `-------------------------------------------------*/ in yyparse()
2230 /* Make sure we have latest lookahead translation. See comments at in yyparse()
2278 rootmenu.prompt->text = _(rootmenu.prompt->text); in conf_parse()
2279 rootmenu.prompt->text = sym_expand_string_value(rootmenu.prompt->text); in conf_parse()
2308 if (id->token != endtoken) { in zconf_endtoken()
2310 kconf_id_strings + id->name, zconf_tokenname(starttoken)); in zconf_endtoken()
2314 if (current_menu->file != current_file) { in zconf_endtoken()
2316 kconf_id_strings + id->name, zconf_tokenname(starttoken)); in zconf_endtoken()
2318 current_menu->file->name, current_menu->lineno, in zconf_endtoken()
2361 len = p - str; in print_quoted_string()
2373 struct symbol *sym = menu->sym; in print_symbol()
2379 fprintf(out, "\nconfig %s\n", sym->name); in print_symbol()
2380 switch (sym->type) { in print_symbol()
2400 for (prop = sym->prop; prop; prop = prop->next) { in print_symbol()
2401 if (prop->menu != menu) in print_symbol()
2403 switch (prop->type) { in print_symbol()
2406 print_quoted_string(out, prop->text); in print_symbol()
2407 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
2409 expr_fprint(prop->visible.expr, out); in print_symbol()
2415 expr_fprint(prop->expr, out); in print_symbol()
2416 if (!expr_is_yes(prop->visible.expr)) { in print_symbol()
2418 expr_fprint(prop->visible.expr, out); in print_symbol()
2427 expr_fprint(prop->expr, out); in print_symbol()
2432 expr_fprint(prop->expr, out); in print_symbol()
2437 expr_fprint(prop->expr, out); in print_symbol()
2442 print_quoted_string(out, prop->text); in print_symbol()
2446 fprintf(out, " unknown prop %d!\n", prop->type); in print_symbol()
2450 if (menu->help) { in print_symbol()
2451 int len = strlen(menu->help); in print_symbol()
2452 while (menu->help[--len] == '\n') in print_symbol()
2453 menu->help[len] = 0; in print_symbol()
2454 fprintf(out, " help\n%s\n", menu->help); in print_symbol()
2466 if ((sym = menu->sym)) in zconfdump()
2468 else if ((prop = menu->prompt)) { in zconfdump()
2469 switch (prop->type) { in zconfdump()
2472 print_quoted_string(out, prop->text); in zconfdump()
2477 print_quoted_string(out, prop->text); in zconfdump()
2483 if (!expr_is_yes(prop->visible.expr)) { in zconfdump()
2485 expr_fprint(prop->visible.expr, out); in zconfdump()
2490 if (menu->list) in zconfdump()
2491 menu = menu->list; in zconfdump()
2492 else if (menu->next) in zconfdump()
2493 menu = menu->next; in zconfdump()
2494 else while ((menu = menu->parent)) { in zconfdump()
2495 if (menu->prompt && menu->prompt->type == P_MENU) in zconfdump()
2497 if (menu->next) { in zconfdump()
2498 menu = menu->next; in zconfdump()