Offset 1, 26 lines modifiedOffset 1, 26 lines modified
1 /*·A·Bison·parser,·made·by·GNU·Bison·3.6.4.··*/1 /*·A·Bison·parser,·made·by·GNU·Bison·3.8.2.··*/
  
2 /*·Bison·implementation·for·Yacc-like·parsers·in·C2 /*·Bison·implementation·for·Yacc-like·parsers·in·C
  
3 ···Copyright·(C)·1984,·1989-1990,·2000-2015,·2018-2020·Free·Software·Foundation,3 ···Copyright·(C)·1984,·1989-1990,·2000-2015,·2018-2021·Free·Software·Foundation,
4 ···Inc.4 ···Inc.
  
5 ···This·program·is·free·software:·you·can·redistribute·it·and/or·modify5 ···This·program·is·free·software:·you·can·redistribute·it·and/or·modify
6 ···it·under·the·terms·of·the·GNU·General·Public·License·as·published·by6 ···it·under·the·terms·of·the·GNU·General·Public·License·as·published·by
7 ···the·Free·Software·Foundation,·either·version·3·of·the·License,·or7 ···the·Free·Software·Foundation,·either·version·3·of·the·License,·or
8 ···(at·your·option)·any·later·version.8 ···(at·your·option)·any·later·version.
  
9 ···This·program·is·distributed·in·the·hope·that·it·will·be·useful,9 ···This·program·is·distributed·in·the·hope·that·it·will·be·useful,
10 ···but·WITHOUT·ANY·WARRANTY;·without·even·the·implied·warranty·of10 ···but·WITHOUT·ANY·WARRANTY;·without·even·the·implied·warranty·of
11 ···MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the11 ···MERCHANTABILITY·or·FITNESS·FOR·A·PARTICULAR·PURPOSE.··See·the
12 ···GNU·General·Public·License·for·more·details.12 ···GNU·General·Public·License·for·more·details.
  
13 ···You·should·have·received·a·copy·of·the·GNU·General·Public·License13 ···You·should·have·received·a·copy·of·the·GNU·General·Public·License
14 ···along·with·this·program.··If·not,·see·<http://www.gnu.org/licenses/>.··*/14 ···along·with·this·program.··If·not,·see·<https://www.gnu.org/licenses/>.··*/
  
15 /*·As·a·special·exception,·you·may·create·a·larger·work·that·contains15 /*·As·a·special·exception,·you·may·create·a·larger·work·that·contains
16 ···part·or·all·of·the·Bison·parser·skeleton·and·distribute·that·work16 ···part·or·all·of·the·Bison·parser·skeleton·and·distribute·that·work
17 ···under·terms·of·your·choice,·so·long·as·that·work·isn't·itself·a17 ···under·terms·of·your·choice,·so·long·as·that·work·isn't·itself·a
18 ···parser·generator·using·the·skeleton·or·a·modified·version·thereof18 ···parser·generator·using·the·skeleton·or·a·modified·version·thereof
19 ···as·a·parser·skeleton.··Alternatively,·if·you·modify·or·redistribute19 ···as·a·parser·skeleton.··Alternatively,·if·you·modify·or·redistribute
20 ···the·parser·skeleton·itself,·you·may·(at·your·option)·remove·this20 ···the·parser·skeleton·itself,·you·may·(at·your·option)·remove·this
Offset 41, 19 lines modifiedOffset 41, 19 lines modified
41 /*·All·symbols·defined·below·should·begin·with·yy·or·YY,·to·avoid41 /*·All·symbols·defined·below·should·begin·with·yy·or·YY,·to·avoid
42 ···infringing·on·user·name·space.··This·should·be·done·even·for·local42 ···infringing·on·user·name·space.··This·should·be·done·even·for·local
43 ···variables,·as·they·might·otherwise·be·expanded·by·user·macros.43 ···variables,·as·they·might·otherwise·be·expanded·by·user·macros.
44 ···There·are·some·unavoidable·exceptions·within·include·files·to44 ···There·are·some·unavoidable·exceptions·within·include·files·to
45 ···define·necessary·library·symbols;·they·are·noted·"INFRINGES·ON45 ···define·necessary·library·symbols;·they·are·noted·"INFRINGES·ON
46 ···USER·NAME·SPACE"·below.··*/46 ···USER·NAME·SPACE"·below.··*/
  
47 /*·Identify·Bison·output.··*/47 /*·Identify·Bison·output,·and·Bison·version.··*/
48 #define·YYBISON·148 #define·YYBISON·30802
  
49 /*·Bison·version.··*/49 /*·Bison·version·string.··*/
50 #define·YYBISON_VERSION·"3.6.4"50 #define·YYBISON_VERSION·"3.8.2"
  
51 /*·Skeleton·name.··*/51 /*·Skeleton·name.··*/
52 #define·YYSKELETON_NAME·"yacc.c"52 #define·YYSKELETON_NAME·"yacc.c"
  
53 /*·Pure·parsers.··*/53 /*·Pure·parsers.··*/
54 #define·YYPURE·154 #define·YYPURE·1
  
Offset 123, 97 lines modifiedOffset 123, 15 lines modified
123 #····define·YY_NULLPTR·0123 #····define·YY_NULLPTR·0
124 #···endif124 #···endif
125 #··else125 #··else
126 #···define·YY_NULLPTR·((void*)0)126 #···define·YY_NULLPTR·((void*)0)
127 #··endif127 #··endif
128 #·endif128 #·endif
  
129 /*·Use·api.header.include·to·#include·this·header 
130 ···instead·of·duplicating·it·here.··*/ 
131 #ifndef·YY_TRACEFS_SQLHIST_TAB_H_INCLUDED 
132 #·define·YY_TRACEFS_SQLHIST_TAB_H_INCLUDED 
133 /*·Debug·traces.··*/ 
134 #ifndef·TRACEFS_DEBUG 
135 #·if·defined·YYDEBUG 
136 #if·YYDEBUG 
137 #···define·TRACEFS_DEBUG·1 
138 #··else 
139 #···define·TRACEFS_DEBUG·0 
140 #··endif 
141 #·else·/*·!·defined·YYDEBUG·*/ 
142 #··define·TRACEFS_DEBUG·1 
143 #·endif·/*·!·defined·YYDEBUG·*/ 
144 #endif··/*·!·defined·TRACEFS_DEBUG·*/ 
145 #if·TRACEFS_DEBUG 
146 extern·int·tracefs_debug; 
147 #endif 
  
148 /*·Token·kinds.··*/ 
149 #ifndef·TRACEFS_TOKENTYPE 
150 #·define·TRACEFS_TOKENTYPE 
151 ··enum·tracefs_tokentype 
152 ··{ 
153 ····TRACEFS_EMPTY·=·-2, 
154 ····TRACEFS_EOF·=·0,···············/*·"end·of·file"··*/ 
155 ····TRACEFS_error·=·256,···········/*·error··*/ 
156 ····TRACEFS_UNDEF·=·257,···········/*·"invalid·token"··*/ 
157 ····AS·=·258,······················/*·AS··*/ 
158 ····SELECT·=·259,··················/*·SELECT··*/ 
159 ····FROM·=·260,····················/*·FROM··*/ 
160 ····JOIN·=·261,····················/*·JOIN··*/ 
161 ····ON·=·262,······················/*·ON··*/ 
162 ····WHERE·=·263,···················/*·WHERE··*/ 
163 ····PARSE_ERROR·=·264,·············/*·PARSE_ERROR··*/ 
164 ····CAST·=·265,····················/*·CAST··*/ 
165 ····NUMBER·=·266,··················/*·NUMBER··*/ 
166 ····field_type·=·267,··············/*·field_type··*/ 
167 ····STRING·=·268,··················/*·STRING··*/ 
168 ····FIELD·=·269,···················/*·FIELD··*/ 
169 ····LE·=·270,······················/*·LE··*/ 
170 ····GE·=·271,······················/*·GE··*/ 
171 ····EQ·=·272,······················/*·EQ··*/ 
172 ····NEQ·=·273,·····················/*·NEQ··*/ 
173 ····AND·=·274,·····················/*·AND··*/ 
174 ····OR·=·275·······················/*·OR··*/ 
175 ··}; 
176 ··typedef·enum·tracefs_tokentype·tracefs_token_kind_t; 
177 #endif 
  
178 /*·Value·type.··*/ 
179 #if·!·defined·TRACEFS_STYPE·&&·!·defined·TRACEFS_STYPE_IS_DECLARED 
180 union·TRACEFS_STYPE 
181 { 
182 #line·46·"sqlhist.y" 
  
183 »       int»    s32; 
184 »       char»   *string; 
185 »       long»   number; 
186 »       void»   *expr; 
  
187 #line·193·"sqlhist.tab.c"129 #include·"sqlhist.tab.h"
  
188 }; 
189 typedef·union·TRACEFS_STYPE·TRACEFS_STYPE; 
190 #·define·TRACEFS_STYPE_IS_TRIVIAL·1 
191 #·define·TRACEFS_STYPE_IS_DECLARED·1 
192 #endif 
  
  
  
193 int·tracefs_parse·(struct·sqlhist_bison·*sb); 
194 /*·"%code·provides"·blocks.··*/ 
195 #line·37·"sqlhist.y" 
  
196 ··#define·YYSTYPE·TRACEFS_STYPE 
197 ··#define·yylex·tracefs_lex 
198 ··#define·yyerror·tracefs_error 
  
199 #line·211·"sqlhist.tab.c" 
  
200 #endif·/*·!YY_TRACEFS_SQLHIST_TAB_H_INCLUDED··*/ 
201 /*·Symbol·kind.··*/130 /*·Symbol·kind.··*/
202 enum·yysymbol_kind_t131 enum·yysymbol_kind_t
203 {132 {
204 ··YYSYMBOL_YYEMPTY·=·-2,133 ··YYSYMBOL_YYEMPTY·=·-2,
205 ··YYSYMBOL_YYEOF·=·0,······················/*·"end·of·file"··*/134 ··YYSYMBOL_YYEOF·=·0,······················/*·"end·of·file"··*/
206 ··YYSYMBOL_YYerror·=·1,····················/*·error··*/135 ··YYSYMBOL_YYerror·=·1,····················/*·error··*/
207 ··YYSYMBOL_YYUNDEF·=·2,····················/*·"invalid·token"··*/136 ··YYSYMBOL_YYUNDEF·=·2,····················/*·"invalid·token"··*/
Offset 316, 14 lines modifiedOffset 234, 26 lines modified
316 typedef·__INT_LEAST16_TYPE__·yytype_int16;234 typedef·__INT_LEAST16_TYPE__·yytype_int16;
317 #elif·defined·YY_STDINT_H235 #elif·defined·YY_STDINT_H
318 typedef·int_least16_t·yytype_int16;236 typedef·int_least16_t·yytype_int16;
319 #else237 #else
320 typedef·short·yytype_int16;238 typedef·short·yytype_int16;
321 #endif239 #endif
  
 240 /*·Work·around·bug·in·HP-UX·11.23,·which·defines·these·macros
 241 ···incorrectly·for·preprocessor·constants.··This·workaround·can·likely
 242 ···be·removed·in·2023,·as·HPE·has·promised·support·for·HP-UX·11.23
 243 ···(aka·HP-UX·11i·v2)·only·through·the·end·of·2022;·see·Table·2·of
 244 ···<https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.··*/
 245 #ifdef·__hpux
 246 #·undef·UINT_LEAST8_MAX
 247 #·undef·UINT_LEAST16_MAX
 248 #·define·UINT_LEAST8_MAX·255
 249 #·define·UINT_LEAST16_MAX·65535
 250 #endif
  
322 #if·defined·__UINT_LEAST8_MAX__·&&·__UINT_LEAST8_MAX__·<=·__INT_MAX__251 #if·defined·__UINT_LEAST8_MAX__·&&·__UINT_LEAST8_MAX__·<=·__INT_MAX__
323 typedef·__UINT_LEAST8_TYPE__·yytype_uint8;252 typedef·__UINT_LEAST8_TYPE__·yytype_uint8;
324 #elif·(!defined·__UINT_LEAST8_MAX__·&&·defined·YY_STDINT_H·\253 #elif·(!defined·__UINT_LEAST8_MAX__·&&·defined·YY_STDINT_H·\
325 ·······&&·UINT_LEAST8_MAX·<=·INT_MAX)254 ·······&&·UINT_LEAST8_MAX·<=·INT_MAX)
326 typedef·uint_least8_t·yytype_uint8;255 typedef·uint_least8_t·yytype_uint8;
327 #elif·!defined·__UINT_LEAST8_MAX__·&&·UCHAR_MAX·<=·INT_MAX256 #elif·!defined·__UINT_LEAST8_MAX__·&&·UCHAR_MAX·<=·INT_MAX
328 typedef·unsigned·char·yytype_uint8;257 typedef·unsigned·char·yytype_uint8;
Offset 413, 25 lines modifiedOffset 343, 31 lines modified
413 #·else343 #·else
414 #··define·YY_ATTRIBUTE_UNUSED344 #··define·YY_ATTRIBUTE_UNUSED
415 #·endif345 #·endif
416 #endif346 #endif
  
417 /*·Suppress·unused-variable·warnings·by·"using"·E.··*/347 /*·Suppress·unused-variable·warnings·by·"using"·E.··*/
418 #if·!·defined·lint·||·defined·__GNUC__348 #if·!·defined·lint·||·defined·__GNUC__
419 #·define·YYUSE(E)·((void)·(E))349 #·define·YY_USE(E)·((void)·(E))
420 #else350 #else
421 #·define·YYUSE(E)·/*·empty·*/351 #·define·YY_USE(E)·/*·empty·*/
422 #endif352 #endif
  
423 #if·defined·__GNUC__·&&·!·defined·__ICC·&&·407·<=·__GNUC__·*·100·+·__GNUC_MINOR__ 
424 /*·Suppress·an·incorrect·diagnostic·about·yylval·being·uninitialized.··*/353 /*·Suppress·an·incorrect·diagnostic·about·yylval·being·uninitialized.··*/
 354 #if·defined·__GNUC__·&&·!·defined·__ICC·&&·406·<=·__GNUC__·*·100·+·__GNUC_MINOR__
 355 #·if·__GNUC__·*·100·+·__GNUC_MINOR__·<·407
425 #·define·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN····························\356 #··define·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN···························\
 357 ····_Pragma·("GCC·diagnostic·push")·····································\
 358 ····_Pragma·("GCC·diagnostic·ignored·\"-Wuninitialized\"")
 359 #·else
 360 #··define·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN···························\
426 ····_Pragma·("GCC·diagnostic·push")·····································\361 ····_Pragma·("GCC·diagnostic·push")·····································\
427 ····_Pragma·("GCC·diagnostic·ignored·\"-Wuninitialized\"")··············\362 ····_Pragma·("GCC·diagnostic·ignored·\"-Wuninitialized\"")··············\
428 ····_Pragma·("GCC·diagnostic·ignored·\"-Wmaybe-uninitialized\"")363 ····_Pragma·("GCC·diagnostic·ignored·\"-Wmaybe-uninitialized\"")
 364 #·endif
429 #·define·YY_IGNORE_MAYBE_UNINITIALIZED_END······\365 #·define·YY_IGNORE_MAYBE_UNINITIALIZED_END······\
430 ····_Pragma·("GCC·diagnostic·pop")366 ····_Pragma·("GCC·diagnostic·pop")
431 #else367 #else
432 #·define·YY_INITIAL_VALUE(Value)·Value368 #·define·YY_INITIAL_VALUE(Value)·Value
433 #endif369 #endif
434 #ifndef·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN370 #ifndef·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
435 #·define·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN371 #·define·YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
Offset 593, 14 lines modifiedOffset 529, 15 lines modified
593 /*·YYNNTS·--·Number·of·nonterminals.··*/529 /*·YYNNTS·--·Number·of·nonterminals.··*/
594 #define·YYNNTS··28530 #define·YYNNTS··28
595 /*·YYNRULES·--·Number·of·rules.··*/531 /*·YYNRULES·--·Number·of·rules.··*/
596 #define·YYNRULES··61532 #define·YYNRULES··61
597 /*·YYNSTATES·--·Number·of·states.··*/533 /*·YYNSTATES·--·Number·of·states.··*/
598 #define·YYNSTATES··111534 #define·YYNSTATES··111
  
 535 /*·YYMAXUTOK·--·Last·valid·token·kind.··*/
599 #define·YYMAXUTOK···276536 #define·YYMAXUTOK···276
  
  
600 /*·YYTRANSLATE(TOKEN-NUM)·--·Symbol·number·corresponding·to·TOKEN-NUM537 /*·YYTRANSLATE(TOKEN-NUM)·--·Symbol·number·corresponding·to·TOKEN-NUM
601 ···as·returned·by·yylex,·with·out-of-bounds·checking.··*/538 ···as·returned·by·yylex,·with·out-of-bounds·checking.··*/
602 #define·YYTRANSLATE(YYX)································\539 #define·YYTRANSLATE(YYX)································\
603 ··(0·<=·(YYX)·&&·(YYX)·<=·YYMAXUTOK·····················\540 ··(0·<=·(YYX)·&&·(YYX)·<=·YYMAXUTOK·····················\
Offset 638, 15 lines modifiedOffset 575, 15 lines modified
638 ·······2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,575 ·······2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,·····2,
639 ·······2,·····2,·····2,·····2,·····2,·····2,·····1,·····2,·····3,·····4,576 ·······2,·····2,·····2,·····2,·····2,·····2,·····1,·····2,·····3,·····4,
640 ·······5,·····6,·····7,·····8,·····9,····10,····11,····12,····13,····14,577 ·······5,·····6,·····7,·····8,·····9,····10,····11,····12,····13,····14,
641 ······15,····16,····17,····18,····19,····20,····31578 ······15,····16,····17,····18,····19,····20,····31
642 };579 };
  
643 #if·TRACEFS_DEBUG580 #if·TRACEFS_DEBUG
644 ··/*·YYRLINE[YYN]·--·Source·line·where·rule·number·YYN·was·defined.··*/581 /*·YYRLINE[YYN]·--·Source·line·where·rule·number·YYN·was·defined.··*/
645 static·const·yytype_uint8·yyrline[]·=582 static·const·yytype_uint8·yyrline[]·=
646 {583 {
647 ·······0,····75,····75,····78,····79,····82,····86,····90,····91,····95,584 ·······0,····75,····75,····78,····79,····82,····86,····90,····91,····95,
648 ······99,···106,···107,···108,···109,···110,···117,···122,···130,···131,585 ······99,···106,···107,···108,···109,···110,···117,···122,···130,···131,
649 ·····135,···139,···143,···147,···151,···152,···157,···158,···159,···160,586 ·····135,···139,···143,···147,···151,···152,···157,···158,···159,···160,
650 ·····161,···162,···163,···164,···165,···166,···170,···171,···172,···173,587 ·····161,···162,···163,···164,···165,···166,···170,···171,···172,···173,
651 ·····174,···178,···179,···180,···181,···182,···186,···195,···196,···197,588 ·····174,···178,···179,···180,···181,···182,···186,···195,···196,···197,
Offset 682, 38 lines modifiedOffset 619, 26 lines modified
682 static·const·char·*619 static·const·char·*
683 yysymbol_name·(yysymbol_kind_t·yysymbol)620 yysymbol_name·(yysymbol_kind_t·yysymbol)
684 {621 {
685 ··return·yytname[yysymbol];622 ··return·yytname[yysymbol];
686 }623 }
687 #endif624 #endif
  
688 #ifdef·YYPRINT 
689 /*·YYTOKNUM[NUM]·--·(External)·token·number·corresponding·to·the 
690 ···(internal)·symbol·number·NUM·(which·must·be·that·of·a·token).··*/ 
691 static·const·yytype_int16·yytoknum[]·= 
692 { 
693 ·······0,···256,···257,···258,···259,···260,···261,···262,···263,···264, 
694 ·····265,···266,···267,···268,···269,···270,···271,···272,···273,···274, 
695 ·····275,····43,····45,····42,····47,····60,····62,····44,····40,····41, 
696 ······61,···276,····38,···126,····33 
697 }; 
698 #endif 
  
699 #define·YYPACT_NINF·(-58)625 #define·YYPACT_NINF·(-58)
  
700 #define·yypact_value_is_default(Yyn)·\626 #define·yypact_value_is_default(Yyn)·\
701 ··((Yyn)·==·YYPACT_NINF)627 ··((Yyn)·==·YYPACT_NINF)
  
702 #define·YYTABLE_NINF·(-1)628 #define·YYTABLE_NINF·(-1)
  
703 #define·yytable_value_is_error(Yyn)·\629 #define·yytable_value_is_error(Yyn)·\
704 ··0630 ··0
  
705 ··/*·YYPACT[STATE-NUM]·--·Index·in·YYTABLE·of·the·portion·describing631 /*·YYPACT[STATE-NUM]·--·Index·in·YYTABLE·of·the·portion·describing
706 ·····STATE-NUM.··*/632 ···STATE-NUM.··*/
707 static·const·yytype_int8·yypact[]·=633 static·const·yytype_int8·yypact[]·=
708 {634 {
709 ·······4,···-58,····13,····11,···-58,···-58,·····5,···-58,····43,····53,635 ·······4,···-58,····13,····11,···-58,···-58,·····5,···-58,····43,····53,
710 ······45,····29,···-58,····19,····43,····44,····32,····60,···-58,····73,636 ······45,····29,···-58,····19,····43,····44,····32,····60,···-58,····73,
711 ······11,····75,···-58,···-58,···-58,····43,····43,····87,···-58,···-58,637 ······11,····75,···-58,···-58,···-58,····43,····43,····87,···-58,···-58,
712 ······29,···-58,···-58,···-58,····60,····83,···-58,···-58,···-58,···-58,638 ······29,···-58,···-58,···-58,····60,····83,···-58,···-58,···-58,···-58,
713 ·····-58,····78,···-58,····86,····14,···-58,···-58,····65,····60,····-4,639 ·····-58,····78,···-58,····86,····14,···-58,···-58,····65,····60,····-4,
Offset 722, 17 lines modifiedOffset 647, 17 lines modified
722 ······33,····33,····33,····33,····84,····14,····14,····14,····60,····60,647 ······33,····33,····33,····33,····84,····14,····14,····14,····60,····60,
723 ······60,····-4,···-58,····-4,····-4,···-58,····49,···-58,···-58,···-58,648 ······60,····-4,···-58,····-4,····-4,···-58,····49,···-58,···-58,···-58,
724 ·····-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,649 ·····-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,···-58,
725 ·····-58,···-58,···-58,···-58,···-58,···-58,····51,···-58,···-58,···-58,650 ·····-58,···-58,···-58,···-58,···-58,···-58,····51,···-58,···-58,···-58,
726 ·····-58651 ·····-58
727 };652 };
  
728 ··/*·YYDEFACT[STATE-NUM]·--·Default·reduction·number·in·state·STATE-NUM.653 /*·YYDEFACT[STATE-NUM]·--·Default·reduction·number·in·state·STATE-NUM.
729 ·····Performed·when·YYTABLE·does·not·specify·something·else·to·do.··Zero654 ···Performed·when·YYTABLE·does·not·specify·something·else·to·do.··Zero
730 ·····means·the·default·is·an·error.··*/655 ···means·the·default·is·an·error.··*/
731 static·const·yytype_int8·yydefact[]·=656 static·const·yytype_int8·yydefact[]·=
732 {657 {
733 ·······0,·····5,·····0,·····0,·····2,·····1,·····0,····20,·····0,·····0,658 ·······0,·····5,·····0,·····0,·····2,·····1,·····0,····20,·····0,·····0,
734 ·······7,·····9,····13,····11,·····0,·····0,·····0,·····0,·····6,····53,659 ·······7,·····9,····13,····11,·····0,·····0,·····0,·····0,·····6,····53,
735 ·······0,·····0,····22,····10,·····4,·····0,·····0,·····0,····14,····12,660 ·······0,·····0,····22,····10,·····4,·····0,·····0,·····0,····14,····12,
736 ······20,····56,····19,····18,·····0,····51,····54,·····8,·····3,····16,661 ······20,····56,····19,····18,·····0,····51,····54,·····8,·····3,····16,
737 ······17,·····0,····21,·····0,·····0,····52,····55,·····0,·····0,·····0,662 ······17,·····0,····21,·····0,·····0,····52,····55,·····0,·····0,·····0,
Offset 741, 33 lines modifiedOffset 666, 33 lines modified
741 ·······0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,666 ·······0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,·····0,
742 ·······0,·····0,····39,·····0,·····0,····42,·····0,····25,····23,····24,667 ·······0,·····0,····39,·····0,·····0,····42,·····0,····25,····23,····24,
743 ······28,····29,····31,····32,····26,····27,····30,····33,····34,····35,668 ······28,····29,····31,····32,····26,····27,····30,····33,····34,····35,
744 ······41,····49,····48,····59,····58,····61,·····0,····37,····36,····43,669 ······41,····49,····48,····59,····58,····61,·····0,····37,····36,····43,
745 ······38670 ······38
746 };671 };
  
747 ··/*·YYPGOTO[NTERM-NUM].··*/672 /*·YYPGOTO[NTERM-NUM].··*/
748 static·const·yytype_int8·yypgoto[]·=673 static·const·yytype_int8·yypgoto[]·=
749 {674 {
750 ·····-58,···-58,····69,···-58,···-58,····80,···-58,···-58,····90,···-16,675 ·····-58,···-58,····69,···-58,···-58,····80,···-58,···-58,····90,···-16,
751 ······-3,···-58,····81,····27,····15,···-41,···-57,····28,···-58,···-21,676 ······-3,···-58,····81,····27,····15,···-41,···-57,····28,···-58,···-21,
752 ·····-58,···-58,···-58,···-58,···-58,···-58,···-58,····24677 ·····-58,···-58,···-58,···-58,···-58,···-58,···-58,····24
753 };678 };
  
754 ··/*·YYDEFGOTO[NTERM-NUM].··*/679 /*·YYDEFGOTO[NTERM-NUM].··*/
755 static·const·yytype_int8·yydefgoto[]·=680 static·const·yytype_int8·yydefgoto[]·=
756 {681 {
757 ······-1,·····2,····23,·····3,·····4,·····9,····10,····11,····12,····57,682 ·······0,·····2,····23,·····3,·····4,·····9,····10,····11,····12,····57,
758 ······51,····33,····24,····89,····90,····61,····62,····53,····54,····55,683 ······51,····33,····24,····89,····90,····61,····62,····53,····54,····55,
759 ······45,····46,····35,····18,····19,····36,····58,····59684 ······45,····46,····35,····18,····19,····36,····58,····59
760 };685 };
  
761 ··/*·YYTABLE[YYPACT[STATE-NUM]]·--·What·to·do·in·state·STATE-NUM.··If686 /*·YYTABLE[YYPACT[STATE-NUM]]·--·What·to·do·in·state·STATE-NUM.··If
762 ·····positive,·shift·that·token.··If·negative,·reduce·the·rule·whose687 ···positive,·shift·that·token.··If·negative,·reduce·the·rule·whose
763 ·····number·is·the·opposite.··If·YYTABLE_NINF,·syntax·error.··*/688 ···number·is·the·opposite.··If·YYTABLE_NINF,·syntax·error.··*/
764 static·const·yytype_int8·yytable[]·=689 static·const·yytype_int8·yytable[]·=
765 {690 {
766 ······13,····31,·····7,····52,····76,····16,····86,····78,·····1,····64,691 ······13,····31,·····7,····52,····76,····16,····86,····78,·····1,····64,
767 ·······7,····27,····77,·····5,····32,·····7,····63,····13,····43,····82,692 ·······7,····27,····77,·····5,····32,·····7,····63,····13,····43,····82,
768 ······79,·····6,····39,····40,···106,·····7,···107,···108,·····7,····81,693 ······79,·····6,····39,····40,···106,·····7,···107,···108,·····7,····81,
769 ······60,····32,····21,····14,····52,····52,····52,····83,····84,·····8,694 ······60,····32,····21,····14,····52,····52,····52,····83,····84,·····8,
770 ······25,····26,····49,····22,····87,····32,····88,····85,····50,····65,695 ······25,····26,····49,····22,····87,····32,····88,····85,····50,····65,
Offset 790, 16 lines modifiedOffset 715, 16 lines modified
790 ······26,····29,····78,····79,····30,····31,····32,····33,····19,····20,715 ······26,····29,····78,····79,····30,····31,····32,····33,····19,····20,
791 ······19,····20,····27,····29,····14,····78,····79,····80,····29,·····6,716 ······19,····20,····27,····29,····14,····78,····79,····80,····29,·····6,
792 ······29,····66,····67,····68,····69,····70,····71,····72,····73,····14,717 ······29,····66,····67,····68,····69,····70,····71,····72,····73,····14,
793 ·······3,·····8,····14,·····7,····29,····27,····20,····13,·····8,····30,718 ·······3,·····8,····14,·····7,····29,····27,····20,····13,·····8,····30,
794 ······20,····74,····21,····75,····80719 ······20,····74,····21,····75,····80
795 };720 };
  
796 ··/*·YYSTOS[STATE-NUM]·--·The·(internal·number·of·the)·accessing721 /*·YYSTOS[STATE-NUM]·--·The·symbol·kind·of·the·accessing·symbol·of
797 ·····symbol·of·state·STATE-NUM.··*/722 ···state·STATE-NUM.··*/
798 static·const·yytype_int8·yystos[]·=723 static·const·yytype_int8·yystos[]·=
799 {724 {
800 ·······0,·····4,····36,····38,····39,·····0,····10,····14,····28,····40,725 ·······0,·····4,····36,····38,····39,·····0,····10,····14,····28,····40,
801 ······41,····42,····43,····45,····28,····43,····45,·····5,····58,····59,726 ······41,····42,····43,····45,····28,····43,····45,·····5,····58,····59,
802 ······27,·····3,····14,····37,····47,····21,····22,····45,····29,····29,727 ······27,·····3,····14,····37,····47,····21,····22,····45,····29,····29,
803 ······14,····44,····45,····46,·····6,····57,····60,····40,····47,····45,728 ······14,····44,····45,····46,·····6,····57,····60,····40,····47,····45,
804 ······45,·····3,····37,····44,·····8,····55,····56,····14,·····7,····28,729 ······45,·····3,····37,····44,·····8,····55,····56,····14,·····7,····28,
Offset 808, 27 lines modifiedOffset 733, 27 lines modified
808 ······26,····30,····31,····32,····33,····20,····19,····27,····17,····30,733 ······26,····30,····31,····32,····33,····20,····19,····27,····17,····30,
809 ······27,····28,····50,····19,····20,····29,····51,····11,····13,····48,734 ······27,····28,····50,····19,····20,····29,····51,····11,····13,····48,
810 ······49,····49,····49,····49,····49,····49,····49,····49,····49,····48,735 ······49,····49,····49,····49,····49,····49,····49,····49,····49,····48,
811 ······52,····54,····54,····44,····44,····62,····51,····51,····51,····29,736 ······52,····54,····54,····44,····44,····62,····51,····51,····51,····29,
812 ······29737 ······29
813 };738 };
  
814 ··/*·YYR1[YYN]·--·Symbol·number·of·symbol·that·rule·YYN·derives.··*/739 /*·YYR1[RULE-NUM]·--·Symbol·kind·of·the·left-hand·side·of·rule·RULE-NUM.··*/
815 static·const·yytype_int8·yyr1[]·=740 static·const·yytype_int8·yyr1[]·=
816 {741 {
817 ·······0,····35,····36,····37,····37,····38,····39,····40,····40,····41,742 ·······0,····35,····36,····37,····37,····38,····39,····40,····40,····41,
818 ······41,····42,····42,····42,····42,····42,····43,····43,····44,····44,743 ······41,····42,····42,····42,····42,····42,····43,····43,····44,····44,
819 ······45,····46,····47,····48,····49,····49,····50,····50,····50,····50,744 ······45,····46,····47,····48,····49,····49,····50,····50,····50,····50,
820 ······50,····50,····50,····50,····50,····50,····51,····51,····51,····51,745 ······50,····50,····50,····50,····50,····50,····51,····51,····51,····51,
821 ······51,····52,····52,····52,····52,····52,····53,····54,····54,····54,746 ······51,····52,····52,····52,····52,····52,····53,····54,····54,····54,
822 ······55,····56,····56,····57,····57,····58,····59,····60,····61,····61,747 ······55,····56,····56,····57,····57,····58,····59,····60,····61,····61,
823 ······62,····62748 ······62,····62
824 };749 };
  
825 ··/*·YYR2[YYN]·--·Number·of·symbols·on·the·right·hand·side·of·rule·YYN.··*/750 /*·YYR2[RULE-NUM]·--·Number·of·symbols·on·the·right-hand·side·of·rule·RULE-NUM.··*/
826 static·const·yytype_int8·yyr2[]·=751 static·const·yytype_int8·yyr2[]·=
827 {752 {
828 ·······0,·····2,·····1,·····2,·····1,·····1,·····3,·····1,·····3,·····1,753 ·······0,·····2,·····1,·····2,·····1,·····1,·····3,·····1,·····3,·····1,
829 ·······2,·····1,·····3,·····1,·····3,·····6,·····3,·····3,·····1,·····1,754 ·······2,·····1,·····3,·····1,·····3,·····6,·····3,·····3,·····1,·····1,
830 ·······1,·····2,·····1,·····1,·····1,·····1,·····3,·····3,·····3,·····3,755 ·······1,·····2,·····1,·····1,·····1,·····1,·····3,·····3,·····3,·····3,
831 ·······3,·····3,·····3,·····3,·····3,·····3,·····3,·····3,·····4,·····2,756 ·······3,·····3,·····3,·····3,·····3,·····3,·····3,·····3,·····4,·····2,
832 ·······1,·····3,·····3,·····4,·····2,·····1,·····1,·····1,·····3,·····3,757 ·······1,·····3,·····3,·····4,·····2,·····1,·····1,·····1,·····3,·····3,
Offset 841, 14 lines modifiedOffset 766, 15 lines modified
  
841 #define·yyerrok·········(yyerrstatus·=·0)766 #define·yyerrok·········(yyerrstatus·=·0)
842 #define·yyclearin·······(yychar·=·TRACEFS_EMPTY)767 #define·yyclearin·······(yychar·=·TRACEFS_EMPTY)
  
843 #define·YYACCEPT········goto·yyacceptlab768 #define·YYACCEPT········goto·yyacceptlab
844 #define·YYABORT·········goto·yyabortlab769 #define·YYABORT·········goto·yyabortlab
845 #define·YYERROR·········goto·yyerrorlab770 #define·YYERROR·········goto·yyerrorlab
 771 #define·YYNOMEM·········goto·yyexhaustedlab
  
  
846 #define·YYRECOVERING()··(!!yyerrstatus)772 #define·YYRECOVERING()··(!!yyerrstatus)
  
847 #define·YYBACKUP(Token,·Value)····································\773 #define·YYBACKUP(Token,·Value)····································\
848 ··do······························································\774 ··do······························································\
849 ····if·(yychar·==·TRACEFS_EMPTY)········································\775 ····if·(yychar·==·TRACEFS_EMPTY)········································\
Offset 881, 18 lines modifiedOffset 807, 15 lines modified
  
881 #·define·YYDPRINTF(Args)························\807 #·define·YYDPRINTF(Args)························\
882 do·{············································\808 do·{············································\
883 ··if·(yydebug)··································\809 ··if·(yydebug)··································\
884 ····YYFPRINTF·Args;·····························\810 ····YYFPRINTF·Args;·····························\
885 }·while·(0)811 }·while·(0)
  
  
886 /*·This·macro·is·provided·for·backward·compatibility.·*/ 
887 #·ifndef·YY_LOCATION_PRINT 
888 #··define·YY_LOCATION_PRINT(File,·Loc)·((void)·0) 
889 #·endif 
  
  
890 #·define·YY_SYMBOL_PRINT(Title,·Kind,·Value,·Location)····················\812 #·define·YY_SYMBOL_PRINT(Title,·Kind,·Value,·Location)····················\
891 do·{······································································\813 do·{······································································\
892 ··if·(yydebug)····························································\814 ··if·(yydebug)····························································\
893 ····{·····································································\815 ····{·····································································\
894 ······YYFPRINTF·(stderr,·"%s·",·Title);···································\816 ······YYFPRINTF·(stderr,·"%s·",·Title);···································\
Offset 908, 24 lines modifiedOffset 831, 20 lines modified
908 `-----------------------------------*/831 `-----------------------------------*/
  
909 static·void832 static·void
910 yy_symbol_value_print·(FILE·*yyo,833 yy_symbol_value_print·(FILE·*yyo,
911 ·······················yysymbol_kind_t·yykind,·YYSTYPE·const·*·const·yyvaluep,·struct·sqlhist_bison·*sb)834 ·······················yysymbol_kind_t·yykind,·YYSTYPE·const·*·const·yyvaluep,·struct·sqlhist_bison·*sb)
912 {835 {
913 ··FILE·*yyoutput·=·yyo;836 ··FILE·*yyoutput·=·yyo;
914 ··YYUSE·(yyoutput);837 ··YY_USE·(yyoutput);
915 ··YYUSE·(sb);838 ··YY_USE·(sb);
916 ··if·(!yyvaluep)839 ··if·(!yyvaluep)
917 ····return;840 ····return;
918 #·ifdef·YYPRINT 
919 ··if·(yykind·<·YYNTOKENS) 
920 ····YYPRINT·(yyo,·yytoknum[yykind],·*yyvaluep); 
921 #·endif 
922 ··YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN841 ··YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
923 ··YYUSE·(yykind);842 ··YY_USE·(yykind);
924 ··YY_IGNORE_MAYBE_UNINITIALIZED_END843 ··YY_IGNORE_MAYBE_UNINITIALIZED_END
925 }844 }
  
  
926 /*---------------------------.845 /*---------------------------.
927 |·Print·this·symbol·on·YYO.··|846 |·Print·this·symbol·on·YYO.··|
928 `---------------------------*/847 `---------------------------*/
Offset 1031, 22 lines modifiedOffset 950, 22 lines modified
1031 |·Release·the·memory·associated·to·this·symbol.··|950 |·Release·the·memory·associated·to·this·symbol.··|
1032 `-----------------------------------------------*/951 `-----------------------------------------------*/
  
1033 static·void952 static·void
1034 yydestruct·(const·char·*yymsg,953 yydestruct·(const·char·*yymsg,
1035 ············yysymbol_kind_t·yykind,·YYSTYPE·*yyvaluep,·struct·sqlhist_bison·*sb)954 ············yysymbol_kind_t·yykind,·YYSTYPE·*yyvaluep,·struct·sqlhist_bison·*sb)
1036 {955 {
1037 ··YYUSE·(yyvaluep);956 ··YY_USE·(yyvaluep);
1038 ··YYUSE·(sb);957 ··YY_USE·(sb);
1039 ··if·(!yymsg)958 ··if·(!yymsg)
1040 ····yymsg·=·"Deleting";959 ····yymsg·=·"Deleting";
1041 ··YY_SYMBOL_PRINT·(yymsg,·yykind,·yyvaluep,·yylocationp);960 ··YY_SYMBOL_PRINT·(yymsg,·yykind,·yyvaluep,·yylocationp);
  
1042 ··YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN961 ··YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
1043 ··YYUSE·(yykind);962 ··YY_USE·(yykind);
1044 ··YY_IGNORE_MAYBE_UNINITIALIZED_END963 ··YY_IGNORE_MAYBE_UNINITIALIZED_END
1045 }964 }
  
  
  
  
  
Offset 1054, 80 lines modifiedOffset 973, 68 lines modified
1054 /*----------.973 /*----------.
1055 |·yyparse.··|974 |·yyparse.··|
1056 `----------*/975 `----------*/
  
1057 int976 int
1058 yyparse·(struct·sqlhist_bison·*sb)977 yyparse·(struct·sqlhist_bison·*sb)
1059 {978 {
1060 /*·The·lookahead·symbol.··*/979 /*·Lookahead·token·kind.··*/
1061 int·yychar;980 int·yychar;
  
  
1062 /*·The·semantic·value·of·the·lookahead·symbol.··*/981 /*·The·semantic·value·of·the·lookahead·symbol.··*/
1063 /*·Default·value·used·for·initialization,·for·pacifying·older·GCCs982 /*·Default·value·used·for·initialization,·for·pacifying·older·GCCs
1064 ···or·non-GCC·compilers.··*/983 ···or·non-GCC·compilers.··*/
1065 YY_INITIAL_VALUE·(static·YYSTYPE·yyval_default;)984 YY_INITIAL_VALUE·(static·YYSTYPE·yyval_default;)
1066 YYSTYPE·yylval·YY_INITIAL_VALUE·(=·yyval_default);985 YYSTYPE·yylval·YY_INITIAL_VALUE·(=·yyval_default);
  
1067 ····/*·Number·of·syntax·errors·so·far.··*/986 ····/*·Number·of·syntax·errors·so·far.··*/
1068 ····int·yynerrs;987 ····int·yynerrs·=·0;
  
1069 ····yy_state_fast_t·yystate;988 ····yy_state_fast_t·yystate·=·0;
1070 ····/*·Number·of·tokens·to·shift·before·error·messages·enabled.··*/989 ····/*·Number·of·tokens·to·shift·before·error·messages·enabled.··*/
1071 ····int·yyerrstatus;990 ····int·yyerrstatus·=·0;
  
1072 ····/*·The·stacks·and·their·tools: 
1073 ·······'yyss':·related·to·states. 
1074 ·······'yyvs':·related·to·semantic·values. 
  
1075 ·······Refer·to·the·stacks·through·separate·pointers,·to·allow·yyoverflow991 ····/*·Refer·to·the·stacks·through·separate·pointers,·to·allow·yyoverflow
1076 ·······to·reallocate·them·elsewhere.··*/992 ·······to·reallocate·them·elsewhere.··*/
  
1077 ····/*·Their·size.··*/993 ····/*·Their·size.··*/
1078 ····YYPTRDIFF_T·yystacksize;994 ····YYPTRDIFF_T·yystacksize·=·YYINITDEPTH;
  
1079 ····/*·The·state·stack.··*/995 ····/*·The·state·stack:·array,·bottom,·top.··*/
1080 ····yy_state_t·yyssa[YYINITDEPTH];996 ····yy_state_t·yyssa[YYINITDEPTH];
1081 ····yy_state_t·*yyss;997 ····yy_state_t·*yyss·=·yyssa;
1082 ····yy_state_t·*yyssp;998 ····yy_state_t·*yyssp·=·yyss;
  
1083 ····/*·The·semantic·value·stack.··*/999 ····/*·The·semantic·value·stack:·array,·bottom,·top.··*/
1084 ····YYSTYPE·yyvsa[YYINITDEPTH];1000 ····YYSTYPE·yyvsa[YYINITDEPTH];
1085 ····YYSTYPE·*yyvs;1001 ····YYSTYPE·*yyvs·=·yyvsa;
1086 ····YYSTYPE·*yyvsp;1002 ····YYSTYPE·*yyvsp·=·yyvs;
  
1087 ··int·yyn;1003 ··int·yyn;
1088 ··/*·The·return·value·of·yyparse.··*/1004 ··/*·The·return·value·of·yyparse.··*/
1089 ··int·yyresult;1005 ··int·yyresult;
1090 ··/*·Lookahead·token·as·an·internal·(translated)·token·number.··*/1006 ··/*·Lookahead·symbol·kind.··*/
1091 ··yysymbol_kind_t·yytoken·=·YYSYMBOL_YYEMPTY;1007 ··yysymbol_kind_t·yytoken·=·YYSYMBOL_YYEMPTY;
1092 ··/*·The·variables·used·to·return·semantic·value·and·location·from·the1008 ··/*·The·variables·used·to·return·semantic·value·and·location·from·the
1093 ·····action·routines.··*/1009 ·····action·routines.··*/
1094 ··YYSTYPE·yyval;1010 ··YYSTYPE·yyval;
  
  
  
1095 #define·YYPOPSTACK(N)···(yyvsp·-=·(N),·yyssp·-=·(N))1011 #define·YYPOPSTACK(N)···(yyvsp·-=·(N),·yyssp·-=·(N))
  
1096 ··/*·The·number·of·symbols·on·the·RHS·of·the·reduced·rule.1012 ··/*·The·number·of·symbols·on·the·RHS·of·the·reduced·rule.
1097 ·····Keep·to·zero·when·no·symbol·should·be·popped.··*/1013 ·····Keep·to·zero·when·no·symbol·should·be·popped.··*/
1098 ··int·yylen·=·0;1014 ··int·yylen·=·0;
  
1099 ··yynerrs·=·0; 
1100 ··yystate·=·0; 
1101 ··yyerrstatus·=·0; 
  
1102 ··yystacksize·=·YYINITDEPTH; 
1103 ··yyssp·=·yyss·=·yyssa; 
1104 ··yyvsp·=·yyvs·=·yyvsa; 
  
  
1105 ··YYDPRINTF·((stderr,·"Starting·parse\n"));1015 ··YYDPRINTF·((stderr,·"Starting·parse\n"));
  
1106 ··yychar·=·TRACEFS_EMPTY;·/*·Cause·a·token·to·be·read.··*/1016 ··yychar·=·TRACEFS_EMPTY;·/*·Cause·a·token·to·be·read.··*/
  
1107 ··goto·yysetstate;1017 ··goto·yysetstate;
  
  
1108 /*------------------------------------------------------------.1018 /*------------------------------------------------------------.
1109 |·yynewstate·--·push·a·new·state,·which·is·found·in·yystate.··|1019 |·yynewstate·--·push·a·new·state,·which·is·found·in·yystate.··|
1110 `------------------------------------------------------------*/1020 `------------------------------------------------------------*/
1111 yynewstate:1021 yynewstate:
Offset 1145, 15 lines modifiedOffset 1052, 15 lines modified
1145 ··YY_IGNORE_USELESS_CAST_BEGIN1052 ··YY_IGNORE_USELESS_CAST_BEGIN
1146 ··*yyssp·=·YY_CAST·(yy_state_t,·yystate);1053 ··*yyssp·=·YY_CAST·(yy_state_t,·yystate);
1147 ··YY_IGNORE_USELESS_CAST_END1054 ··YY_IGNORE_USELESS_CAST_END
1148 ··YY_STACK_PRINT·(yyss,·yyssp);1055 ··YY_STACK_PRINT·(yyss,·yyssp);
  
1149 ··if·(yyss·+·yystacksize·-·1·<=·yyssp)1056 ··if·(yyss·+·yystacksize·-·1·<=·yyssp)
1150 #if·!defined·yyoverflow·&&·!defined·YYSTACK_RELOCATE1057 #if·!defined·yyoverflow·&&·!defined·YYSTACK_RELOCATE
1151 ····goto·yyexhaustedlab;1058 ····YYNOMEM;
1152 #else1059 #else
1153 ····{1060 ····{
1154 ······/*·Get·the·current·used·size·of·the·three·stacks,·in·elements.··*/1061 ······/*·Get·the·current·used·size·of·the·three·stacks,·in·elements.··*/
1155 ······YYPTRDIFF_T·yysize·=·yyssp·-·yyss·+·1;1062 ······YYPTRDIFF_T·yysize·=·yyssp·-·yyss·+·1;
  
1156 #·if·defined·yyoverflow1063 #·if·defined·yyoverflow
1157 ······{1064 ······{
Offset 1173, 26 lines modifiedOffset 1080, 26 lines modified
1173 ····················&yystacksize);1080 ····················&yystacksize);
1174 ········yyss·=·yyss1;1081 ········yyss·=·yyss1;
1175 ········yyvs·=·yyvs1;1082 ········yyvs·=·yyvs1;
1176 ······}1083 ······}
1177 #·else·/*·defined·YYSTACK_RELOCATE·*/1084 #·else·/*·defined·YYSTACK_RELOCATE·*/
1178 ······/*·Extend·the·stack·our·own·way.··*/1085 ······/*·Extend·the·stack·our·own·way.··*/
1179 ······if·(YYMAXDEPTH·<=·yystacksize)1086 ······if·(YYMAXDEPTH·<=·yystacksize)
1180 ········goto·yyexhaustedlab;1087 ········YYNOMEM;
1181 ······yystacksize·*=·2;1088 ······yystacksize·*=·2;
1182 ······if·(YYMAXDEPTH·<·yystacksize)1089 ······if·(YYMAXDEPTH·<·yystacksize)
1183 ········yystacksize·=·YYMAXDEPTH;1090 ········yystacksize·=·YYMAXDEPTH;
  
1184 ······{1091 ······{
1185 ········yy_state_t·*yyss1·=·yyss;1092 ········yy_state_t·*yyss1·=·yyss;
1186 ········union·yyalloc·*yyptr·=1093 ········union·yyalloc·*yyptr·=
1187 ··········YY_CAST·(union·yyalloc·*,1094 ··········YY_CAST·(union·yyalloc·*,
1188 ···················YYSTACK_ALLOC·(YY_CAST·(YYSIZE_T,·YYSTACK_BYTES·(yystacksize))));1095 ···················YYSTACK_ALLOC·(YY_CAST·(YYSIZE_T,·YYSTACK_BYTES·(yystacksize))));
1189 ········if·(!·yyptr)1096 ········if·(!·yyptr)
1190 ··········goto·yyexhaustedlab;1097 ··········YYNOMEM;
1191 ········YYSTACK_RELOCATE·(yyss_alloc,·yyss);1098 ········YYSTACK_RELOCATE·(yyss_alloc,·yyss);
1192 ········YYSTACK_RELOCATE·(yyvs_alloc,·yyvs);1099 ········YYSTACK_RELOCATE·(yyvs_alloc,·yyvs);
1193 #··undef·YYSTACK_RELOCATE1100 #··undef·YYSTACK_RELOCATE
1194 ········if·(yyss1·!=·yyssa)1101 ········if·(yyss1·!=·yyssa)
1195 ··········YYSTACK_FREE·(yyss1);1102 ··········YYSTACK_FREE·(yyss1);
1196 ······}1103 ······}
1197 #·endif1104 #·endif
Offset 1206, 14 lines modifiedOffset 1113, 15 lines modified
1206 ······YY_IGNORE_USELESS_CAST_END1113 ······YY_IGNORE_USELESS_CAST_END
  
1207 ······if·(yyss·+·yystacksize·-·1·<=·yyssp)1114 ······if·(yyss·+·yystacksize·-·1·<=·yyssp)
1208 ········YYABORT;1115 ········YYABORT;
1209 ····}1116 ····}
1210 #endif·/*·!defined·yyoverflow·&&·!defined·YYSTACK_RELOCATE·*/1117 #endif·/*·!defined·yyoverflow·&&·!defined·YYSTACK_RELOCATE·*/
  
  
1211 ··if·(yystate·==·YYFINAL)1118 ··if·(yystate·==·YYFINAL)
1212 ····YYACCEPT;1119 ····YYACCEPT;
  
1213 ··goto·yybackup;1120 ··goto·yybackup;
  
  
1214 /*-----------.1121 /*-----------.
Offset 1317, 251 lines modifiedOffset 1225, 251 lines modified
1317 ·····GCC·warning·that·YYVAL·may·be·used·uninitialized.··*/1225 ·····GCC·warning·that·YYVAL·may·be·used·uninitialized.··*/
1318 ··yyval·=·yyvsp[1-yylen];1226 ··yyval·=·yyvsp[1-yylen];
  
  
1319 ··YY_REDUCE_PRINT·(yyn);1227 ··YY_REDUCE_PRINT·(yyn);
1320 ··switch·(yyn)1228 ··switch·(yyn)
1321 ····{1229 ····{
1322 ··case·3:1230 ··case·3:·/*·label:·AS·name··*/
1323 #line·78·"sqlhist.y"1231 #line·78·"sqlhist.y"
1324 ················{·CHECK_RETURN_PTR((yyval.string)·=·store_str(sb,·(yyvsp[0].string)));·}1232 ················{·CHECK_RETURN_PTR((yyval.string)·=·store_str(sb,·(yyvsp[0].string)));·}
1325 #line·1328·"sqlhist.tab.c"1233 #line·1236·"sqlhist.tab.c"
1326 ····break;1234 ····break;
  
1327 ··case·4:1235 ··case·4:·/*·label:·name··*/
1328 #line·79·"sqlhist.y"1236 #line·79·"sqlhist.y"
1329 ········{·CHECK_RETURN_PTR((yyval.string)·=·store_str(sb,·(yyvsp[0].string)));·}1237 ········{·CHECK_RETURN_PTR((yyval.string)·=·store_str(sb,·(yyvsp[0].string)));·}
1330 #line·1334·"sqlhist.tab.c"1238 #line·1242·"sqlhist.tab.c"
1331 ····break;1239 ····break;
  
1332 ··case·5:1240 ··case·5:·/*·select:·SELECT··*/
1333 #line·82·"sqlhist.y"1241 #line·82·"sqlhist.y"
1334 ·················{·table_start(sb);·}1242 ·················{·table_start(sb);·}
1335 #line·1340·"sqlhist.tab.c"1243 #line·1248·"sqlhist.tab.c"
1336 ····break;1244 ····break;
  
1337 ··case·9:1245 ··case·9:·/*·selection:·selection_expr··*/
1338 #line·96·"sqlhist.y"1246 #line·96·"sqlhist.y"
1339 ································{1247 ································{
1340 »       »       »       »       »       CHECK_RETURN_VAL(add_selection(sb,·(yyvsp[0].expr),·NULL));1248 »       »       »       »       »       CHECK_RETURN_VAL(add_selection(sb,·(yyvsp[0].expr),·NULL));
1341 »       »       »       »       }1249 »       »       »       »       }
1342 #line·1348·"sqlhist.tab.c"1250 #line·1256·"sqlhist.tab.c"
1343 ····break;1251 ····break;
  
1344 ··case·10:1252 ··case·10:·/*·selection:·selection_expr·label··*/
1345 #line·100·"sqlhist.y"1253 #line·100·"sqlhist.y"
1346 ································{1254 ································{
1347 »       »       »       »       »       CHECK_RETURN_VAL(add_selection(sb,·(yyvsp[-1].expr),·(yyvsp[0].string)));1255 »       »       »       »       »       CHECK_RETURN_VAL(add_selection(sb,·(yyvsp[-1].expr),·(yyvsp[0].string)));
1348 »       »       »       »       }1256 »       »       »       »       }
1349 #line·1356·"sqlhist.tab.c"1257 #line·1264·"sqlhist.tab.c"
1350 ····break;1258 ····break;
  
1351 ··case·12:1259 ··case·12:·/*·selection_expr:·'('·field·')'··*/
1352 #line·107·"sqlhist.y"1260 #line·107·"sqlhist.y"
1353 ································{··(yyval.expr)·=·(yyvsp[-1].expr);·}1261 ································{··(yyval.expr)·=·(yyvsp[-1].expr);·}
1354 #line·1362·"sqlhist.tab.c"1262 #line·1270·"sqlhist.tab.c"
1355 ····break;1263 ····break;
  
1356 ··case·14:1264 ··case·14:·/*·selection_expr:·'('·selection_addition·')'··*/
1357 #line·109·"sqlhist.y"1265 #line·109·"sqlhist.y"
1358 ································{··(yyval.expr)·=·(yyvsp[-1].expr);·}1266 ································{··(yyval.expr)·=·(yyvsp[-1].expr);·}
1359 #line·1368·"sqlhist.tab.c"1267 #line·1276·"sqlhist.tab.c"
1360 ····break;1268 ····break;
  
1361 ··case·15:1269 ··case·15:·/*·selection_expr:·CAST·'('·field·AS·FIELD·')'··*/
1362 #line·110·"sqlhist.y"1270 #line·110·"sqlhist.y"
1363 ································{1271 ································{
1364 »       »       »       »       »       ·(yyval.expr)·=·add_cast(sb,·(yyvsp[-3].expr),·(yyvsp[-1].string));1272 »       »       »       »       »       ·(yyval.expr)·=·add_cast(sb,·(yyvsp[-3].expr),·(yyvsp[-1].string));
1365 »       »       »       »       »       ·CHECK_RETURN_PTR((yyval.expr));1273 »       »       »       »       »       ·CHECK_RETURN_PTR((yyval.expr));
1366 »       »       »       »       }1274 »       »       »       »       }
1367 #line·1377·"sqlhist.tab.c"1275 #line·1285·"sqlhist.tab.c"
1368 ····break;1276 ····break;
  
1369 ··case·16:1277 ··case·16:·/*·selection_addition:·field·'+'·field··*/
1370 #line·118·"sqlhist.y"1278 #line·118·"sqlhist.y"
1371 ································{1279 ································{
1372 »       »       »       »       »       (yyval.expr)·=·add_compare(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·COMPARE_ADD);1280 »       »       »       »       »       (yyval.expr)·=·add_compare(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·COMPARE_ADD);
1373 »       »       »       »       »       CHECK_RETURN_PTR((yyval.expr));1281 »       »       »       »       »       CHECK_RETURN_PTR((yyval.expr));
1374 »       »       »       »       }1282 »       »       »       »       }
1375 #line·1386·"sqlhist.tab.c"1283 #line·1294·"sqlhist.tab.c"
1376 ····break;1284 ····break;
  
1377 ··case·17:1285 ··case·17:·/*·selection_addition:·field·'-'·field··*/
1378 #line·123·"sqlhist.y"1286 #line·123·"sqlhist.y"
1379 ································{1287 ································{
1380 »       »       »       »       »       (yyval.expr)·=·add_compare(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·COMPARE_SUB);1288 »       »       »       »       »       (yyval.expr)·=·add_compare(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·COMPARE_SUB);
1381 »       »       »       »       »       CHECK_RETURN_PTR((yyval.expr));1289 »       »       »       »       »       CHECK_RETURN_PTR((yyval.expr));
1382 »       »       »       »       }1290 »       »       »       »       }
1383 #line·1395·"sqlhist.tab.c"1291 #line·1303·"sqlhist.tab.c"
1384 ····break;1292 ····break;
  
1385 ··case·20:1293 ··case·20:·/*·field:·FIELD··*/
1386 #line·135·"sqlhist.y"1294 #line·135·"sqlhist.y"
1387 ················{·(yyval.expr)·=·add_field(sb,·(yyvsp[0].string),·NULL);·CHECK_RETURN_PTR((yyval.expr));·}1295 ················{·(yyval.expr)·=·add_field(sb,·(yyvsp[0].string),·NULL);·CHECK_RETURN_PTR((yyval.expr));·}
1388 #line·1401·"sqlhist.tab.c"1296 #line·1309·"sqlhist.tab.c"
1389 ····break;1297 ····break;
  
1390 ··case·21:1298 ··case·21:·/*·named_field:·FIELD·label··*/
1391 #line·139·"sqlhist.y"1299 #line·139·"sqlhist.y"
1392 ···············{·(yyval.expr)·=·add_field(sb,·(yyvsp[-1].string),·(yyvsp[0].string));·CHECK_RETURN_PTR((yyval.expr));·}1300 ···············{·(yyval.expr)·=·add_field(sb,·(yyvsp[-1].string),·(yyvsp[0].string));·CHECK_RETURN_PTR((yyval.expr));·}
1393 #line·1407·"sqlhist.tab.c"1301 #line·1315·"sqlhist.tab.c"
1394 ····break;1302 ····break;
  
1395 ··case·23:1303 ··case·23:·/*·str_val:·STRING··*/
1396 #line·147·"sqlhist.y"1304 #line·147·"sqlhist.y"
1397 ················{·(yyval.expr)·=·add_string(sb,·(yyvsp[0].string));·CHECK_RETURN_PTR((yyval.expr));·}1305 ················{·(yyval.expr)·=·add_string(sb,·(yyvsp[0].string));·CHECK_RETURN_PTR((yyval.expr));·}
1398 #line·1413·"sqlhist.tab.c"1306 #line·1321·"sqlhist.tab.c"
1399 ····break;1307 ····break;
  
1400 ··case·25:1308 ··case·25:·/*·val:·NUMBER··*/
1401 #line·152·"sqlhist.y"1309 #line·152·"sqlhist.y"
1402 ················{·(yyval.expr)·=·add_number(sb,·(yyvsp[0].number));·CHECK_RETURN_PTR((yyval.expr));·}1310 ················{·(yyval.expr)·=·add_number(sb,·(yyvsp[0].number));·CHECK_RETURN_PTR((yyval.expr));·}
1403 #line·1419·"sqlhist.tab.c"1311 #line·1327·"sqlhist.tab.c"
1404 ····break;1312 ····break;
  
1405 ··case·26:1313 ··case·26:·/*·compare:·field·'<'·val··*/
1406 #line·157·"sqlhist.y"1314 #line·157·"sqlhist.y"
1407 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_LT);·CHECK_RETURN_PTR((yyval.expr));·}1315 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_LT);·CHECK_RETURN_PTR((yyval.expr));·}
1408 #line·1425·"sqlhist.tab.c"1316 #line·1333·"sqlhist.tab.c"
1409 ····break;1317 ····break;
  
1410 ··case·27:1318 ··case·27:·/*·compare:·field·'>'·val··*/
1411 #line·158·"sqlhist.y"1319 #line·158·"sqlhist.y"
1412 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_GT);·CHECK_RETURN_PTR((yyval.expr));·}1320 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_GT);·CHECK_RETURN_PTR((yyval.expr));·}
1413 #line·1431·"sqlhist.tab.c"1321 #line·1339·"sqlhist.tab.c"
1414 ····break;1322 ····break;
  
1415 ··case·28:1323 ··case·28:·/*·compare:·field·LE·val··*/
1416 #line·159·"sqlhist.y"1324 #line·159·"sqlhist.y"
1417 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_LE);·CHECK_RETURN_PTR((yyval.expr));·}1325 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_LE);·CHECK_RETURN_PTR((yyval.expr));·}
1418 #line·1437·"sqlhist.tab.c"1326 #line·1345·"sqlhist.tab.c"
1419 ····break;1327 ····break;
  
1420 ··case·29:1328 ··case·29:·/*·compare:·field·GE·val··*/
1421 #line·160·"sqlhist.y"1329 #line·160·"sqlhist.y"
1422 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_GE);·CHECK_RETURN_PTR((yyval.expr));·}1330 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_GE);·CHECK_RETURN_PTR((yyval.expr));·}
1423 #line·1443·"sqlhist.tab.c"1331 #line·1351·"sqlhist.tab.c"
1424 ····break;1332 ····break;
  
1425 ··case·30:1333 ··case·30:·/*·compare:·field·'='·val··*/
1426 #line·161·"sqlhist.y"1334 #line·161·"sqlhist.y"
1427 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_EQ);·CHECK_RETURN_PTR((yyval.expr));·}1335 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_EQ);·CHECK_RETURN_PTR((yyval.expr));·}
1428 #line·1449·"sqlhist.tab.c"1336 #line·1357·"sqlhist.tab.c"
1429 ····break;1337 ····break;
  
1430 ··case·31:1338 ··case·31:·/*·compare:·field·EQ·val··*/
1431 #line·162·"sqlhist.y"1339 #line·162·"sqlhist.y"
1432 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_EQ);·CHECK_RETURN_PTR((yyval.expr));·}1340 ················{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_EQ);·CHECK_RETURN_PTR((yyval.expr));·}
1433 #line·1455·"sqlhist.tab.c"1341 #line·1363·"sqlhist.tab.c"
1434 ····break;1342 ····break;
  
1435 ··case·32:1343 ··case·32:·/*·compare:·field·NEQ·val··*/
1436 #line·163·"sqlhist.y"1344 #line·163·"sqlhist.y"
1437 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_NE);·CHECK_RETURN_PTR((yyval.expr));·}1345 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_NE);·CHECK_RETURN_PTR((yyval.expr));·}
1438 #line·1461·"sqlhist.tab.c"1346 #line·1369·"sqlhist.tab.c"
1439 ····break;1347 ····break;
  
1440 ··case·33:1348 ··case·33:·/*·compare:·field·"!="·val··*/
1441 #line·164·"sqlhist.y"1349 #line·164·"sqlhist.y"
1442 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_NE);·CHECK_RETURN_PTR((yyval.expr));·}1350 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_NE);·CHECK_RETURN_PTR((yyval.expr));·}
1443 #line·1467·"sqlhist.tab.c"1351 #line·1375·"sqlhist.tab.c"
1444 ····break;1352 ····break;
  
1445 ··case·34:1353 ··case·34:·/*·compare:·field·'&'·val··*/
1446 #line·165·"sqlhist.y"1354 #line·165·"sqlhist.y"
1447 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_BIN_AND);·CHECK_RETURN_PTR((yyval.expr));·}1355 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_BIN_AND);·CHECK_RETURN_PTR((yyval.expr));·}
1448 #line·1473·"sqlhist.tab.c"1356 #line·1381·"sqlhist.tab.c"
1449 ····break;1357 ····break;
  
1450 ··case·35:1358 ··case·35:·/*·compare:·field·'~'·str_val··*/
1451 #line·166·"sqlhist.y"1359 #line·166·"sqlhist.y"
1452 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_STR_CMP);·CHECK_RETURN_PTR((yyval.expr));·}1360 ························{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_STR_CMP);·CHECK_RETURN_PTR((yyval.expr));·}
1453 #line·1479·"sqlhist.tab.c"1361 #line·1387·"sqlhist.tab.c"
1454 ····break;1362 ····break;
  
1455 ··case·36:1363 ··case·36:·/*·compare_and_or:·compare_and_or·OR·compare_and_or··*/
1456 #line·170·"sqlhist.y"1364 #line·170·"sqlhist.y"
1457 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_OR);·CHECK_RETURN_PTR((yyval.expr));·}1365 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_OR);·CHECK_RETURN_PTR((yyval.expr));·}
1458 #line·1485·"sqlhist.tab.c"1366 #line·1393·"sqlhist.tab.c"
1459 ····break;1367 ····break;
  
1460 ··case·37:1368 ··case·37:·/*·compare_and_or:·compare_and_or·AND·compare_and_or··*/
1461 #line·171·"sqlhist.y"1369 #line·171·"sqlhist.y"
1462 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_AND);·CHECK_RETURN_PTR((yyval.expr));·}1370 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_AND);·CHECK_RETURN_PTR((yyval.expr));·}
1463 #line·1491·"sqlhist.tab.c"1371 #line·1399·"sqlhist.tab.c"
1464 ····break;1372 ····break;
  
1465 ··case·38:1373 ··case·38:·/*·compare_and_or:·'!'·'('·compare_and_or·')'··*/
1466 #line·172·"sqlhist.y"1374 #line·172·"sqlhist.y"
1467 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}1375 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}
1468 #line·1497·"sqlhist.tab.c"1376 #line·1405·"sqlhist.tab.c"
1469 ····break;1377 ····break;
  
1470 ··case·39:1378 ··case·39:·/*·compare_and_or:·'!'·compare··*/
1471 #line·173·"sqlhist.y"1379 #line·173·"sqlhist.y"
1472 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[0].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}1380 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[0].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}
1473 #line·1503·"sqlhist.tab.c"1381 #line·1411·"sqlhist.tab.c"
1474 ····break;1382 ····break;
  
1475 ··case·41:1383 ··case·41:·/*·compare_items:·compare_items·OR·compare_items··*/
1476 #line·178·"sqlhist.y"1384 #line·178·"sqlhist.y"
1477 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_OR);·CHECK_RETURN_PTR((yyval.expr));·}1385 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr),·FILTER_OR);·CHECK_RETURN_PTR((yyval.expr));·}
1478 #line·1509·"sqlhist.tab.c"1386 #line·1417·"sqlhist.tab.c"
1479 ····break;1387 ····break;
  
1480 ··case·42:1388 ··case·42:·/*·compare_items:·'('·compare_and_or·')'··*/
1481 #line·179·"sqlhist.y"1389 #line·179·"sqlhist.y"
1482 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}1390 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}
1483 #line·1515·"sqlhist.tab.c"1391 #line·1423·"sqlhist.tab.c"
1484 ····break;1392 ····break;
  
1485 ··case·43:1393 ··case·43:·/*·compare_items:·'!'·'('·compare_and_or·')'··*/
1486 #line·180·"sqlhist.y"1394 #line·180·"sqlhist.y"
1487 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}1395 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[-1].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}
1488 #line·1521·"sqlhist.tab.c"1396 #line·1429·"sqlhist.tab.c"
1489 ····break;1397 ····break;
  
1490 ··case·44:1398 ··case·44:·/*·compare_items:·'!'·compare··*/
1491 #line·181·"sqlhist.y"1399 #line·181·"sqlhist.y"
1492 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[0].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}1400 ········································{·(yyval.expr)·=·add_filter(sb,·(yyvsp[0].expr),·NULL,·FILTER_NOT_GROUP);·CHECK_RETURN_PTR((yyval.expr));·}
1493 #line·1527·"sqlhist.tab.c"1401 #line·1435·"sqlhist.tab.c"
1494 ····break;1402 ····break;
  
1495 ··case·46:1403 ··case·46:·/*·compare_cmds:·compare_items··*/
1496 #line·186·"sqlhist.y"1404 #line·186·"sqlhist.y"
1497 ································{·CHECK_RETURN_VAL(add_where(sb,·(yyvsp[0].expr)));·}1405 ································{·CHECK_RETURN_VAL(add_where(sb,·(yyvsp[0].expr)));·}
1498 #line·1533·"sqlhist.tab.c"1406 #line·1441·"sqlhist.tab.c"
1499 ····break;1407 ····break;
  
1500 ··case·56:1408 ··case·56:·/*·from_clause:·FROM·item··*/
1501 #line·219·"sqlhist.y"1409 #line·219·"sqlhist.y"
1502 ························{·CHECK_RETURN_VAL(add_from(sb,·(yyvsp[0].expr)));·}1410 ························{·CHECK_RETURN_VAL(add_from(sb,·(yyvsp[0].expr)));·}
1503 #line·1539·"sqlhist.tab.c"1411 #line·1447·"sqlhist.tab.c"
1504 ····break;1412 ····break;
  
1505 ··case·57:1413 ··case·57:·/*·join_clause:·JOIN·item·ON·match_clause··*/
1506 #line·234·"sqlhist.y"1414 #line·234·"sqlhist.y"
1507 ································{·add_to(sb,·(yyvsp[-2].expr));·}1415 ································{·add_to(sb,·(yyvsp[-2].expr));·}
1508 #line·1545·"sqlhist.tab.c"1416 #line·1453·"sqlhist.tab.c"
1509 ····break;1417 ····break;
  
1510 ··case·58:1418 ··case·58:·/*·match:·item·'='·item··*/
1511 #line·238·"sqlhist.y"1419 #line·238·"sqlhist.y"
1512 ·················{·CHECK_RETURN_VAL(add_match(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr)));·}1420 ·················{·CHECK_RETURN_VAL(add_match(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr)));·}
1513 #line·1551·"sqlhist.tab.c"1421 #line·1459·"sqlhist.tab.c"
1514 ····break;1422 ····break;
  
1515 ··case·59:1423 ··case·59:·/*·match:·item·EQ·item··*/
1516 #line·239·"sqlhist.y"1424 #line·239·"sqlhist.y"
1517 ················{·CHECK_RETURN_VAL(add_match(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr)));·}1425 ················{·CHECK_RETURN_VAL(add_match(sb,·(yyvsp[-2].expr),·(yyvsp[0].expr)));·}
1518 #line·1557·"sqlhist.tab.c"1426 #line·1465·"sqlhist.tab.c"
1519 ····break;1427 ····break;
  
  
1520 #line·1561·"sqlhist.tab.c"1428 #line·1469·"sqlhist.tab.c"
  
1521 ······default:·break;1429 ······default:·break;
1522 ····}1430 ····}
1523 ··/*·User·semantic·actions·sometimes·alter·yychar,·and·that·requires1431 ··/*·User·semantic·actions·sometimes·alter·yychar,·and·that·requires
1524 ·····that·yytoken·be·updated·with·the·new·translation.··We·take·the1432 ·····that·yytoken·be·updated·with·the·new·translation.··We·take·the
1525 ·····approach·of·translating·immediately·before·every·use·of·yytoken.1433 ·····approach·of·translating·immediately·before·every·use·of·yytoken.
1526 ·····One·alternative·is·translating·here·after·every·semantic·action,1434 ·····One·alternative·is·translating·here·after·every·semantic·action,
Offset 1635, 14 lines modifiedOffset 1543, 15 lines modified
1635 |·yyerrorlab·--·error·raised·explicitly·by·YYERROR.··|1543 |·yyerrorlab·--·error·raised·explicitly·by·YYERROR.··|
1636 `---------------------------------------------------*/1544 `---------------------------------------------------*/
1637 yyerrorlab:1545 yyerrorlab:
1638 ··/*·Pacify·compilers·when·the·user·code·never·invokes·YYERROR·and·the1546 ··/*·Pacify·compilers·when·the·user·code·never·invokes·YYERROR·and·the
1639 ·····label·yyerrorlab·therefore·never·appears·in·user·code.··*/1547 ·····label·yyerrorlab·therefore·never·appears·in·user·code.··*/
1640 ··if·(0)1548 ··if·(0)
1641 ····YYERROR;1549 ····YYERROR;
 1550 ··++yynerrs;
  
1642 ··/*·Do·not·reclaim·the·symbols·of·the·rule·whose·action·triggered1551 ··/*·Do·not·reclaim·the·symbols·of·the·rule·whose·action·triggered
1643 ·····this·YYERROR.··*/1552 ·····this·YYERROR.··*/
1644 ··YYPOPSTACK·(yylen);1553 ··YYPOPSTACK·(yylen);
1645 ··yylen·=·0;1554 ··yylen·=·0;
1646 ··YY_STACK_PRINT·(yyss,·yyssp);1555 ··YY_STACK_PRINT·(yyss,·yyssp);
1647 ··yystate·=·*yyssp;1556 ··yystate·=·*yyssp;
Offset 1695, 40 lines modifiedOffset 1604, 38 lines modified
  
  
1695 /*-------------------------------------.1604 /*-------------------------------------.
1696 |·yyacceptlab·--·YYACCEPT·comes·here.··|1605 |·yyacceptlab·--·YYACCEPT·comes·here.··|
1697 `-------------------------------------*/1606 `-------------------------------------*/
1698 yyacceptlab:1607 yyacceptlab:
1699 ··yyresult·=·0;1608 ··yyresult·=·0;
1700 ··goto·yyreturn;1609 ··goto·yyreturnlab;
  
  
1701 /*-----------------------------------.1610 /*-----------------------------------.
1702 |·yyabortlab·--·YYABORT·comes·here.··|1611 |·yyabortlab·--·YYABORT·comes·here.··|
1703 `-----------------------------------*/1612 `-----------------------------------*/
1704 yyabortlab:1613 yyabortlab:
1705 ··yyresult·=·1;1614 ··yyresult·=·1;
1706 ··goto·yyreturn;1615 ··goto·yyreturnlab;
  
  
1707 #if·!defined·yyoverflow 
1708 /*-------------------------------------------------.1616 /*-----------------------------------------------------------.
1709 |·yyexhaustedlab·--·memory·exhaustion·comes·here.··|1617 |·yyexhaustedlab·--·YYNOMEM·(memory·exhaustion)·comes·here.··|
1710 `-------------------------------------------------*/1618 `-----------------------------------------------------------*/
1711 yyexhaustedlab:1619 yyexhaustedlab:
1712 ··yyerror·(sb,·YY_("memory·exhausted"));1620 ··yyerror·(sb,·YY_("memory·exhausted"));
1713 ··yyresult·=·2;1621 ··yyresult·=·2;
 1622 ··goto·yyreturnlab;
1714 ··/*·Fall·through.··*/ 
1715 #endif 
  
  
1716 /*-----------------------------------------------------.1623 /*----------------------------------------------------------.
1717 |·yyreturn·--·parsing·is·finished,·return·the·result.··|1624 |·yyreturnlab·--·parsing·is·finished,·clean·up·and·return.··|
1718 `-----------------------------------------------------*/1625 `----------------------------------------------------------*/
1719 yyreturn:1626 yyreturnlab:
1720 ··if·(yychar·!=·TRACEFS_EMPTY)1627 ··if·(yychar·!=·TRACEFS_EMPTY)
1721 ····{1628 ····{
1722 ······/*·Make·sure·we·have·latest·lookahead·translation.··See·comments·at1629 ······/*·Make·sure·we·have·latest·lookahead·translation.··See·comments·at
1723 ·········user·semantic·actions·for·why·this·is·necessary.··*/1630 ·········user·semantic·actions·for·why·this·is·necessary.··*/
1724 ······yytoken·=·YYTRANSLATE·(yychar);1631 ······yytoken·=·YYTRANSLATE·(yychar);
1725 ······yydestruct·("Cleanup:·discarding·lookahead",1632 ······yydestruct·("Cleanup:·discarding·lookahead",
1726 ··················yytoken,·&yylval,·sb);1633 ··················yytoken,·&yylval,·sb);