From: Andreas Ruprecht <andreas.ruprecht@fau.de> To: Ulf Magnusson <ulfalizer.lkml@gmail.com> Cc: Paul Bolle <pebolle@tiscali.nl>, Valentin Rothberg <valentinrothberg@gmail.com>, rafael.j.wysocki@intel.com, <linux-kbuild@vger.kernel.org>, <linux-kernel@vger.kernel.org>, hengelein Stefan <stefan.hengelein@fau.de>, linux@dominikbrodowski.net, Michal Marek <mmarek@suse.cz>, Andreas Ruprecht <andreas.ruprecht@fau.de> Subject: [PATCH 2/2] kconfig: Regenerate shipped zconf.lex.c file Date: Fri, 3 Jul 2015 14:46:39 +0200 [thread overview] Message-ID: <b36990b7a6f5f59526bbfda1b24efd8972e8a364.1435927467.git.andreas.ruprecht@fau.de> (raw) In-Reply-To: <cover.1435927467.git.andreas.ruprecht@fau.de> In-Reply-To: <cover.1435927467.git.andreas.ruprecht@fau.de> This updates the shipped file generated by flex to support the explicit use of "---help---" and to emit warnings for unsupported characters on top level statements. As I could not find out which flex version was used to generate the previous version, I used flex 2.5.35 from Ubuntu 14.04 - this also leads to the big number of changed lines in this patch. Signed-off-by: Andreas Ruprecht <andreas.ruprecht@fau.de> --- scripts/kconfig/zconf.lex.c_shipped | 453 +++++++++++++++++++++++++----------- 1 file changed, 313 insertions(+), 140 deletions(-) diff --git a/scripts/kconfig/zconf.lex.c_shipped b/scripts/kconfig/zconf.lex.c_shipped index dd4e86c..34232d3 100644 --- a/scripts/kconfig/zconf.lex.c_shipped +++ b/scripts/kconfig/zconf.lex.c_shipped @@ -72,7 +72,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -103,6 +102,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -159,7 +160,15 @@ typedef unsigned int flex_uint32_t; /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -365,354 +374,472 @@ int zconflineno = 1; extern char *zconftext; #define yytext_ptr zconftext -static yyconst flex_int16_t yy_nxt[][19] = +static yyconst flex_int16_t yy_nxt[][23] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 }, { 11, 12, 13, 14, 12, 12, 15, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12 + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 12 }, { 11, 12, 13, 14, 12, 12, 15, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12 + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 12 }, { 11, 16, 16, 17, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 18, 16, 16, 16, 16, 16 + + 16, 18, 16, 19, 16, 16, 16, 16, 19, 19, + 19, 19, 16 }, { 11, 16, 16, 17, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 18, 16, 16, 16, 16, 16 - + 16, 18, 16, 19, 16, 16, 16, 16, 19, 19, + 19, 19, 16 }, { - 11, 19, 20, 21, 19, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 19, 19 + 11, 20, 21, 22, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20 }, { - 11, 19, 20, 21, 19, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 19, 19 + 11, 20, 21, 22, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + + 20, 20, 20 }, { - 11, 22, 22, 23, 22, 24, 22, 22, 24, 22, - 22, 22, 22, 22, 22, 22, 22, 25, 22 + 11, 23, 23, 24, 23, 25, 23, 23, 25, 23, + 23, 23, 23, 23, 23, 23, 23, 26, 23, 23, + 23, 23, 23 }, { - 11, 22, 22, 23, 22, 24, 22, 22, 24, 22, - 22, 22, 22, 22, 22, 22, 22, 25, 22 + 11, 23, 23, 24, 23, 25, 23, 23, 25, 23, + 23, 23, 23, 23, 23, 23, 23, 26, 23, 23, + 23, 23, 23 }, { - 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, - 34, 35, 36, 36, 37, 38, 39, 40, 41 + 11, 27, 28, 29, 30, 31, 32, 33, 31, 34, + 35, 36, 36, 36, 37, 38, 39, 40, 36, 36, + 36, 36, 41 }, { - 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, - 34, 35, 36, 36, 37, 38, 39, 40, 41 + 11, 27, 28, 29, 30, 31, 32, 33, 31, 34, + 35, 36, 36, 36, 37, 38, 39, 40, 36, 36, + 36, 36, 41 }, { -11, -11, -11, -11, -11, -11, -11, -11, -11, -11, - -11, -11, -11, -11, -11, -11, -11, -11, -11 + -11, -11, -11, -11, -11, -11, -11, -11, -11, -11, + -11, -11, -11 }, { 11, -12, -12, -12, -12, -12, -12, -12, -12, -12, - -12, -12, -12, -12, -12, -12, -12, -12, -12 + -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, + -12, -12, -12 }, { 11, -13, 42, 43, -13, -13, 44, -13, -13, -13, - -13, -13, -13, -13, -13, -13, -13, -13, -13 + + -13, -13, -13, -13, -13, -13, -13, -13, -13, -13, + -13, -13, -13 }, { 11, -14, -14, -14, -14, -14, -14, -14, -14, -14, - -14, -14, -14, -14, -14, -14, -14, -14, -14 - + -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, + -14, -14, -14 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, -16, -16, -16, -16, -16, -16, -16, -16, -16, - -16, -16, -16, -16, -16, -16, -16, -16, -16 + -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, + + -16, -16, -16 }, { 11, -17, -17, -17, -17, -17, -17, -17, -17, -17, - -17, -17, -17, -17, -17, -17, -17, -17, -17 + -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, + -17, -17, -17 }, { 11, -18, -18, -18, -18, -18, -18, -18, -18, -18, - -18, -18, -18, 47, -18, -18, -18, -18, -18 + -18, 47, -18, -18, -18, -18, -18, -18, -18, -18, + -18, -18, -18 }, { - 11, 48, 48, -19, 48, 48, 48, 48, 48, 48, - 48, 48, 48, 48, 48, 48, 48, 48, 48 + 11, -19, -19, -19, -19, -19, -19, -19, -19, -19, + -19, -19, -19, 48, -19, -19, -19, -19, 48, 48, + 48, 48, -19 }, { - 11, -20, 49, 50, -20, -20, -20, -20, -20, -20, - -20, -20, -20, -20, -20, -20, -20, -20, -20 + 11, 49, 49, -20, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49 }, { - 11, 51, -21, -21, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51 + 11, -21, 50, 51, -21, -21, -21, -21, -21, -21, + -21, -21, -21, -21, -21, -21, -21, -21, -21, -21, + -21, -21, -21 }, { - 11, 52, 52, 53, 52, -22, 52, 52, -22, 52, - 52, 52, 52, 52, 52, 52, 52, -22, 52 + 11, 52, -22, -22, 52, 52, 52, 52, 52, 52, + 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 52 }, { - 11, -23, -23, -23, -23, -23, -23, -23, -23, -23, - -23, -23, -23, -23, -23, -23, -23, -23, -23 + 11, 53, 53, 54, 53, -23, 53, 53, -23, 53, + + 53, 53, 53, 53, 53, 53, 53, -23, 53, 53, + 53, 53, 53 }, { 11, -24, -24, -24, -24, -24, -24, -24, -24, -24, - -24, -24, -24, -24, -24, -24, -24, -24, -24 - + -24, -24, -24, -24, -24, -24, -24, -24, -24, -24, + -24, -24, -24 }, { - 11, 54, 54, 55, 54, 54, 54, 54, 54, 54, - 54, 54, 54, 54, 54, 54, 54, 54, 54 + 11, -25, -25, -25, -25, -25, -25, -25, -25, -25, + -25, -25, -25, -25, -25, -25, -25, -25, -25, -25, + -25, -25, -25 }, { - 11, -26, -26, -26, -26, -26, -26, -26, -26, -26, - -26, -26, -26, -26, -26, -26, -26, -26, -26 + 11, 55, 55, 56, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + + 55, 55, 55 }, { - 11, -27, 56, -27, -27, -27, -27, -27, -27, -27, - -27, -27, -27, -27, -27, -27, -27, -27, -27 + 11, -27, -27, -27, -27, -27, -27, -27, -27, -27, + -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, + -27, -27, -27 }, { - 11, -28, -28, -28, -28, -28, -28, -28, -28, -28, - -28, -28, -28, -28, -28, -28, -28, -28, -28 + 11, -28, 57, -28, -28, -28, -28, -28, -28, -28, + -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, + -28, -28, -28 }, { 11, -29, -29, -29, -29, -29, -29, -29, -29, -29, - -29, -29, -29, -29, -29, 57, -29, -29, -29 + -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, + -29, -29, -29 }, { 11, -30, -30, -30, -30, -30, -30, -30, -30, -30, - -30, -30, -30, -30, -30, -30, -30, -30, -30 + -30, -30, -30, -30, -30, 58, -30, -30, -30, -30, + -30, -30, -30 }, { - 11, 58, 58, -31, 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 58, 58 + 11, -31, -31, -31, -31, -31, -31, -31, -31, -31, + -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, + -31, -31, -31 }, { - 11, -32, -32, -32, -32, -32, -32, 59, -32, -32, - -32, -32, -32, -32, -32, -32, -32, -32, -32 + 11, 59, 59, -32, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59 }, { - 11, -33, -33, -33, -33, -33, -33, -33, -33, -33, - -33, -33, -33, -33, -33, -33, -33, -33, -33 + 11, -33, -33, -33, -33, -33, -33, 60, -33, -33, + + -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, + -33, -33, -33 }, { 11, -34, -34, -34, -34, -34, -34, -34, -34, -34, - -34, -34, -34, -34, -34, -34, -34, -34, -34 - + -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, + -34, -34, -34 }, { 11, -35, -35, -35, -35, -35, -35, -35, -35, -35, - -35, 60, 61, 61, -35, -35, -35, -35, -35 + -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, + -35, -35, -35 }, { 11, -36, -36, -36, -36, -36, -36, -36, -36, -36, - -36, 61, 61, 61, -36, -36, -36, -36, -36 + -36, 61, 61, 61, -36, -36, -36, -36, 61, 61, + + 61, 61, -36 }, { 11, -37, -37, -37, -37, -37, -37, -37, -37, -37, - -37, -37, -37, -37, -37, 62, -37, -37, -37 + -37, -37, -37, -37, -37, 62, -37, -37, -37, -37, + -37, -37, -37 }, { 11, -38, -38, -38, -38, -38, -38, -38, -38, -38, - -38, -38, -38, -38, -38, -38, -38, -38, -38 + -38, -38, -38, -38, -38, -38, -38, -38, -38, -38, + -38, -38, -38 }, { 11, -39, -39, -39, -39, -39, -39, -39, -39, -39, - -39, -39, -39, -39, -39, 63, -39, -39, -39 + -39, -39, -39, -39, -39, 63, -39, -39, -39, -39, + -39, -39, -39 }, { 11, -40, -40, 64, -40, -40, -40, -40, -40, -40, - -40, -40, -40, -40, -40, -40, -40, -40, -40 + -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, + -40, -40, -40 }, { 11, -41, -41, -41, -41, -41, -41, -41, -41, -41, - -41, -41, -41, -41, -41, -41, -41, -41, 65 + -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, + -41, -41, 65 }, { 11, -42, 42, 43, -42, -42, 44, -42, -42, -42, - -42, -42, -42, -42, -42, -42, -42, -42, -42 + -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, + -42, -42, -42 }, { 11, -43, -43, -43, -43, -43, -43, -43, -43, -43, - -43, -43, -43, -43, -43, -43, -43, -43, -43 + + -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, + -43, -43, -43 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 - + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, -46, -46, -46, -46, -46, -46, -46, -46, -46, - -46, -46, -46, -46, -46, -46, -46, -46, -46 + -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, + + -46, -46, -46 }, { 11, -47, -47, -47, -47, -47, -47, -47, -47, -47, - -47, -47, -47, 47, -47, -47, -47, -47, -47 + -47, 66, -47, -47, -47, -47, -47, -47, -47, -47, + -47, -47, -47 }, { - 11, 48, 48, -48, 48, 48, 48, 48, 48, 48, - 48, 48, 48, 48, 48, 48, 48, 48, 48 + 11, -48, -48, -48, -48, -48, -48, -48, -48, -48, + -48, -48, -48, 48, -48, -48, -48, -48, 48, 48, + 48, 48, -48 }, { - 11, -49, 49, 50, -49, -49, -49, -49, -49, -49, - -49, -49, -49, -49, -49, -49, -49, -49, -49 + 11, 49, 49, -49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49 }, { - 11, 51, -50, -50, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51 + 11, -50, 50, 51, -50, -50, -50, -50, -50, -50, + -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, + -50, -50, -50 }, { - 11, -51, -51, -51, -51, -51, -51, -51, -51, -51, - -51, -51, -51, -51, -51, -51, -51, -51, -51 + 11, 52, -51, -51, 52, 52, 52, 52, 52, 52, + 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 52 }, { - 11, 52, 52, 53, 52, -52, 52, 52, -52, 52, - 52, 52, 52, 52, 52, 52, 52, -52, 52 + 11, -52, -52, -52, -52, -52, -52, -52, -52, -52, + -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, + -52, -52, -52 }, { - 11, -53, -53, -53, -53, -53, -53, -53, -53, -53, - -53, -53, -53, -53, -53, -53, -53, -53, -53 + 11, 53, 53, 54, 53, -53, 53, 53, -53, 53, + + 53, 53, 53, 53, 53, 53, 53, -53, 53, 53, + 53, 53, 53 }, { - 11, -54, -54, 55, -54, -54, -54, -54, -54, -54, - -54, -54, -54, -54, -54, -54, -54, -54, -54 - + 11, -54, -54, -54, -54, -54, -54, -54, -54, -54, + -54, -54, -54, -54, -54, -54, -54, -54, -54, -54, + -54, -54, -54 }, { - 11, -55, -55, -55, -55, -55, -55, -55, -55, -55, - -55, -55, -55, -55, -55, -55, -55, -55, -55 + 11, -55, -55, 56, -55, -55, -55, -55, -55, -55, + -55, -55, -55, -55, -55, -55, -55, -55, -55, -55, + -55, -55, -55 }, { - 11, -56, 56, -56, -56, -56, -56, -56, -56, -56, - -56, -56, -56, -56, -56, -56, -56, -56, -56 + 11, -56, -56, -56, -56, -56, -56, -56, -56, -56, + -56, -56, -56, -56, -56, -56, -56, -56, -56, -56, + + -56, -56, -56 }, { - 11, -57, -57, -57, -57, -57, -57, -57, -57, -57, - -57, -57, -57, -57, -57, -57, -57, -57, -57 + 11, -57, 57, -57, -57, -57, -57, -57, -57, -57, + -57, -57, -57, -57, -57, -57, -57, -57, -57, -57, + -57, -57, -57 }, { - 11, 58, 58, -58, 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 58, 58 + 11, -58, -58, -58, -58, -58, -58, -58, -58, -58, + -58, -58, -58, -58, -58, -58, -58, -58, -58, -58, + -58, -58, -58 }, { - 11, -59, -59, -59, -59, -59, -59, -59, -59, -59, - -59, -59, -59, -59, -59, -59, -59, -59, -59 + 11, 59, 59, -59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59 }, { 11, -60, -60, -60, -60, -60, -60, -60, -60, -60, - -60, 66, 61, 61, -60, -60, -60, -60, -60 + -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, + -60, -60, -60 }, { 11, -61, -61, -61, -61, -61, -61, -61, -61, -61, - -61, 61, 61, 61, -61, -61, -61, -61, -61 + -61, 61, 61, 61, -61, -61, -61, -61, 61, 61, + 61, 61, -61 }, { 11, -62, -62, -62, -62, -62, -62, -62, -62, -62, - -62, -62, -62, -62, -62, -62, -62, -62, -62 + -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, + -62, -62, -62 }, { 11, -63, -63, -63, -63, -63, -63, -63, -63, -63, - -63, -63, -63, -63, -63, -63, -63, -63, -63 + + -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, + -63, -63, -63 }, { 11, -64, -64, -64, -64, -64, -64, -64, -64, -64, - -64, -64, -64, -64, -64, -64, -64, -64, -64 - + -64, -64, -64, -64, -64, -64, -64, -64, -64, -64, + -64, -64, -64 }, { 11, -65, -65, -65, -65, -65, -65, -65, -65, -65, - -65, -65, -65, -65, -65, -65, -65, -65, -65 + -65, -65, -65, -65, -65, -65, -65, -65, -65, -65, + -65, -65, -65 }, { 11, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, 61, 61, 61, -66, -66, -66, -66, -66 + -66, -66, -66, -66, -66, -66, -66, -66, -66, 67, + + -66, -66, -66 + }, + + { + 11, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, 68, -67, + -67, -67, -67 + }, + + { + 11, -68, -68, -68, -68, -68, -68, -68, -68, -68, + -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, + 69, -68, -68 + }, + + { + 11, -69, -69, -69, -69, -69, -69, -69, -69, -69, + -69, -69, -69, -69, -69, -69, -69, -69, -69, -69, + -69, 70, -69 + + }, + + { + 11, -70, -70, -70, -70, -70, -70, -70, -70, -70, + -70, 71, -70, -70, -70, -70, -70, -70, -70, -70, + -70, -70, -70 + }, + + { + 11, -71, -71, -71, -71, -71, -71, -71, -71, -71, + -71, 72, -71, -71, -71, -71, -71, -71, -71, -71, + -71, -71, -71 + }, + + { + 11, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, 73, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72 + }, + + { + 11, -73, -73, -73, -73, -73, -73, -73, -73, -73, + + -73, -73, -73, -73, -73, -73, -73, -73, -73, -73, + -73, -73, -73 }, } ; @@ -741,15 +868,16 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[67] = +static yyconst flex_int16_t yy_accept[74] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 39, 5, 4, 2, 3, 7, 8, 6, 37, 34, - 36, 29, 33, 32, 31, 27, 26, 21, 13, 20, - 24, 27, 11, 12, 23, 23, 18, 14, 19, 27, - 27, 4, 2, 3, 3, 1, 6, 37, 34, 36, - 35, 29, 28, 31, 30, 26, 15, 24, 9, 23, - 23, 16, 17, 25, 10, 22 + 39, 5, 4, 2, 3, 8, 9, 8, 6, 37, + 34, 36, 29, 33, 32, 31, 27, 26, 22, 14, + 21, 24, 27, 12, 13, 23, 19, 15, 20, 27, + 27, 4, 2, 3, 3, 1, 0, 6, 37, 34, + 36, 35, 29, 28, 31, 30, 26, 16, 24, 10, + 23, 17, 18, 25, 11, 0, 0, 0, 0, 0, + 0, 0, 7 } ; static yyconst flex_int32_t yy_ec[256] = @@ -765,9 +893,9 @@ static yyconst flex_int32_t yy_ec[256] = 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 1, 17, 1, 1, 13, 1, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 1, 18, 1, 1, 1, 1, 1, 1, + 18, 13, 13, 19, 13, 13, 13, 20, 13, 13, + 13, 21, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 1, 22, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -784,6 +912,9 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1 } ; +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + extern int zconf_flex_debug; int zconf_flex_debug = 0; @@ -944,7 +1075,12 @@ static int input (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -952,7 +1088,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( zconftext, zconfleng, 1, zconfout ) +#define ECHO do { if (fwrite( zconftext, zconfleng, 1, zconfout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -1073,7 +1209,15 @@ YY_DECL yy_current_state = (yy_start); yy_match: while ( (yy_current_state = yy_nxt[yy_current_state][ yy_ec[YY_SC_TO_UI(*yy_cp)] ]) > 0 ) + { + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + ++yy_cp; + } yy_current_state = -yy_current_state; @@ -1086,6 +1230,13 @@ do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos) + 1; + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + case 1: /* rule 1 can match eol */ case 2: @@ -1132,10 +1283,21 @@ YY_RULE_SETUP YY_BREAK case 7: YY_RULE_SETUP - +{ + /* Support old syntax for help statement */ + return T_HELP; + } YY_BREAK case 8: -/* rule 8 can match eol */ +YY_RULE_SETUP +{ + fprintf(stderr, + "%s:%d:warning: ignoring unsupported character '%c'\n", + zconf_curname(), zconf_lineno(), *zconftext); + } + YY_BREAK +case 9: +/* rule 9 can match eol */ YY_RULE_SETUP { BEGIN(INITIAL); @@ -1144,51 +1306,51 @@ YY_RULE_SETUP } YY_BREAK -case 9: +case 10: YY_RULE_SETUP return T_AND; YY_BREAK -case 10: +case 11: YY_RULE_SETUP return T_OR; YY_BREAK -case 11: +case 12: YY_RULE_SETUP return T_OPEN_PAREN; YY_BREAK -case 12: +case 13: YY_RULE_SETUP return T_CLOSE_PAREN; YY_BREAK -case 13: +case 14: YY_RULE_SETUP return T_NOT; YY_BREAK -case 14: +case 15: YY_RULE_SETUP return T_EQUAL; YY_BREAK -case 15: +case 16: YY_RULE_SETUP return T_UNEQUAL; YY_BREAK -case 16: +case 17: YY_RULE_SETUP return T_LESS_EQUAL; YY_BREAK -case 17: +case 18: YY_RULE_SETUP return T_GREATER_EQUAL; YY_BREAK -case 18: +case 19: YY_RULE_SETUP return T_LESS; YY_BREAK -case 19: +case 20: YY_RULE_SETUP return T_GREATER; YY_BREAK -case 20: +case 21: YY_RULE_SETUP { str = zconftext[0]; @@ -1196,14 +1358,10 @@ YY_RULE_SETUP BEGIN(STRING); } YY_BREAK -case 21: -/* rule 21 can match eol */ -YY_RULE_SETUP -BEGIN(INITIAL); current_file->lineno++; return T_EOL; - YY_BREAK case 22: +/* rule 22 can match eol */ YY_RULE_SETUP -/* ignore */ +BEGIN(INITIAL); current_file->lineno++; return T_EOL; YY_BREAK case 23: YY_RULE_SETUP @@ -1669,6 +1827,11 @@ static int yy_get_next_buffer (void) for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { yy_current_state = yy_nxt[yy_current_state][(*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } } return yy_current_state; @@ -1682,10 +1845,20 @@ static int yy_get_next_buffer (void) static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; - + register char *yy_cp = (yy_c_buf_p); + yy_current_state = yy_nxt[yy_current_state][1]; yy_is_jam = (yy_current_state <= 0); + if ( ! yy_is_jam ) + { + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + } + return yy_is_jam ? 0 : yy_current_state; } @@ -2114,8 +2287,8 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: Andreas Ruprecht <andreas.ruprecht@fau.de> To: Ulf Magnusson <ulfalizer.lkml@gmail.com> Cc: Paul Bolle <pebolle@tiscali.nl>, Valentin Rothberg <valentinrothberg@gmail.com>, rafael.j.wysocki@intel.com, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, hengelein Stefan <stefan.hengelein@fau.de>, linux@dominikbrodowski.net, Michal Marek <mmarek@suse.cz>, Andreas Ruprecht <andreas.ruprecht@fau.de> Subject: [PATCH 2/2] kconfig: Regenerate shipped zconf.lex.c file Date: Fri, 3 Jul 2015 14:46:39 +0200 [thread overview] Message-ID: <b36990b7a6f5f59526bbfda1b24efd8972e8a364.1435927467.git.andreas.ruprecht@fau.de> (raw) In-Reply-To: <cover.1435927467.git.andreas.ruprecht@fau.de> In-Reply-To: <cover.1435927467.git.andreas.ruprecht@fau.de> This updates the shipped file generated by flex to support the explicit use of "---help---" and to emit warnings for unsupported characters on top level statements. As I could not find out which flex version was used to generate the previous version, I used flex 2.5.35 from Ubuntu 14.04 - this also leads to the big number of changed lines in this patch. Signed-off-by: Andreas Ruprecht <andreas.ruprecht@fau.de> --- scripts/kconfig/zconf.lex.c_shipped | 453 +++++++++++++++++++++++++----------- 1 file changed, 313 insertions(+), 140 deletions(-) diff --git a/scripts/kconfig/zconf.lex.c_shipped b/scripts/kconfig/zconf.lex.c_shipped index dd4e86c..34232d3 100644 --- a/scripts/kconfig/zconf.lex.c_shipped +++ b/scripts/kconfig/zconf.lex.c_shipped @@ -72,7 +72,6 @@ typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; -#endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN @@ -103,6 +102,8 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#endif /* ! C99 */ + #endif /* ! FLEXINT_H */ #ifdef __cplusplus @@ -159,7 +160,15 @@ typedef unsigned int flex_uint32_t; /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -365,354 +374,472 @@ int zconflineno = 1; extern char *zconftext; #define yytext_ptr zconftext -static yyconst flex_int16_t yy_nxt[][19] = +static yyconst flex_int16_t yy_nxt[][23] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0 + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0 }, { 11, 12, 13, 14, 12, 12, 15, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12 + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 12 }, { 11, 12, 13, 14, 12, 12, 15, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12 + 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, + 12, 12, 12 }, { 11, 16, 16, 17, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 18, 16, 16, 16, 16, 16 + + 16, 18, 16, 19, 16, 16, 16, 16, 19, 19, + 19, 19, 16 }, { 11, 16, 16, 17, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 18, 16, 16, 16, 16, 16 - + 16, 18, 16, 19, 16, 16, 16, 16, 19, 19, + 19, 19, 16 }, { - 11, 19, 20, 21, 19, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 19, 19 + 11, 20, 21, 22, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + 20, 20, 20 }, { - 11, 19, 20, 21, 19, 19, 19, 19, 19, 19, - 19, 19, 19, 19, 19, 19, 19, 19, 19 + 11, 20, 21, 22, 20, 20, 20, 20, 20, 20, + 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, + + 20, 20, 20 }, { - 11, 22, 22, 23, 22, 24, 22, 22, 24, 22, - 22, 22, 22, 22, 22, 22, 22, 25, 22 + 11, 23, 23, 24, 23, 25, 23, 23, 25, 23, + 23, 23, 23, 23, 23, 23, 23, 26, 23, 23, + 23, 23, 23 }, { - 11, 22, 22, 23, 22, 24, 22, 22, 24, 22, - 22, 22, 22, 22, 22, 22, 22, 25, 22 + 11, 23, 23, 24, 23, 25, 23, 23, 25, 23, + 23, 23, 23, 23, 23, 23, 23, 26, 23, 23, + 23, 23, 23 }, { - 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, - 34, 35, 36, 36, 37, 38, 39, 40, 41 + 11, 27, 28, 29, 30, 31, 32, 33, 31, 34, + 35, 36, 36, 36, 37, 38, 39, 40, 36, 36, + 36, 36, 41 }, { - 11, 26, 27, 28, 29, 30, 31, 32, 30, 33, - 34, 35, 36, 36, 37, 38, 39, 40, 41 + 11, 27, 28, 29, 30, 31, 32, 33, 31, 34, + 35, 36, 36, 36, 37, 38, 39, 40, 36, 36, + 36, 36, 41 }, { -11, -11, -11, -11, -11, -11, -11, -11, -11, -11, - -11, -11, -11, -11, -11, -11, -11, -11, -11 + -11, -11, -11, -11, -11, -11, -11, -11, -11, -11, + -11, -11, -11 }, { 11, -12, -12, -12, -12, -12, -12, -12, -12, -12, - -12, -12, -12, -12, -12, -12, -12, -12, -12 + -12, -12, -12, -12, -12, -12, -12, -12, -12, -12, + -12, -12, -12 }, { 11, -13, 42, 43, -13, -13, 44, -13, -13, -13, - -13, -13, -13, -13, -13, -13, -13, -13, -13 + + -13, -13, -13, -13, -13, -13, -13, -13, -13, -13, + -13, -13, -13 }, { 11, -14, -14, -14, -14, -14, -14, -14, -14, -14, - -14, -14, -14, -14, -14, -14, -14, -14, -14 - + -14, -14, -14, -14, -14, -14, -14, -14, -14, -14, + -14, -14, -14 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, -16, -16, -16, -16, -16, -16, -16, -16, -16, - -16, -16, -16, -16, -16, -16, -16, -16, -16 + -16, -16, -16, -16, -16, -16, -16, -16, -16, -16, + + -16, -16, -16 }, { 11, -17, -17, -17, -17, -17, -17, -17, -17, -17, - -17, -17, -17, -17, -17, -17, -17, -17, -17 + -17, -17, -17, -17, -17, -17, -17, -17, -17, -17, + -17, -17, -17 }, { 11, -18, -18, -18, -18, -18, -18, -18, -18, -18, - -18, -18, -18, 47, -18, -18, -18, -18, -18 + -18, 47, -18, -18, -18, -18, -18, -18, -18, -18, + -18, -18, -18 }, { - 11, 48, 48, -19, 48, 48, 48, 48, 48, 48, - 48, 48, 48, 48, 48, 48, 48, 48, 48 + 11, -19, -19, -19, -19, -19, -19, -19, -19, -19, + -19, -19, -19, 48, -19, -19, -19, -19, 48, 48, + 48, 48, -19 }, { - 11, -20, 49, 50, -20, -20, -20, -20, -20, -20, - -20, -20, -20, -20, -20, -20, -20, -20, -20 + 11, 49, 49, -20, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49 }, { - 11, 51, -21, -21, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51 + 11, -21, 50, 51, -21, -21, -21, -21, -21, -21, + -21, -21, -21, -21, -21, -21, -21, -21, -21, -21, + -21, -21, -21 }, { - 11, 52, 52, 53, 52, -22, 52, 52, -22, 52, - 52, 52, 52, 52, 52, 52, 52, -22, 52 + 11, 52, -22, -22, 52, 52, 52, 52, 52, 52, + 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 52 }, { - 11, -23, -23, -23, -23, -23, -23, -23, -23, -23, - -23, -23, -23, -23, -23, -23, -23, -23, -23 + 11, 53, 53, 54, 53, -23, 53, 53, -23, 53, + + 53, 53, 53, 53, 53, 53, 53, -23, 53, 53, + 53, 53, 53 }, { 11, -24, -24, -24, -24, -24, -24, -24, -24, -24, - -24, -24, -24, -24, -24, -24, -24, -24, -24 - + -24, -24, -24, -24, -24, -24, -24, -24, -24, -24, + -24, -24, -24 }, { - 11, 54, 54, 55, 54, 54, 54, 54, 54, 54, - 54, 54, 54, 54, 54, 54, 54, 54, 54 + 11, -25, -25, -25, -25, -25, -25, -25, -25, -25, + -25, -25, -25, -25, -25, -25, -25, -25, -25, -25, + -25, -25, -25 }, { - 11, -26, -26, -26, -26, -26, -26, -26, -26, -26, - -26, -26, -26, -26, -26, -26, -26, -26, -26 + 11, 55, 55, 56, 55, 55, 55, 55, 55, 55, + 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, + + 55, 55, 55 }, { - 11, -27, 56, -27, -27, -27, -27, -27, -27, -27, - -27, -27, -27, -27, -27, -27, -27, -27, -27 + 11, -27, -27, -27, -27, -27, -27, -27, -27, -27, + -27, -27, -27, -27, -27, -27, -27, -27, -27, -27, + -27, -27, -27 }, { - 11, -28, -28, -28, -28, -28, -28, -28, -28, -28, - -28, -28, -28, -28, -28, -28, -28, -28, -28 + 11, -28, 57, -28, -28, -28, -28, -28, -28, -28, + -28, -28, -28, -28, -28, -28, -28, -28, -28, -28, + -28, -28, -28 }, { 11, -29, -29, -29, -29, -29, -29, -29, -29, -29, - -29, -29, -29, -29, -29, 57, -29, -29, -29 + -29, -29, -29, -29, -29, -29, -29, -29, -29, -29, + -29, -29, -29 }, { 11, -30, -30, -30, -30, -30, -30, -30, -30, -30, - -30, -30, -30, -30, -30, -30, -30, -30, -30 + -30, -30, -30, -30, -30, 58, -30, -30, -30, -30, + -30, -30, -30 }, { - 11, 58, 58, -31, 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 58, 58 + 11, -31, -31, -31, -31, -31, -31, -31, -31, -31, + -31, -31, -31, -31, -31, -31, -31, -31, -31, -31, + -31, -31, -31 }, { - 11, -32, -32, -32, -32, -32, -32, 59, -32, -32, - -32, -32, -32, -32, -32, -32, -32, -32, -32 + 11, 59, 59, -32, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59 }, { - 11, -33, -33, -33, -33, -33, -33, -33, -33, -33, - -33, -33, -33, -33, -33, -33, -33, -33, -33 + 11, -33, -33, -33, -33, -33, -33, 60, -33, -33, + + -33, -33, -33, -33, -33, -33, -33, -33, -33, -33, + -33, -33, -33 }, { 11, -34, -34, -34, -34, -34, -34, -34, -34, -34, - -34, -34, -34, -34, -34, -34, -34, -34, -34 - + -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, + -34, -34, -34 }, { 11, -35, -35, -35, -35, -35, -35, -35, -35, -35, - -35, 60, 61, 61, -35, -35, -35, -35, -35 + -35, -35, -35, -35, -35, -35, -35, -35, -35, -35, + -35, -35, -35 }, { 11, -36, -36, -36, -36, -36, -36, -36, -36, -36, - -36, 61, 61, 61, -36, -36, -36, -36, -36 + -36, 61, 61, 61, -36, -36, -36, -36, 61, 61, + + 61, 61, -36 }, { 11, -37, -37, -37, -37, -37, -37, -37, -37, -37, - -37, -37, -37, -37, -37, 62, -37, -37, -37 + -37, -37, -37, -37, -37, 62, -37, -37, -37, -37, + -37, -37, -37 }, { 11, -38, -38, -38, -38, -38, -38, -38, -38, -38, - -38, -38, -38, -38, -38, -38, -38, -38, -38 + -38, -38, -38, -38, -38, -38, -38, -38, -38, -38, + -38, -38, -38 }, { 11, -39, -39, -39, -39, -39, -39, -39, -39, -39, - -39, -39, -39, -39, -39, 63, -39, -39, -39 + -39, -39, -39, -39, -39, 63, -39, -39, -39, -39, + -39, -39, -39 }, { 11, -40, -40, 64, -40, -40, -40, -40, -40, -40, - -40, -40, -40, -40, -40, -40, -40, -40, -40 + -40, -40, -40, -40, -40, -40, -40, -40, -40, -40, + -40, -40, -40 }, { 11, -41, -41, -41, -41, -41, -41, -41, -41, -41, - -41, -41, -41, -41, -41, -41, -41, -41, 65 + -41, -41, -41, -41, -41, -41, -41, -41, -41, -41, + -41, -41, 65 }, { 11, -42, 42, 43, -42, -42, 44, -42, -42, -42, - -42, -42, -42, -42, -42, -42, -42, -42, -42 + -42, -42, -42, -42, -42, -42, -42, -42, -42, -42, + -42, -42, -42 }, { 11, -43, -43, -43, -43, -43, -43, -43, -43, -43, - -43, -43, -43, -43, -43, -43, -43, -43, -43 + + -43, -43, -43, -43, -43, -43, -43, -43, -43, -43, + -43, -43, -43 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 - + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, 45, 45, 46, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45 + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45 }, { 11, -46, -46, -46, -46, -46, -46, -46, -46, -46, - -46, -46, -46, -46, -46, -46, -46, -46, -46 + -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, + + -46, -46, -46 }, { 11, -47, -47, -47, -47, -47, -47, -47, -47, -47, - -47, -47, -47, 47, -47, -47, -47, -47, -47 + -47, 66, -47, -47, -47, -47, -47, -47, -47, -47, + -47, -47, -47 }, { - 11, 48, 48, -48, 48, 48, 48, 48, 48, 48, - 48, 48, 48, 48, 48, 48, 48, 48, 48 + 11, -48, -48, -48, -48, -48, -48, -48, -48, -48, + -48, -48, -48, 48, -48, -48, -48, -48, 48, 48, + 48, 48, -48 }, { - 11, -49, 49, 50, -49, -49, -49, -49, -49, -49, - -49, -49, -49, -49, -49, -49, -49, -49, -49 + 11, 49, 49, -49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49 }, { - 11, 51, -50, -50, 51, 51, 51, 51, 51, 51, - 51, 51, 51, 51, 51, 51, 51, 51, 51 + 11, -50, 50, 51, -50, -50, -50, -50, -50, -50, + -50, -50, -50, -50, -50, -50, -50, -50, -50, -50, + -50, -50, -50 }, { - 11, -51, -51, -51, -51, -51, -51, -51, -51, -51, - -51, -51, -51, -51, -51, -51, -51, -51, -51 + 11, 52, -51, -51, 52, 52, 52, 52, 52, 52, + 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, + 52, 52, 52 }, { - 11, 52, 52, 53, 52, -52, 52, 52, -52, 52, - 52, 52, 52, 52, 52, 52, 52, -52, 52 + 11, -52, -52, -52, -52, -52, -52, -52, -52, -52, + -52, -52, -52, -52, -52, -52, -52, -52, -52, -52, + -52, -52, -52 }, { - 11, -53, -53, -53, -53, -53, -53, -53, -53, -53, - -53, -53, -53, -53, -53, -53, -53, -53, -53 + 11, 53, 53, 54, 53, -53, 53, 53, -53, 53, + + 53, 53, 53, 53, 53, 53, 53, -53, 53, 53, + 53, 53, 53 }, { - 11, -54, -54, 55, -54, -54, -54, -54, -54, -54, - -54, -54, -54, -54, -54, -54, -54, -54, -54 - + 11, -54, -54, -54, -54, -54, -54, -54, -54, -54, + -54, -54, -54, -54, -54, -54, -54, -54, -54, -54, + -54, -54, -54 }, { - 11, -55, -55, -55, -55, -55, -55, -55, -55, -55, - -55, -55, -55, -55, -55, -55, -55, -55, -55 + 11, -55, -55, 56, -55, -55, -55, -55, -55, -55, + -55, -55, -55, -55, -55, -55, -55, -55, -55, -55, + -55, -55, -55 }, { - 11, -56, 56, -56, -56, -56, -56, -56, -56, -56, - -56, -56, -56, -56, -56, -56, -56, -56, -56 + 11, -56, -56, -56, -56, -56, -56, -56, -56, -56, + -56, -56, -56, -56, -56, -56, -56, -56, -56, -56, + + -56, -56, -56 }, { - 11, -57, -57, -57, -57, -57, -57, -57, -57, -57, - -57, -57, -57, -57, -57, -57, -57, -57, -57 + 11, -57, 57, -57, -57, -57, -57, -57, -57, -57, + -57, -57, -57, -57, -57, -57, -57, -57, -57, -57, + -57, -57, -57 }, { - 11, 58, 58, -58, 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 58, 58 + 11, -58, -58, -58, -58, -58, -58, -58, -58, -58, + -58, -58, -58, -58, -58, -58, -58, -58, -58, -58, + -58, -58, -58 }, { - 11, -59, -59, -59, -59, -59, -59, -59, -59, -59, - -59, -59, -59, -59, -59, -59, -59, -59, -59 + 11, 59, 59, -59, 59, 59, 59, 59, 59, 59, + 59, 59, 59, 59, 59, 59, 59, 59, 59, 59, + 59, 59, 59 }, { 11, -60, -60, -60, -60, -60, -60, -60, -60, -60, - -60, 66, 61, 61, -60, -60, -60, -60, -60 + -60, -60, -60, -60, -60, -60, -60, -60, -60, -60, + -60, -60, -60 }, { 11, -61, -61, -61, -61, -61, -61, -61, -61, -61, - -61, 61, 61, 61, -61, -61, -61, -61, -61 + -61, 61, 61, 61, -61, -61, -61, -61, 61, 61, + 61, 61, -61 }, { 11, -62, -62, -62, -62, -62, -62, -62, -62, -62, - -62, -62, -62, -62, -62, -62, -62, -62, -62 + -62, -62, -62, -62, -62, -62, -62, -62, -62, -62, + -62, -62, -62 }, { 11, -63, -63, -63, -63, -63, -63, -63, -63, -63, - -63, -63, -63, -63, -63, -63, -63, -63, -63 + + -63, -63, -63, -63, -63, -63, -63, -63, -63, -63, + -63, -63, -63 }, { 11, -64, -64, -64, -64, -64, -64, -64, -64, -64, - -64, -64, -64, -64, -64, -64, -64, -64, -64 - + -64, -64, -64, -64, -64, -64, -64, -64, -64, -64, + -64, -64, -64 }, { 11, -65, -65, -65, -65, -65, -65, -65, -65, -65, - -65, -65, -65, -65, -65, -65, -65, -65, -65 + -65, -65, -65, -65, -65, -65, -65, -65, -65, -65, + -65, -65, -65 }, { 11, -66, -66, -66, -66, -66, -66, -66, -66, -66, - -66, 61, 61, 61, -66, -66, -66, -66, -66 + -66, -66, -66, -66, -66, -66, -66, -66, -66, 67, + + -66, -66, -66 + }, + + { + 11, -67, -67, -67, -67, -67, -67, -67, -67, -67, + -67, -67, -67, -67, -67, -67, -67, -67, 68, -67, + -67, -67, -67 + }, + + { + 11, -68, -68, -68, -68, -68, -68, -68, -68, -68, + -68, -68, -68, -68, -68, -68, -68, -68, -68, -68, + 69, -68, -68 + }, + + { + 11, -69, -69, -69, -69, -69, -69, -69, -69, -69, + -69, -69, -69, -69, -69, -69, -69, -69, -69, -69, + -69, 70, -69 + + }, + + { + 11, -70, -70, -70, -70, -70, -70, -70, -70, -70, + -70, 71, -70, -70, -70, -70, -70, -70, -70, -70, + -70, -70, -70 + }, + + { + 11, -71, -71, -71, -71, -71, -71, -71, -71, -71, + -71, 72, -71, -71, -71, -71, -71, -71, -71, -71, + -71, -71, -71 + }, + + { + 11, -72, -72, -72, -72, -72, -72, -72, -72, -72, + -72, 73, -72, -72, -72, -72, -72, -72, -72, -72, + -72, -72, -72 + }, + + { + 11, -73, -73, -73, -73, -73, -73, -73, -73, -73, + + -73, -73, -73, -73, -73, -73, -73, -73, -73, -73, + -73, -73, -73 }, } ; @@ -741,15 +868,16 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[67] = +static yyconst flex_int16_t yy_accept[74] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 39, 5, 4, 2, 3, 7, 8, 6, 37, 34, - 36, 29, 33, 32, 31, 27, 26, 21, 13, 20, - 24, 27, 11, 12, 23, 23, 18, 14, 19, 27, - 27, 4, 2, 3, 3, 1, 6, 37, 34, 36, - 35, 29, 28, 31, 30, 26, 15, 24, 9, 23, - 23, 16, 17, 25, 10, 22 + 39, 5, 4, 2, 3, 8, 9, 8, 6, 37, + 34, 36, 29, 33, 32, 31, 27, 26, 22, 14, + 21, 24, 27, 12, 13, 23, 19, 15, 20, 27, + 27, 4, 2, 3, 3, 1, 0, 6, 37, 34, + 36, 35, 29, 28, 31, 30, 26, 16, 24, 10, + 23, 17, 18, 25, 11, 0, 0, 0, 0, 0, + 0, 0, 7 } ; static yyconst flex_int32_t yy_ec[256] = @@ -765,9 +893,9 @@ static yyconst flex_int32_t yy_ec[256] = 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 1, 17, 1, 1, 13, 1, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 1, 18, 1, 1, 1, 1, 1, 1, + 18, 13, 13, 19, 13, 13, 13, 20, 13, 13, + 13, 21, 13, 13, 13, 13, 13, 13, 13, 13, + 13, 13, 1, 22, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -784,6 +912,9 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1 } ; +static yy_state_type yy_last_accepting_state; +static char *yy_last_accepting_cpos; + extern int zconf_flex_debug; int zconf_flex_debug = 0; @@ -944,7 +1075,12 @@ static int input (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k */ +#define YY_READ_BUF_SIZE 16384 +#else #define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -952,7 +1088,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( zconftext, zconfleng, 1, zconfout ) +#define ECHO do { if (fwrite( zconftext, zconfleng, 1, zconfout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -1073,7 +1209,15 @@ YY_DECL yy_current_state = (yy_start); yy_match: while ( (yy_current_state = yy_nxt[yy_current_state][ yy_ec[YY_SC_TO_UI(*yy_cp)] ]) > 0 ) + { + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + ++yy_cp; + } yy_current_state = -yy_current_state; @@ -1086,6 +1230,13 @@ do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = (yy_hold_char); + yy_cp = (yy_last_accepting_cpos) + 1; + yy_current_state = (yy_last_accepting_state); + goto yy_find_action; + case 1: /* rule 1 can match eol */ case 2: @@ -1132,10 +1283,21 @@ YY_RULE_SETUP YY_BREAK case 7: YY_RULE_SETUP - +{ + /* Support old syntax for help statement */ + return T_HELP; + } YY_BREAK case 8: -/* rule 8 can match eol */ +YY_RULE_SETUP +{ + fprintf(stderr, + "%s:%d:warning: ignoring unsupported character '%c'\n", + zconf_curname(), zconf_lineno(), *zconftext); + } + YY_BREAK +case 9: +/* rule 9 can match eol */ YY_RULE_SETUP { BEGIN(INITIAL); @@ -1144,51 +1306,51 @@ YY_RULE_SETUP } YY_BREAK -case 9: +case 10: YY_RULE_SETUP return T_AND; YY_BREAK -case 10: +case 11: YY_RULE_SETUP return T_OR; YY_BREAK -case 11: +case 12: YY_RULE_SETUP return T_OPEN_PAREN; YY_BREAK -case 12: +case 13: YY_RULE_SETUP return T_CLOSE_PAREN; YY_BREAK -case 13: +case 14: YY_RULE_SETUP return T_NOT; YY_BREAK -case 14: +case 15: YY_RULE_SETUP return T_EQUAL; YY_BREAK -case 15: +case 16: YY_RULE_SETUP return T_UNEQUAL; YY_BREAK -case 16: +case 17: YY_RULE_SETUP return T_LESS_EQUAL; YY_BREAK -case 17: +case 18: YY_RULE_SETUP return T_GREATER_EQUAL; YY_BREAK -case 18: +case 19: YY_RULE_SETUP return T_LESS; YY_BREAK -case 19: +case 20: YY_RULE_SETUP return T_GREATER; YY_BREAK -case 20: +case 21: YY_RULE_SETUP { str = zconftext[0]; @@ -1196,14 +1358,10 @@ YY_RULE_SETUP BEGIN(STRING); } YY_BREAK -case 21: -/* rule 21 can match eol */ -YY_RULE_SETUP -BEGIN(INITIAL); current_file->lineno++; return T_EOL; - YY_BREAK case 22: +/* rule 22 can match eol */ YY_RULE_SETUP -/* ignore */ +BEGIN(INITIAL); current_file->lineno++; return T_EOL; YY_BREAK case 23: YY_RULE_SETUP @@ -1669,6 +1827,11 @@ static int yy_get_next_buffer (void) for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { yy_current_state = yy_nxt[yy_current_state][(*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1)]; + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } } return yy_current_state; @@ -1682,10 +1845,20 @@ static int yy_get_next_buffer (void) static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; - + register char *yy_cp = (yy_c_buf_p); + yy_current_state = yy_nxt[yy_current_state][1]; yy_is_jam = (yy_current_state <= 0); + if ( ! yy_is_jam ) + { + if ( yy_accept[yy_current_state] ) + { + (yy_last_accepting_state) = yy_current_state; + (yy_last_accepting_cpos) = yy_cp; + } + } + return yy_is_jam ? 0 : yy_current_state; } @@ -2114,8 +2287,8 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * yystr ) /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will * scan from a @e copy of @a bytes. - * @param bytes the byte buffer to scan - * @param len the number of bytes in the buffer pointed to by @a bytes. + * @param yybytes the byte buffer to scan + * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -- 1.9.1
next prev parent reply other threads:[~2015-07-03 12:48 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-07-03 12:46 [PATCH 0/2] kconfig: warn of unhandled characters in statements Andreas Ruprecht 2015-07-03 12:46 ` Andreas Ruprecht 2015-07-03 12:46 ` [PATCH 1/2] kconfig: also " Andreas Ruprecht 2015-07-03 12:46 ` Andreas Ruprecht 2015-07-04 9:33 ` Paul Bolle 2015-07-05 6:44 ` Ulf Magnusson 2015-07-05 6:06 ` Ulf Magnusson [not found] ` <559BA09A.2030603@fau.de> [not found] ` <20150707144559.GA12760@huvuddator> 2015-07-08 10:17 ` Andreas Ruprecht 2015-07-08 20:18 ` Ulf Magnusson 2015-07-03 12:46 ` Andreas Ruprecht [this message] 2015-07-03 12:46 ` [PATCH 2/2] kconfig: Regenerate shipped zconf.lex.c file Andreas Ruprecht
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=b36990b7a6f5f59526bbfda1b24efd8972e8a364.1435927467.git.andreas.ruprecht@fau.de \ --to=andreas.ruprecht@fau.de \ --cc=linux-kbuild@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux@dominikbrodowski.net \ --cc=mmarek@suse.cz \ --cc=pebolle@tiscali.nl \ --cc=rafael.j.wysocki@intel.com \ --cc=stefan.hengelein@fau.de \ --cc=ulfalizer.lkml@gmail.com \ --cc=valentinrothberg@gmail.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.