Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4cd4dbac
Commit
4cd4dbac
authored
Dec 15, 2002
by
Roman Zippel
Committed by
Linus Torvalds
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kconfig: dependencies for choices
Enable dependencies for choice defaults.
parent
3cc84419
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
133 deletions
+72
-133
scripts/kconfig/zconf.tab.c_shipped
scripts/kconfig/zconf.tab.c_shipped
+70
-129
scripts/kconfig/zconf.y
scripts/kconfig/zconf.y
+2
-4
No files found.
scripts/kconfig/zconf.tab.c_shipped
View file @
4cd4dbac
...
@@ -132,7 +132,6 @@
...
@@ -132,7 +132,6 @@
/* Copy the first part of user declarations. */
/* Copy the first part of user declarations. */
#line 1 "zconf.y"
/*
/*
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
* Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
...
@@ -165,7 +164,7 @@ struct symbol *symbol_hash[257];
...
@@ -165,7 +164,7 @@ struct symbol *symbol_hash[257];
/* Enabling traces. */
/* Enabling traces. */
#ifndef YYDEBUG
#ifndef YYDEBUG
# define YYDEBUG
1
# define YYDEBUG
0
#endif
#endif
/* Enabling verbose error messages. */
/* Enabling verbose error messages. */
...
@@ -186,7 +185,7 @@ typedef union {
...
@@ -186,7 +185,7 @@ typedef union {
struct menu *menu;
struct menu *menu;
} yystype;
} yystype;
/* Line 193 of /usr/share/bison/yacc.c. */
/* Line 193 of /usr/share/bison/yacc.c. */
#line 1
90
"zconf.tab.c"
#line 1
89
"zconf.tab.c"
# define YYSTYPE yystype
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_TRIVIAL 1
#endif
#endif
...
@@ -204,14 +203,13 @@ typedef struct yyltype
...
@@ -204,14 +203,13 @@ typedef struct yyltype
#endif
#endif
/* Copy the second part of user declarations. */
/* Copy the second part of user declarations. */
#line 83 "zconf.y"
#define LKC_DIRECT_LINK
#define LKC_DIRECT_LINK
#include "lkc.h"
#include "lkc.h"
/* Line 213 of /usr/share/bison/yacc.c. */
/* Line 213 of /usr/share/bison/yacc.c. */
#line 21
5
"zconf.tab.c"
#line 21
3
"zconf.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
#if ! defined (yyoverflow) || YYERROR_VERBOSE
...
@@ -309,7 +307,7 @@ union yyalloc
...
@@ -309,7 +307,7 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 2
#define YYFINAL 2
#define YYLAST 15
1
#define YYLAST 15
4
/* YYNTOKENS -- Number of terminals. */
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 36
#define YYNTOKENS 36
...
@@ -318,7 +316,7 @@ union yyalloc
...
@@ -318,7 +316,7 @@ union yyalloc
/* YYNRULES -- Number of rules. */
/* YYNRULES -- Number of rules. */
#define YYNRULES 96
#define YYNRULES 96
/* YYNRULES -- Number of states. */
/* YYNRULES -- Number of states. */
#define YYNSTATES 14
5
#define YYNSTATES 14
6
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYUNDEFTOK 2
...
@@ -371,12 +369,12 @@ static const unsigned short yyprhs[] =
...
@@ -371,12 +369,12 @@ static const unsigned short yyprhs[] =
21, 23, 26, 28, 30, 32, 34, 36, 39, 43,
21, 23, 26, 28, 30, 32, 34, 36, 39, 43,
44, 48, 52, 55, 58, 61, 64, 67, 70, 73,
44, 48, 52, 55, 58, 61, 64, 67, 70, 73,
77, 81, 83, 87, 89, 94, 97, 98, 102, 106,
77, 81, 83, 87, 89, 94, 97, 98, 102, 106,
109, 112, 116, 118, 12
1, 122, 125, 128, 130, 136
,
109, 112, 116, 118, 12
2, 123, 126, 129, 131, 137
,
14
0, 141, 144, 147, 150, 153, 157, 159, 164, 167
,
14
1, 142, 145, 148, 151, 154, 158, 160, 165, 168
,
16
8, 171, 174, 177, 181, 184, 187, 190, 194, 197
,
16
9, 172, 175, 178, 182, 185, 188, 191, 195, 198
,
20
0, 201, 205, 208, 212, 215, 218, 219, 221, 225
,
20
1, 202, 206, 209, 213, 216, 219, 220, 222, 226
,
22
7, 229, 231, 233, 235, 237, 239, 240, 243, 245
,
22
8, 230, 232, 234, 236, 238, 240, 241, 244, 246
,
2
49, 253, 257, 260, 264, 268, 270
2
50, 254, 258, 261, 265, 269, 271
};
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
...
@@ -394,22 +392,22 @@ static const yysigned_char yyrhs[] =
...
@@ -394,22 +392,22 @@ static const yysigned_char yyrhs[] =
50, 46, 28, -1, 45, 50, -1, -1, 48, 49,
50, 46, 28, -1, 45, 50, -1, -1, 48, 49,
28, -1, 48, 67, 28, -1, 48, 65, -1, 48,
28, -1, 48, 67, 28, -1, 48, 65, -1, 48,
28, -1, 18, 69, 72, -1, 17, -1, 19, 74,
28, -1, 18, 69, 72, -1, 17, -1, 19, 74,
-1, -1, 50, 39, -1, 13, 73, -1, 70, -1
,
72, -1, -1, 50, 39, -1, 13, 73, -1, 70
,
51, 28, 54, 52, 28, -1, 51, 28, 54, -1
,
-1, 51, 28, 54, 52, 28, -1, 51, 28, 54
,
-1,
54, 39, -1, 54, 58, -1, 54, 47, -1
,
-1,
-1, 54, 39, -1, 54, 58, -1, 54, 47
,
4, 69, -1, 55, 28, 66, -1, 70, -1, 56
,
-1, 4, 69, -1, 55, 28, 66, -1, 70, -1
,
5
9, 57, 28, -1, 56, 59, -1, -1, 59, 3
9,
5
6, 59, 57, 28, -1, 56, 59, -1, -1, 5
9,
-1, 59, 58, -1, 59, 47, -1, 59, 1, 28
,
39, -1, 59, 58, -1, 59, 47, -1, 59, 1
,
-1, 6, 69, -1, 60, 28, -1, 9, 69, -1
,
28, -1, 6, 69, -1, 60, 28, -1, 9, 69
,
62, 28, 66, -1, 11, 28, -1, 64, 12, -1
,
-1, 62, 28, 66, -1, 11, 28, -1, 64, 12
,
-1,
66, 67, 28, -1, 66, 28, -1, 15, 31
,
-1,
-1, 66, 67, 28, -1, 66, 28, -1, 15
,
73, -1, 15, 73, -1, 16, 73, -1, -1, 69
,
31, 73, -1, 15, 73, -1, 16, 73, -1, -1
,
-1, 69, 13, 73, -1, 24, -1, 25, -1, 5
,
69, -1, 69, 13, 73, -1, 24, -1, 25, -1
,
-1, 8, -1, 14, -1, 28, -1, 27, -1
, -1,
5, -1, 8, -1, 14, -1, 28, -1, 27
, -1,
13, 73, -1, 74, -1, 74, 34, 74, -1, 74
,
-1, 13, 73, -1, 74, -1, 74, 34, 74, -1
,
26, 74, -1, 30, 73, 29, -1, 35, 73, -1
,
74, 26, 74, -1, 30, 73, 29, -1, 35, 73
,
73, 32, 73, -1, 73, 33, 73, -1, 24, -1
,
-1, 73, 32, 73, -1, 73, 33, 73, -1, 24
,
25, -1
-1,
25, -1
};
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
...
@@ -419,12 +417,12 @@ static const unsigned short yyrline[] =
...
@@ -419,12 +417,12 @@ static const unsigned short yyrline[] =
98, 99, 102, 104, 105, 106, 107, 113, 121, 127,
98, 99, 102, 104, 105, 106, 107, 113, 121, 127,
129, 130, 131, 132, 135, 141, 147, 153, 159, 165,
129, 130, 131, 132, 135, 141, 147, 153, 159, 165,
171, 179, 188, 194, 202, 204, 210, 212, 213, 214,
171, 179, 188, 194, 202, 204, 210, 212, 213, 214,
215, 218, 224, 230, 23
7, 239, 244, 254, 262, 264
,
215, 218, 224, 230, 23
6, 238, 243, 252, 260, 262
,
2
70, 272, 273, 274, 279, 286, 292, 300, 302, 308
,
2
68, 270, 271, 272, 277, 284, 290, 298, 300, 306
,
3
10, 311, 312, 313, 316, 322, 329, 336, 343, 349
,
3
08, 309, 310, 311, 314, 320, 327, 334, 341, 347
,
35
6, 357, 358, 361, 366, 371, 379, 381, 385, 390
,
35
4, 355, 356, 359, 364, 369, 377, 379, 383, 388
,
3
91, 394, 395, 396, 399, 400, 402, 403, 406, 407
,
3
89, 392, 393, 394, 397, 398, 400, 401, 404, 405
,
40
8, 409, 410, 411, 412, 415, 416
40
6, 407, 408, 409, 410, 413, 414
};
};
#endif
#endif
...
@@ -484,7 +482,7 @@ static const unsigned char yyr2[] =
...
@@ -484,7 +482,7 @@ static const unsigned char yyr2[] =
1, 2, 1, 1, 1, 1, 1, 2, 3, 0,
1, 2, 1, 1, 1, 1, 1, 2, 3, 0,
3, 3, 2, 2, 2, 2, 2, 2, 2, 3,
3, 3, 2, 2, 2, 2, 2, 2, 2, 3,
3, 1, 3, 1, 4, 2, 0, 3, 3, 2,
3, 1, 3, 1, 4, 2, 0, 3, 3, 2,
2, 3, 1,
2
, 0, 2, 2, 1, 5, 3,
2, 3, 1,
3
, 0, 2, 2, 1, 5, 3,
0, 2, 2, 2, 2, 3, 1, 4, 2, 0,
0, 2, 2, 2, 2, 3, 1, 4, 2, 0,
2, 2, 2, 3, 2, 2, 2, 3, 2, 2,
2, 2, 2, 3, 2, 2, 2, 3, 2, 2,
0, 3, 2, 3, 2, 2, 0, 1, 3, 1,
0, 3, 2, 3, 2, 2, 0, 1, 3, 1,
...
@@ -510,8 +508,8 @@ static const unsigned char yydefact[] =
...
@@ -510,8 +508,8 @@ static const unsigned char yydefact[] =
0, 0, 40, 0, 39, 0, 34, 51, 53, 0,
0, 0, 40, 0, 39, 0, 34, 51, 53, 0,
52, 47, 72, 0, 63, 57, 68, 0, 74, 75,
52, 47, 72, 0, 63, 57, 68, 0, 74, 75,
86, 86, 24, 77, 25, 26, 27, 28, 20, 69,
86, 86, 24, 77, 25, 26, 27, 28, 20, 69,
21, 86,
43
, 37, 38, 48, 71, 73, 0, 29,
21, 86,
86
, 37, 38, 48, 71, 73, 0, 29,
30, 0, 41, 87, 78
30, 0, 41,
43,
87, 78
};
};
/* YYDEFGOTO[NTERM-NUM]. */
/* YYDEFGOTO[NTERM-NUM]. */
...
@@ -529,20 +527,20 @@ static const short yydefgoto[] =
...
@@ -529,20 +527,20 @@ static const short yydefgoto[] =
static const short yypact[] =
static const short yypact[] =
{
{
-120, 17, -120, 41, 48, 48, -120, 48, -120, -120,
-120, 17, -120, 41, 48, 48, -120, 48, -120, -120,
48,
-11
, 40, -120, -120, -120, -120, -120, 13, -120,
48,
27
, 40, -120, -120, -120, -120, -120, 13, -120,
23, -120, -120, 66, -120, 72, -120, -120, 77
, -120,
66, -120, -120, 72, -120, 77, -120, -120, 81
, -120,
8
1
, -120, -120, -120, -120, -120, 41, -120, -120, -120,
8
5
, -120, -120, -120, -120, -120, 41, -120, -120, -120,
-120, -120, -120, 40, 40, 57, 59, -120, -120, 98,
-120, -120, -120, 40, 40, 57, 59, -120, -120, 98,
-120, -120, 49, -120, -120, -120, 7, -120, 40, 40,
-120, -120, 49, -120, -120, -120, 7, -120, 40, 40,
67, 67, 99, 117, -120, -120, -120, -120, 8
5
, -120,
67, 67, 99, 117, -120, -120, -120, -120, 8
8
, -120,
74, 18,
88, -120, -120, 95
, -120, -120, 18, -120,
74, 18,
95, -120, -120, 101
, -120, -120, 18, -120,
9
6, -120, -120, -120, 102
, 36, 40, 48, 67, 48,
9
7, -120, -120, -120, 103
, 36, 40, 48, 67, 48,
48, 48, 48, 48, -120, 1
03, 129, -120, 114
, -120,
48, 48, 48, 48, -120, 1
13, 130, -120, 115
, -120,
48, 67, -120, 11
5, -120, 116, -120, -120, -120, 118
,
48, 67, -120, 11
6, -120, 118, -120, -120, -120, 119
,
-120, -120, -120, 1
19
, -120, -120, -120, 40, 57, 57,
-120, -120, -120, 1
20
, -120, -120, -120, 40, 57, 57,
13
5, 135, -120, 136
, -120, -120, -120, -120, -120, -120,
13
6, 136, -120, 137
, -120, -120, -120, -120, -120, -120,
-120, 13
5, -120
, -120, -120, -120, -120, 57, 40, -120,
-120, 13
6, 136
, -120, -120, -120, -120, 57, 40, -120,
-120, 40, -120, 57, 57
-120, 40, -120,
-120,
57, 57
};
};
/* YYPGOTO[NTERM-NUM]. */
/* YYPGOTO[NTERM-NUM]. */
...
@@ -550,8 +548,8 @@ static const yysigned_char yypgoto[] =
...
@@ -550,8 +548,8 @@ static const yysigned_char yypgoto[] =
{
{
-120, -120, -120, -38, -120, -120, -120, -120, -120, -120,
-120, -120, -120, -38, -120, -120, -120, -120, -120, -120,
-120, -42, -120, -120, -120, -120, -120, -120, -120, -120,
-120, -42, -120, -120, -120, -120, -120, -120, -120, -120,
-120, -120, -33, -120, -120, -120, -120, -120, -120, 8
7
,
-120, -120, -33, -120, -120, -120, -120, -120, -120, 8
9
,
97
, 34, 47, -1, -23, 2, -119, -43, -53
100
, 34, 47, -1, -23, 2, -119, -43, -53
};
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
...
@@ -562,41 +560,41 @@ static const yysigned_char yypgoto[] =
...
@@ -562,41 +560,41 @@ static const yysigned_char yypgoto[] =
static const short yytable[] =
static const short yytable[] =
{
{
56, 57, 140, 36, 37, 33, 38, 82, 83, 39,
56, 57, 140, 36, 37, 33, 38, 82, 83, 39,
74, 67, 142,
40
, 73, 80, 81, 2, 3, 76,
74, 67, 142,
143
, 73, 80, 81, 2, 3, 76,
4, 5, 6, 7, 8, 9, 10, 11, 108, 77,
4, 5, 6, 7, 8, 9, 10, 11, 108, 77,
12, 13, 107, 85, 86, 121, 79, 110, 55, 58,
12, 13, 107, 85, 86, 121, 79, 110, 55, 58,
59, 47, 118, 119, 14, 15, 112, 111, 132, -58,
59, 47, 118, 119, 14, 15, 112, 111, 132, -58,
72, 4
8
, -58, 5, 64, 7, 8, 65, 10, 11,
72, 4
0
, -58, 5, 64, 7, 8, 65, 10, 11,
41, 42, 12, 66, 41, 42, 43, 117, 14, 15,
41, 42, 12, 66, 41, 42, 43, 117, 14, 15,
43, 44, 34, 35, 137, 44, 14, 15, 5, 64,
43, 44, 34, 35, 137, 44, 14, 15, 5, 64,
7, 8, 65, 10, 11, 60, 120, 12, 66, 58,
7, 8, 65, 10, 11, 60, 120, 12, 66, 58,
59, 41, 42, 61,
50, 143, 98, 105, 144
, 131,
59, 41, 42, 61,
48, 144, 98, 105, 145
, 131,
5
1, 14, 15, 64, 7, 53, 65, 10, 11, 54
,
5
0, 14, 15, 64, 7, 51, 65, 10, 11, 53
,
84, 12, 66,
106, 85, 86, 114
, 87, 88, 89,
84, 12, 66,
54, 85, 86, 106
, 87, 88, 89,
90, 91, 92, 11
5, 93, 14, 15, 94, 84, 59
,
90, 91, 92, 11
4, 93, 14, 15, 94, 84, 115
,
116, 128
, 85, 86, 99, 100, 101, 124, 125, 126,
59, 116
, 85, 86, 99, 100, 101, 124, 125, 126,
127, 12
9, 130, 133, 134, 102, 135, 136, 138, 141
,
127, 12
8, 129, 130, 133, 102, 134, 135, 136, 138
,
1
04
, 78
1
41, 0, 104, 0
, 78
};
};
static const
unsigned char
yycheck[] =
static const
short
yycheck[] =
{
{
43, 44, 121, 4, 5, 3, 7, 60, 61, 10,
43, 44, 121, 4, 5, 3, 7, 60, 61, 10,
52, 49, 131,
24
, 52, 58, 59, 0, 1, 52,
52, 49, 131,
132
, 52, 58, 59, 0, 1, 52,
3, 4, 5, 6, 7, 8, 9, 10, 70, 52,
3, 4, 5, 6, 7, 8, 9, 10, 70, 52,
13, 14, 70, 15, 16, 88, 29, 70, 36, 32,
13, 14, 70, 15, 16, 88, 29, 70, 36, 32,
33, 28, 85, 86, 27, 28, 28, 70, 101, 0,
33, 28, 85, 86, 27, 28, 28, 70, 101, 0,
1, 2
8
, 3, 4, 5, 6, 7, 8, 9, 10,
1, 2
4
, 3, 4, 5, 6, 7, 8, 9, 10,
24, 25, 13, 14, 24, 25, 30, 31, 27, 28,
24, 25, 13, 14, 24, 25, 30, 31, 27, 28,
30, 35, 24, 25, 117, 35, 27, 28, 4, 5,
30, 35, 24, 25, 117, 35, 27, 28, 4, 5,
6, 7, 8, 9, 10, 26, 87, 13, 14, 32,
6, 7, 8, 9, 10, 26, 87, 13, 14, 32,
33, 24, 25, 34, 28, 138, 62, 63, 141, 100,
33, 24, 25, 34, 28, 138, 62, 63, 141, 100,
28, 27, 28, 5, 6, 28, 8, 9, 10, 28,
28, 27, 28, 5, 6, 28, 8, 9, 10, 28,
11, 13, 14, 28, 15, 16, 28, 18, 19, 20,
11, 13, 14, 28, 15, 16, 28, 18, 19, 20,
21, 22, 23, 28, 25, 27, 28, 28, 11,
33
,
21, 22, 23, 28, 25, 27, 28, 28, 11,
28
,
28
, 28, 15, 16, 17, 18, 19, 90, 91, 92,
33
, 28, 15, 16, 17, 18, 19, 90, 91, 92,
93,
12, 28, 28, 28, 28, 28, 28, 13
, 13,
93,
28, 12, 28, 28, 28, 28, 28, 28
, 13,
63
, 54
13, -1, 63, -1
, 54
};
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
...
@@ -617,7 +615,7 @@ static const unsigned char yystos[] =
...
@@ -617,7 +615,7 @@ static const unsigned char yystos[] =
58, 70, 28, 67, 28, 28, 28, 31, 73, 73,
58, 70, 28, 67, 28, 28, 28, 31, 73, 73,
69, 74, 68, 69, 68, 68, 68, 68, 28, 12,
69, 74, 68, 69, 68, 68, 68, 68, 28, 12,
28, 69, 74, 28, 28, 28, 28, 73, 13, 72,
28, 69, 74, 28, 28, 28, 28, 73, 13, 72,
72, 13, 72, 73, 73
72, 13, 72, 7
2, 7
3, 73
};
};
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
...
@@ -1168,27 +1166,22 @@ yyreduce:
...
@@ -1168,27 +1166,22 @@ yyreduce:
switch (yyn)
switch (yyn)
{
{
case 8:
case 8:
#line 96 "zconf.y"
{ zconfprint("unexpected 'endmenu' statement"); }
{ zconfprint("unexpected 'endmenu' statement"); }
break;
break;
case 9:
case 9:
#line 97 "zconf.y"
{ zconfprint("unexpected 'endif' statement"); }
{ zconfprint("unexpected 'endif' statement"); }
break;
break;
case 10:
case 10:
#line 98 "zconf.y"
{ zconfprint("unexpected 'endchoice' statement"); }
{ zconfprint("unexpected 'endchoice' statement"); }
break;
break;
case 11:
case 11:
#line 99 "zconf.y"
{ zconfprint("syntax error"); yyerrok; }
{ zconfprint("syntax error"); yyerrok; }
break;
break;
case 17:
case 17:
#line 114 "zconf.y"
{
{
struct symbol *sym = sym_lookup(yyvsp[0].string, 0);
struct symbol *sym = sym_lookup(yyvsp[0].string, 0);
sym->flags |= SYMBOL_OPTIONAL;
sym->flags |= SYMBOL_OPTIONAL;
...
@@ -1198,7 +1191,6 @@ yyreduce:
...
@@ -1198,7 +1191,6 @@ yyreduce:
break;
break;
case 18:
case 18:
#line 122 "zconf.y"
{
{
menu_end_entry();
menu_end_entry();
printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno());
...
@@ -1206,12 +1198,10 @@ yyreduce:
...
@@ -1206,12 +1198,10 @@ yyreduce:
break;
break;
case 23:
case 23:
#line 133 "zconf.y"
{ }
{ }
break;
break;
case 24:
case 24:
#line 136 "zconf.y"
{
{
menu_set_type(S_TRISTATE);
menu_set_type(S_TRISTATE);
printd(DEBUG_PARSE, "%s:%d:tristate\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:tristate\n", zconf_curname(), zconf_lineno());
...
@@ -1219,7 +1209,6 @@ yyreduce:
...
@@ -1219,7 +1209,6 @@ yyreduce:
break;
break;
case 25:
case 25:
#line 142 "zconf.y"
{
{
menu_set_type(S_BOOLEAN);
menu_set_type(S_BOOLEAN);
printd(DEBUG_PARSE, "%s:%d:boolean\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:boolean\n", zconf_curname(), zconf_lineno());
...
@@ -1227,7 +1216,6 @@ yyreduce:
...
@@ -1227,7 +1216,6 @@ yyreduce:
break;
break;
case 26:
case 26:
#line 148 "zconf.y"
{
{
menu_set_type(S_INT);
menu_set_type(S_INT);
printd(DEBUG_PARSE, "%s:%d:int\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:int\n", zconf_curname(), zconf_lineno());
...
@@ -1235,7 +1223,6 @@ yyreduce:
...
@@ -1235,7 +1223,6 @@ yyreduce:
break;
break;
case 27:
case 27:
#line 154 "zconf.y"
{
{
menu_set_type(S_HEX);
menu_set_type(S_HEX);
printd(DEBUG_PARSE, "%s:%d:hex\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:hex\n", zconf_curname(), zconf_lineno());
...
@@ -1243,7 +1230,6 @@ yyreduce:
...
@@ -1243,7 +1230,6 @@ yyreduce:
break;
break;
case 28:
case 28:
#line 160 "zconf.y"
{
{
menu_set_type(S_STRING);
menu_set_type(S_STRING);
printd(DEBUG_PARSE, "%s:%d:string\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:string\n", zconf_curname(), zconf_lineno());
...
@@ -1251,7 +1237,6 @@ yyreduce:
...
@@ -1251,7 +1237,6 @@ yyreduce:
break;
break;
case 29:
case 29:
#line 166 "zconf.y"
{
{
menu_add_prop(P_PROMPT, yyvsp[-1].string, NULL, yyvsp[0].expr);
menu_add_prop(P_PROMPT, yyvsp[-1].string, NULL, yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
...
@@ -1259,7 +1244,6 @@ yyreduce:
...
@@ -1259,7 +1244,6 @@ yyreduce:
break;
break;
case 30:
case 30:
#line 172 "zconf.y"
{
{
menu_add_prop(P_DEFAULT, NULL, yyvsp[-1].symbol, yyvsp[0].expr);
menu_add_prop(P_DEFAULT, NULL, yyvsp[-1].symbol, yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
...
@@ -1267,7 +1251,6 @@ yyreduce:
...
@@ -1267,7 +1251,6 @@ yyreduce:
break;
break;
case 31:
case 31:
#line 180 "zconf.y"
{
{
struct symbol *sym = sym_lookup(NULL, 0);
struct symbol *sym = sym_lookup(NULL, 0);
sym->flags |= SYMBOL_CHOICE;
sym->flags |= SYMBOL_CHOICE;
...
@@ -1278,7 +1261,6 @@ yyreduce:
...
@@ -1278,7 +1261,6 @@ yyreduce:
break;
break;
case 32:
case 32:
#line 189 "zconf.y"
{
{
menu_end_entry();
menu_end_entry();
menu_add_menu();
menu_add_menu();
...
@@ -1286,7 +1268,6 @@ yyreduce:
...
@@ -1286,7 +1268,6 @@ yyreduce:
break;
break;
case 33:
case 33:
#line 195 "zconf.y"
{
{
if (zconf_endtoken(yyvsp[0].token, T_CHOICE, T_ENDCHOICE)) {
if (zconf_endtoken(yyvsp[0].token, T_CHOICE, T_ENDCHOICE)) {
menu_end_menu();
menu_end_menu();
...
@@ -1296,7 +1277,6 @@ yyreduce:
...
@@ -1296,7 +1277,6 @@ yyreduce:
break;
break;
case 35:
case 35:
#line 205 "zconf.y"
{
{
printf("%s:%d: missing 'endchoice' for this 'choice' statement\n", current_menu->file->name, current_menu->lineno);
printf("%s:%d: missing 'endchoice' for this 'choice' statement\n", current_menu->file->name, current_menu->lineno);
zconfnerrs++;
zconfnerrs++;
...
@@ -1304,7 +1284,6 @@ yyreduce:
...
@@ -1304,7 +1284,6 @@ yyreduce:
break;
break;
case 41:
case 41:
#line 219 "zconf.y"
{
{
menu_add_prop(P_PROMPT, yyvsp[-1].string, NULL, yyvsp[0].expr);
menu_add_prop(P_PROMPT, yyvsp[-1].string, NULL, yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno());
...
@@ -1312,7 +1291,6 @@ yyreduce:
...
@@ -1312,7 +1291,6 @@ yyreduce:
break;
break;
case 42:
case 42:
#line 225 "zconf.y"
{
{
current_entry->sym->flags |= SYMBOL_OPTIONAL;
current_entry->sym->flags |= SYMBOL_OPTIONAL;
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
...
@@ -1320,20 +1298,16 @@ yyreduce:
...
@@ -1320,20 +1298,16 @@ yyreduce:
break;
break;
case 43:
case 43:
#line 231 "zconf.y"
{
{
menu_add_prop(P_DEFAULT, NULL, yyvsp[0].symbol, NULL);
menu_add_prop(P_DEFAULT, NULL, yyvsp[-1].symbol, yyvsp[0].expr);
//current_choice->prop->def = ;
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
}
}
break;
break;
case 46:
case 46:
#line 245 "zconf.y"
{
{
printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
menu_add_entry(NULL);
menu_add_entry(NULL);
//current_entry->prompt = menu_add_prop(T_IF, NULL, NULL, );
menu_add_dep(yyvsp[0].expr);
menu_add_dep(yyvsp[0].expr);
menu_end_entry();
menu_end_entry();
menu_add_menu();
menu_add_menu();
...
@@ -1341,7 +1315,6 @@ yyreduce:
...
@@ -1341,7 +1315,6 @@ yyreduce:
break;
break;
case 47:
case 47:
#line 255 "zconf.y"
{
{
if (zconf_endtoken(yyvsp[0].token, T_IF, T_ENDIF)) {
if (zconf_endtoken(yyvsp[0].token, T_IF, T_ENDIF)) {
menu_end_menu();
menu_end_menu();
...
@@ -1351,7 +1324,6 @@ yyreduce:
...
@@ -1351,7 +1324,6 @@ yyreduce:
break;
break;
case 49:
case 49:
#line 265 "zconf.y"
{
{
printf("%s:%d: missing 'endif' for this 'if' statement\n", current_menu->file->name, current_menu->lineno);
printf("%s:%d: missing 'endif' for this 'if' statement\n", current_menu->file->name, current_menu->lineno);
zconfnerrs++;
zconfnerrs++;
...
@@ -1359,7 +1331,6 @@ yyreduce:
...
@@ -1359,7 +1331,6 @@ yyreduce:
break;
break;
case 54:
case 54:
#line 280 "zconf.y"
{
{
menu_add_entry(NULL);
menu_add_entry(NULL);
menu_add_prop(P_MENU, yyvsp[0].string, NULL, NULL);
menu_add_prop(P_MENU, yyvsp[0].string, NULL, NULL);
...
@@ -1368,7 +1339,6 @@ yyreduce:
...
@@ -1368,7 +1339,6 @@ yyreduce:
break;
break;
case 55:
case 55:
#line 287 "zconf.y"
{
{
menu_end_entry();
menu_end_entry();
menu_add_menu();
menu_add_menu();
...
@@ -1376,7 +1346,6 @@ yyreduce:
...
@@ -1376,7 +1346,6 @@ yyreduce:
break;
break;
case 56:
case 56:
#line 293 "zconf.y"
{
{
if (zconf_endtoken(yyvsp[0].token, T_MENU, T_ENDMENU)) {
if (zconf_endtoken(yyvsp[0].token, T_MENU, T_ENDMENU)) {
menu_end_menu();
menu_end_menu();
...
@@ -1386,7 +1355,6 @@ yyreduce:
...
@@ -1386,7 +1355,6 @@ yyreduce:
break;
break;
case 58:
case 58:
#line 303 "zconf.y"
{
{
printf("%s:%d: missing 'endmenu' for this 'menu' statement\n", current_menu->file->name, current_menu->lineno);
printf("%s:%d: missing 'endmenu' for this 'menu' statement\n", current_menu->file->name, current_menu->lineno);
zconfnerrs++;
zconfnerrs++;
...
@@ -1394,12 +1362,10 @@ yyreduce:
...
@@ -1394,12 +1362,10 @@ yyreduce:
break;
break;
case 63:
case 63:
#line 313 "zconf.y"
{ zconfprint("invalid menu option"); yyerrok; }
{ zconfprint("invalid menu option"); yyerrok; }
break;
break;
case 64:
case 64:
#line 317 "zconf.y"
{
{
yyval.string = yyvsp[0].string;
yyval.string = yyvsp[0].string;
printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), yyvsp[0].string);
printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), yyvsp[0].string);
...
@@ -1407,14 +1373,12 @@ yyreduce:
...
@@ -1407,14 +1373,12 @@ yyreduce:
break;
break;
case 65:
case 65:
#line 323 "zconf.y"
{
{
zconf_nextfile(yyvsp[-1].string);
zconf_nextfile(yyvsp[-1].string);
}
}
break;
break;
case 66:
case 66:
#line 330 "zconf.y"
{
{
menu_add_entry(NULL);
menu_add_entry(NULL);
menu_add_prop(P_COMMENT, yyvsp[0].string, NULL, NULL);
menu_add_prop(P_COMMENT, yyvsp[0].string, NULL, NULL);
...
@@ -1423,14 +1387,12 @@ yyreduce:
...
@@ -1423,14 +1387,12 @@ yyreduce:
break;
break;
case 67:
case 67:
#line 337 "zconf.y"
{
{
menu_end_entry();
menu_end_entry();
}
}
break;
break;
case 68:
case 68:
#line 344 "zconf.y"
{
{
printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno());
zconf_starthelp();
zconf_starthelp();
...
@@ -1438,19 +1400,16 @@ yyreduce:
...
@@ -1438,19 +1400,16 @@ yyreduce:
break;
break;
case 69:
case 69:
#line 350 "zconf.y"
{
{
current_entry->sym->help = yyvsp[0].string;
current_entry->sym->help = yyvsp[0].string;
}
}
break;
break;
case 72:
case 72:
#line 359 "zconf.y"
{ }
{ }
break;
break;
case 73:
case 73:
#line 362 "zconf.y"
{
{
menu_add_dep(yyvsp[0].expr);
menu_add_dep(yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno());
...
@@ -1458,7 +1417,6 @@ yyreduce:
...
@@ -1458,7 +1417,6 @@ yyreduce:
break;
break;
case 74:
case 74:
#line 367 "zconf.y"
{
{
menu_add_dep(yyvsp[0].expr);
menu_add_dep(yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:depends\n", zconf_curname(), zconf_lineno());
...
@@ -1466,7 +1424,6 @@ yyreduce:
...
@@ -1466,7 +1424,6 @@ yyreduce:
break;
break;
case 75:
case 75:
#line 372 "zconf.y"
{
{
menu_add_dep(yyvsp[0].expr);
menu_add_dep(yyvsp[0].expr);
printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:requires\n", zconf_curname(), zconf_lineno());
...
@@ -1474,86 +1431,70 @@ yyreduce:
...
@@ -1474,86 +1431,70 @@ yyreduce:
break;
break;
case 77:
case 77:
#line 382 "zconf.y"
{
{
menu_add_prop(P_PROMPT, yyvsp[0].string, NULL, NULL);
menu_add_prop(P_PROMPT, yyvsp[0].string, NULL, NULL);
}
}
break;
break;
case 78:
case 78:
#line 386 "zconf.y"
{
{
menu_add_prop(P_PROMPT, yyvsp[-2].string, NULL, yyvsp[0].expr);
menu_add_prop(P_PROMPT, yyvsp[-2].string, NULL, yyvsp[0].expr);
}
}
break;
break;
case 81:
case 81:
#line 394 "zconf.y"
{ yyval.token = T_ENDMENU; }
{ yyval.token = T_ENDMENU; }
break;
break;
case 82:
case 82:
#line 395 "zconf.y"
{ yyval.token = T_ENDCHOICE; }
{ yyval.token = T_ENDCHOICE; }
break;
break;
case 83:
case 83:
#line 396 "zconf.y"
{ yyval.token = T_ENDIF; }
{ yyval.token = T_ENDIF; }
break;
break;
case 86:
case 86:
#line 402 "zconf.y"
{ yyval.expr = NULL; }
{ yyval.expr = NULL; }
break;
break;
case 87:
case 87:
#line 403 "zconf.y"
{ yyval.expr = yyvsp[0].expr; }
{ yyval.expr = yyvsp[0].expr; }
break;
break;
case 88:
case 88:
#line 406 "zconf.y"
{ yyval.expr = expr_alloc_symbol(yyvsp[0].symbol); }
{ yyval.expr = expr_alloc_symbol(yyvsp[0].symbol); }
break;
break;
case 89:
case 89:
#line 407 "zconf.y"
{ yyval.expr = expr_alloc_comp(E_EQUAL, yyvsp[-2].symbol, yyvsp[0].symbol); }
{ yyval.expr = expr_alloc_comp(E_EQUAL, yyvsp[-2].symbol, yyvsp[0].symbol); }
break;
break;
case 90:
case 90:
#line 408 "zconf.y"
{ yyval.expr = expr_alloc_comp(E_UNEQUAL, yyvsp[-2].symbol, yyvsp[0].symbol); }
{ yyval.expr = expr_alloc_comp(E_UNEQUAL, yyvsp[-2].symbol, yyvsp[0].symbol); }
break;
break;
case 91:
case 91:
#line 409 "zconf.y"
{ yyval.expr = yyvsp[-1].expr; }
{ yyval.expr = yyvsp[-1].expr; }
break;
break;
case 92:
case 92:
#line 410 "zconf.y"
{ yyval.expr = expr_alloc_one(E_NOT, yyvsp[0].expr); }
{ yyval.expr = expr_alloc_one(E_NOT, yyvsp[0].expr); }
break;
break;
case 93:
case 93:
#line 411 "zconf.y"
{ yyval.expr = expr_alloc_two(E_OR, yyvsp[-2].expr, yyvsp[0].expr); }
{ yyval.expr = expr_alloc_two(E_OR, yyvsp[-2].expr, yyvsp[0].expr); }
break;
break;
case 94:
case 94:
#line 412 "zconf.y"
{ yyval.expr = expr_alloc_two(E_AND, yyvsp[-2].expr, yyvsp[0].expr); }
{ yyval.expr = expr_alloc_two(E_AND, yyvsp[-2].expr, yyvsp[0].expr); }
break;
break;
case 95:
case 95:
#line 415 "zconf.y"
{ yyval.symbol = sym_lookup(yyvsp[0].string, 0); free(yyvsp[0].string); }
{ yyval.symbol = sym_lookup(yyvsp[0].string, 0); free(yyvsp[0].string); }
break;
break;
case 96:
case 96:
#line 416 "zconf.y"
{ yyval.symbol = sym_lookup(yyvsp[0].string, 1); free(yyvsp[0].string); }
{ yyval.symbol = sym_lookup(yyvsp[0].string, 1); free(yyvsp[0].string); }
break;
break;
...
@@ -1561,7 +1502,7 @@ yyreduce:
...
@@ -1561,7 +1502,7 @@ yyreduce:
}
}
/* Line 1016 of /usr/share/bison/yacc.c. */
/* Line 1016 of /usr/share/bison/yacc.c. */
#line 15
65
"zconf.tab.c"
#line 15
06
"zconf.tab.c"
yyvsp -= yylen;
yyvsp -= yylen;
yyssp -= yylen;
yyssp -= yylen;
...
@@ -1780,7 +1721,6 @@ yyreturn:
...
@@ -1780,7 +1721,6 @@ yyreturn:
}
}
#line 419 "zconf.y"
void conf_parse(const char *name)
void conf_parse(const char *name)
...
@@ -2015,3 +1955,4 @@ void zconfdump(FILE *out)
...
@@ -2015,3 +1955,4 @@ void zconfdump(FILE *out)
#include "symbol.c"
#include "symbol.c"
#include "menu.c"
#include "menu.c"
scripts/kconfig/zconf.y
View file @
4cd4dbac
...
@@ -227,10 +227,9 @@ choice_option: T_OPTIONAL
...
@@ -227,10 +227,9 @@ choice_option: T_OPTIONAL
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno());
};
};
choice_option: T_DEFAULT symbol
choice_option: T_DEFAULT symbol
if_expr
{
{
menu_add_prop(P_DEFAULT, NULL, $2, NULL);
menu_add_prop(P_DEFAULT, NULL, $2, $3);
//current_choice->prop->def = $2;
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:default\n", zconf_curname(), zconf_lineno());
};
};
...
@@ -245,7 +244,6 @@ if: T_IF expr
...
@@ -245,7 +244,6 @@ if: T_IF expr
{
{
printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno());
menu_add_entry(NULL);
menu_add_entry(NULL);
//current_entry->prompt = menu_add_prop(T_IF, NULL, NULL, $2);
menu_add_dep($2);
menu_add_dep($2);
menu_end_entry();
menu_end_entry();
menu_add_menu();
menu_add_menu();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment