···11-/* A Bison parser, made by GNU Bison 3.0. */
11+/* A Bison parser, made by GNU Bison 3.4.1. */
2233/* Bison implementation for Yacc-like parsers in C
4455- Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
55+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
66+ Inc.
6778 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
···4041 define necessary library symbols; they are noted "INFRINGES ON
4142 USER NAME SPACE" below. */
42434444+/* Undocumented macros, especially those whose name start with YY_,
4545+ are private implementation details. Do not rely on them. */
4646+4347/* Identify Bison output. */
4448#define YYBISON 1
45494650/* Bison version. */
4747-#define YYBISON_VERSION "3.0"
5151+#define YYBISON_VERSION "3.4.1"
48524953/* Skeleton name. */
5054#define YYSKELETON_NAME "yacc.c"
···6771#define yynerrs cc_parser_nerrs
687269737070-/* Copy the first part of user declarations. */
7171-#line 19 "cc_parser.y" /* yacc.c:339 */
7474+/* First part of user prologue. */
7575+#line 19 "cc_parser.y"
727673777478#include "jscript.h"
···8084WINE_DEFAULT_DEBUG_CHANNEL(jscript);
818582868383-#line 84 "cc_parser.tab.c" /* yacc.c:339 */
8787+#line 88 "cc_parser.tab.c"
84888585-# ifndef YY_NULL
8686-# if defined __cplusplus && 201103L <= __cplusplus
8787-# define YY_NULL nullptr
8989+# ifndef YY_NULLPTR
9090+# if defined __cplusplus
9191+# if 201103L <= __cplusplus
9292+# define YY_NULLPTR nullptr
9393+# else
9494+# define YY_NULLPTR 0
9595+# endif
8896# else
8989-# define YY_NULL 0
9797+# define YY_NULLPTR ((void*)0)
9098# endif
9199# endif
92100···98106# define YYERROR_VERBOSE 0
99107#endif
100108101101-/* In a future release of Bison, this section will be replaced
102102- by #include "cc_parser.tab.h". */
109109+/* Use api.header.include to #include this header
110110+ instead of duplicating it here. */
103111#ifndef YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
104112# define YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
105113/* Debug traces. */
···132140133141/* Value type. */
134142#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
135135-typedef union YYSTYPE YYSTYPE;
136143union YYSTYPE
137144{
138138-#line 36 "cc_parser.y" /* yacc.c:355 */
145145+#line 36 "cc_parser.y"
139146140147 ccval_t ccval;
141148142142-#line 143 "cc_parser.tab.c" /* yacc.c:355 */
149149+#line 150 "cc_parser.tab.c"
150150+143151};
152152+typedef union YYSTYPE YYSTYPE;
144153# define YYSTYPE_IS_TRIVIAL 1
145154# define YYSTYPE_IS_DECLARED 1
146155#endif
···151160152161#endif /* !YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED */
153162154154-/* Copy the second part of user declarations. */
155155-#line 47 "cc_parser.y" /* yacc.c:358 */
163163+/* Second part of user prologue. */
164164+#line 47 "cc_parser.y"
156165157166158167static int cc_parser_error(parser_ctx_t *ctx, const char *str)
···246255}
247256248257249249-#line 250 "cc_parser.tab.c" /* yacc.c:358 */
258258+#line 259 "cc_parser.tab.c"
259259+250260251261#ifdef short
252262# undef short
···267277#ifdef YYTYPE_UINT16
268278typedef YYTYPE_UINT16 yytype_uint16;
269279#else
270270-typedef unsigned short int yytype_uint16;
280280+typedef unsigned short yytype_uint16;
271281#endif
272282273283#ifdef YYTYPE_INT16
274284typedef YYTYPE_INT16 yytype_int16;
275285#else
276276-typedef short int yytype_int16;
286286+typedef short yytype_int16;
277287#endif
278288279289#ifndef YYSIZE_T
···285295# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
286296# define YYSIZE_T size_t
287297# else
288288-# define YYSIZE_T unsigned int
298298+# define YYSIZE_T unsigned
289299# endif
290300#endif
291301···303313# endif
304314#endif
305315306306-#ifndef __attribute__
307307-/* This feature is available in gcc versions 2.5 and later. */
308308-# if (! defined __GNUC__ || __GNUC__ < 2 \
309309- || (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
310310-# define __attribute__(Spec) /* empty */
316316+#ifndef YY_ATTRIBUTE
317317+# if (defined __GNUC__ \
318318+ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
319319+ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
320320+# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
321321+# else
322322+# define YY_ATTRIBUTE(Spec) /* empty */
311323# endif
312324#endif
313325326326+#ifndef YY_ATTRIBUTE_PURE
327327+# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
328328+#endif
329329+330330+#ifndef YY_ATTRIBUTE_UNUSED
331331+# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
332332+#endif
333333+314334/* Suppress unused-variable warnings by "using" E. */
315335#if ! defined lint || defined __GNUC__
316336# define YYUSE(E) ((void) (E))
···318338# define YYUSE(E) /* empty */
319339#endif
320340321321-#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
341341+#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
322342/* Suppress an incorrect diagnostic about yylval being uninitialized. */
323343# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
324344 _Pragma ("GCC diagnostic push") \
···337357# define YY_INITIAL_VALUE(Value) /* Nothing. */
338358#endif
339359360360+361361+#define YY_ASSERT(E) ((void) (0 && (E)))
340362341363#if ! defined yyoverflow || YYERROR_VERBOSE
342364···480502/* YYNSTATES -- Number of states. */
481503#define YYNSTATES 69
482504483483-/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
484484- by yylex, with out-of-bounds checking. */
485505#define YYUNDEFTOK 2
486506#define YYMAXUTOK 269
487507508508+/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
509509+ as returned by yylex, with out-of-bounds checking. */
488510#define YYTRANSLATE(YYX) \
489489- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
511511+ ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
490512491513/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
492492- as returned by yylex, without out-of-bounds checking. */
514514+ as returned by yylex. */
493515static const yytype_uint8 yytranslate[] =
494516{
495517 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
···545567 "CCBitwiseORExpression", "CCBitwiseXORExpression",
546568 "CCBitwiseANDExpression", "CCEqualityExpression",
547569 "CCRelationalExpression", "CCShiftExpression", "CCAdditiveExpression",
548548- "CCMultiplicativeExpression", YY_NULL
570570+ "CCMultiplicativeExpression", YY_NULLPTR
549571};
550572#endif
551573···678700679701#define YYRECOVERING() (!!yyerrstatus)
680702681681-#define YYBACKUP(Token, Value) \
682682-do \
683683- if (yychar == YYEMPTY) \
684684- { \
685685- yychar = (Token); \
686686- yylval = (Value); \
687687- YYPOPSTACK (yylen); \
688688- yystate = *yyssp; \
689689- goto yybackup; \
690690- } \
691691- else \
692692- { \
693693- yyerror (ctx, YY_("syntax error: cannot back up")); \
694694- YYERROR; \
695695- } \
696696-while (0)
703703+#define YYBACKUP(Token, Value) \
704704+ do \
705705+ if (yychar == YYEMPTY) \
706706+ { \
707707+ yychar = (Token); \
708708+ yylval = (Value); \
709709+ YYPOPSTACK (yylen); \
710710+ yystate = *yyssp; \
711711+ goto yybackup; \
712712+ } \
713713+ else \
714714+ { \
715715+ yyerror (ctx, YY_("syntax error: cannot back up")); \
716716+ YYERROR; \
717717+ } \
718718+ while (0)
697719698720/* Error token number */
699721#define YYTERROR 1
···733755} while (0)
734756735757736736-/*----------------------------------------.
737737-| Print this symbol's value on YYOUTPUT. |
738738-`----------------------------------------*/
758758+/*-----------------------------------.
759759+| Print this symbol's value on YYO. |
760760+`-----------------------------------*/
739761740762static void
741741-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, parser_ctx_t *ctx)
763763+yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, parser_ctx_t *ctx)
742764{
743743- FILE *yyo = yyoutput;
744744- YYUSE (yyo);
765765+ FILE *yyoutput = yyo;
766766+ YYUSE (yyoutput);
745767 YYUSE (ctx);
746768 if (!yyvaluep)
747769 return;
748770# ifdef YYPRINT
749771 if (yytype < YYNTOKENS)
750750- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
772772+ YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
751773# endif
752774 YYUSE (yytype);
753775}
754776755777756756-/*--------------------------------.
757757-| Print this symbol on YYOUTPUT. |
758758-`--------------------------------*/
778778+/*---------------------------.
779779+| Print this symbol on YYO. |
780780+`---------------------------*/
759781760782static void
761761-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, parser_ctx_t *ctx)
783783+yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, parser_ctx_t *ctx)
762784{
763763- YYFPRINTF (yyoutput, "%s %s (",
785785+ YYFPRINTF (yyo, "%s %s (",
764786 yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
765787766766- yy_symbol_value_print (yyoutput, yytype, yyvaluep, ctx);
767767- YYFPRINTF (yyoutput, ")");
788788+ yy_symbol_value_print (yyo, yytype, yyvaluep, ctx);
789789+ YYFPRINTF (yyo, ")");
768790}
769791770792/*------------------------------------------------------------------.
···798820static void
799821yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, parser_ctx_t *ctx)
800822{
801801- unsigned long int yylno = yyrline[yyrule];
823823+ unsigned long yylno = yyrline[yyrule];
802824 int yynrhs = yyr2[yyrule];
803825 int yyi;
804826 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
···809831 YYFPRINTF (stderr, " $%d = ", yyi + 1);
810832 yy_symbol_print (stderr,
811833 yystos[yyssp[yyi + 1 - yynrhs]],
812812- &(yyvsp[(yyi + 1) - (yynrhs)])
834834+ &yyvsp[(yyi + 1) - (yynrhs)]
813835 , ctx);
814836 YYFPRINTF (stderr, "\n");
815837 }
···913935 case '\\':
914936 if (*++yyp != '\\')
915937 goto do_not_strip_quotes;
916916- /* Fall through. */
938938+ else
939939+ goto append;
940940+941941+ append:
917942 default:
918943 if (yyres)
919944 yyres[yyn] = *yyp;
···931956 if (! yyres)
932957 return yystrlen (yystr);
933958934934- return yystpcpy (yyres, yystr) - yyres;
959959+ return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
935960}
936961# endif
937962···947972yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
948973 yytype_int16 *yyssp, int yytoken)
949974{
950950- YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
975975+ YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
951976 YYSIZE_T yysize = yysize0;
952977 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
953978 /* Internationalized format string. */
954954- const char *yyformat = YY_NULL;
979979+ const char *yyformat = YY_NULLPTR;
955980 /* Arguments of yyformat. */
956981 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
957982 /* Number of reported tokens (one for the "unexpected", one per
···10081033 }
10091034 yyarg[yycount++] = yytname[yyx];
10101035 {
10111011- YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
10121012- if (! (yysize <= yysize1
10131013- && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
10361036+ YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
10371037+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
10381038+ yysize = yysize1;
10391039+ else
10141040 return 2;
10151015- yysize = yysize1;
10161041 }
10171042 }
10181043 }
···10241049 case N: \
10251050 yyformat = S; \
10261051 break
10521052+ default: /* Avoid compiler warnings. */
10271053 YYCASE_(0, YY_("syntax error"));
10281054 YYCASE_(1, YY_("syntax error, unexpected %s"));
10291055 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
···1035106110361062 {
10371063 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
10381038- if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
10641064+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
10651065+ yysize = yysize1;
10661066+ else
10391067 return 2;
10401040- yysize = yysize1;
10411068 }
1042106910431070 if (*yymsg_alloc < yysize)
···11681195 yychar = YYEMPTY; /* Cause a token to be read. */
11691196 goto yysetstate;
1170119711981198+11711199/*------------------------------------------------------------.
11721172-| yynewstate -- Push a new state, which is found in yystate. |
12001200+| yynewstate -- push a new state, which is found in yystate. |
11731201`------------------------------------------------------------*/
11741174- yynewstate:
12021202+yynewstate:
11751203 /* In all cases, when you get here, the value and location stacks
11761204 have just been pushed. So pushing a state here evens the stacks. */
11771205 yyssp++;
1178120611791179- yysetstate:
11801180- *yyssp = yystate;
12071207+12081208+/*--------------------------------------------------------------------.
12091209+| yynewstate -- set current state (the top of the stack) to yystate. |
12101210+`--------------------------------------------------------------------*/
12111211+yysetstate:
12121212+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
12131213+ YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
12141214+ *yyssp = (yytype_int16) yystate;
1181121511821216 if (yyss + yystacksize - 1 <= yyssp)
12171217+#if !defined yyoverflow && !defined YYSTACK_RELOCATE
12181218+ goto yyexhaustedlab;
12191219+#else
11831220 {
11841221 /* Get the current used size of the three stacks, in elements. */
11851185- YYSIZE_T yysize = yyssp - yyss + 1;
12221222+ YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1);
1186122311871187-#ifdef yyoverflow
12241224+# if defined yyoverflow
11881225 {
11891226 /* Give user a chance to reallocate the stack. Use copies of
11901227 these so that the &'s don't force the real ones into
···12001237 &yyss1, yysize * sizeof (*yyssp),
12011238 &yyvs1, yysize * sizeof (*yyvsp),
12021239 &yystacksize);
12031203-12041240 yyss = yyss1;
12051241 yyvs = yyvs1;
12061242 }
12071207-#else /* no yyoverflow */
12081208-# ifndef YYSTACK_RELOCATE
12091209- goto yyexhaustedlab;
12101210-# else
12431243+# else /* defined YYSTACK_RELOCATE */
12111244 /* Extend the stack our own way. */
12121245 if (YYMAXDEPTH <= yystacksize)
12131246 goto yyexhaustedlab;
···12231256 goto yyexhaustedlab;
12241257 YYSTACK_RELOCATE (yyss_alloc, yyss);
12251258 YYSTACK_RELOCATE (yyvs_alloc, yyvs);
12261226-# undef YYSTACK_RELOCATE
12591259+# undef YYSTACK_RELOCATE
12271260 if (yyss1 != yyssa)
12281261 YYSTACK_FREE (yyss1);
12291262 }
12301263# endif
12311231-#endif /* no yyoverflow */
1232126412331265 yyssp = yyss + yysize - 1;
12341266 yyvsp = yyvs + yysize - 1;
1235126712361268 YYDPRINTF ((stderr, "Stack size increased to %lu\n",
12371237- (unsigned long int) yystacksize));
12691269+ (unsigned long) yystacksize));
1238127012391271 if (yyss + yystacksize - 1 <= yyssp)
12401272 YYABORT;
12411273 }
12421242-12431243- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
12741274+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
1244127512451276 if (yystate == YYFINAL)
12461277 YYACCEPT;
1247127812481279 goto yybackup;
1249128012811281+12501282/*-----------.
12511283| yybackup. |
12521284`-----------*/
12531285yybackup:
12541254-12551286 /* Do appropriate processing given the current state. Read a
12561287 lookahead token if we need one and don't already have one. */
12571288···13091340 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
13101341 *++yyvsp = yylval;
13111342 YY_IGNORE_MAYBE_UNINITIALIZED_END
13121312-13131343 goto yynewstate;
1314134413151345···132413541325135513261356/*-----------------------------.
13271327-| yyreduce -- Do a reduction. |
13571357+| yyreduce -- do a reduction. |
13281358`-----------------------------*/
13291359yyreduce:
13301360 /* yyn is the number of a rule to reduce with. */
···13441374 YY_REDUCE_PRINT (yyn);
13451375 switch (yyn)
13461376 {
13471347- case 2:
13481348-#line 146 "cc_parser.y" /* yacc.c:1646 */
13771377+ case 2:
13781378+#line 146 "cc_parser.y"
13491379 { ctx->ccval = (yyvsp[0].ccval); YYACCEPT; }
13501350-#line 1351 "cc_parser.tab.c" /* yacc.c:1646 */
13801380+#line 1381 "cc_parser.tab.c"
13511381 break;
1352138213531383 case 3:
13541354-#line 149 "cc_parser.y" /* yacc.c:1646 */
13841384+#line 149 "cc_parser.y"
13551385 { (yyval.ccval) = (yyvsp[0].ccval); }
13561356-#line 1357 "cc_parser.tab.c" /* yacc.c:1646 */
13861386+#line 1387 "cc_parser.tab.c"
13571387 break;
1358138813591389 case 4:
13601360-#line 150 "cc_parser.y" /* yacc.c:1646 */
13901390+#line 150 "cc_parser.y"
13611391 { (yyval.ccval) = (yyvsp[-1].ccval); }
13621362-#line 1363 "cc_parser.tab.c" /* yacc.c:1646 */
13921392+#line 1393 "cc_parser.tab.c"
13631393 break;
1364139413651395 case 5:
13661366-#line 151 "cc_parser.y" /* yacc.c:1646 */
13961396+#line 151 "cc_parser.y"
13671397 { (yyval.ccval) = ccval_bool(!get_ccbool((yyvsp[0].ccval))); }
13681368-#line 1369 "cc_parser.tab.c" /* yacc.c:1646 */
13981398+#line 1399 "cc_parser.tab.c"
13691399 break;
1370140013711401 case 6:
13721372-#line 152 "cc_parser.y" /* yacc.c:1646 */
14021402+#line 152 "cc_parser.y"
13731403 { FIXME("'~' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
13741374-#line 1375 "cc_parser.tab.c" /* yacc.c:1646 */
14041404+#line 1405 "cc_parser.tab.c"
13751405 break;
1376140613771407 case 7:
13781378-#line 153 "cc_parser.y" /* yacc.c:1646 */
14081408+#line 153 "cc_parser.y"
13791409 { FIXME("'+' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
13801380-#line 1381 "cc_parser.tab.c" /* yacc.c:1646 */
14101410+#line 1411 "cc_parser.tab.c"
13811411 break;
1382141213831413 case 8:
13841384-#line 154 "cc_parser.y" /* yacc.c:1646 */
14141414+#line 154 "cc_parser.y"
13851415 { FIXME("'-' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
13861386-#line 1387 "cc_parser.tab.c" /* yacc.c:1646 */
14161416+#line 1417 "cc_parser.tab.c"
13871417 break;
1388141813891419 case 9:
13901390-#line 157 "cc_parser.y" /* yacc.c:1646 */
14201420+#line 157 "cc_parser.y"
13911421 { (yyval.ccval) = (yyvsp[0].ccval); }
13921392-#line 1393 "cc_parser.tab.c" /* yacc.c:1646 */
14221422+#line 1423 "cc_parser.tab.c"
13931423 break;
1394142413951425 case 10:
13961396-#line 159 "cc_parser.y" /* yacc.c:1646 */
14261426+#line 159 "cc_parser.y"
13971427 { FIXME("'||' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
13981398-#line 1399 "cc_parser.tab.c" /* yacc.c:1646 */
14281428+#line 1429 "cc_parser.tab.c"
13991429 break;
1400143014011431 case 11:
14021402-#line 162 "cc_parser.y" /* yacc.c:1646 */
14321432+#line 162 "cc_parser.y"
14031433 { (yyval.ccval) = (yyvsp[0].ccval); }
14041404-#line 1405 "cc_parser.tab.c" /* yacc.c:1646 */
14341434+#line 1435 "cc_parser.tab.c"
14051435 break;
1406143614071437 case 12:
14081408-#line 164 "cc_parser.y" /* yacc.c:1646 */
14381438+#line 164 "cc_parser.y"
14091439 { FIXME("'&&' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14101410-#line 1411 "cc_parser.tab.c" /* yacc.c:1646 */
14401440+#line 1441 "cc_parser.tab.c"
14111441 break;
1412144214131443 case 13:
14141414-#line 167 "cc_parser.y" /* yacc.c:1646 */
14441444+#line 167 "cc_parser.y"
14151445 { (yyval.ccval) = (yyvsp[0].ccval); }
14161416-#line 1417 "cc_parser.tab.c" /* yacc.c:1646 */
14461446+#line 1447 "cc_parser.tab.c"
14171447 break;
1418144814191449 case 14:
14201420-#line 169 "cc_parser.y" /* yacc.c:1646 */
14501450+#line 169 "cc_parser.y"
14211451 { FIXME("'|' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14221422-#line 1423 "cc_parser.tab.c" /* yacc.c:1646 */
14521452+#line 1453 "cc_parser.tab.c"
14231453 break;
1424145414251455 case 15:
14261426-#line 172 "cc_parser.y" /* yacc.c:1646 */
14561456+#line 172 "cc_parser.y"
14271457 { (yyval.ccval) = (yyvsp[0].ccval); }
14281428-#line 1429 "cc_parser.tab.c" /* yacc.c:1646 */
14581458+#line 1459 "cc_parser.tab.c"
14291459 break;
1430146014311461 case 16:
14321432-#line 174 "cc_parser.y" /* yacc.c:1646 */
14621462+#line 174 "cc_parser.y"
14331463 { FIXME("'^' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14341434-#line 1435 "cc_parser.tab.c" /* yacc.c:1646 */
14641464+#line 1465 "cc_parser.tab.c"
14351465 break;
1436146614371467 case 17:
14381438-#line 177 "cc_parser.y" /* yacc.c:1646 */
14681468+#line 177 "cc_parser.y"
14391469 { (yyval.ccval) = (yyvsp[0].ccval); }
14401440-#line 1441 "cc_parser.tab.c" /* yacc.c:1646 */
14701470+#line 1471 "cc_parser.tab.c"
14411471 break;
1442147214431473 case 18:
14441444-#line 179 "cc_parser.y" /* yacc.c:1646 */
14741474+#line 179 "cc_parser.y"
14451475 { FIXME("'&' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14461446-#line 1447 "cc_parser.tab.c" /* yacc.c:1646 */
14761476+#line 1477 "cc_parser.tab.c"
14471477 break;
1448147814491479 case 19:
14501450-#line 182 "cc_parser.y" /* yacc.c:1646 */
14801480+#line 182 "cc_parser.y"
14511481 { (yyval.ccval) = (yyvsp[0].ccval); }
14521452-#line 1453 "cc_parser.tab.c" /* yacc.c:1646 */
14821482+#line 1483 "cc_parser.tab.c"
14531483 break;
1454148414551485 case 20:
14561456-#line 184 "cc_parser.y" /* yacc.c:1646 */
14861486+#line 184 "cc_parser.y"
14571487 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) == get_ccnum((yyvsp[0].ccval))); }
14581458-#line 1459 "cc_parser.tab.c" /* yacc.c:1646 */
14881488+#line 1489 "cc_parser.tab.c"
14591489 break;
1460149014611491 case 21:
14621462-#line 186 "cc_parser.y" /* yacc.c:1646 */
14921492+#line 186 "cc_parser.y"
14631493 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) != get_ccnum((yyvsp[0].ccval))); }
14641464-#line 1465 "cc_parser.tab.c" /* yacc.c:1646 */
14941494+#line 1495 "cc_parser.tab.c"
14651495 break;
1466149614671497 case 22:
14681468-#line 188 "cc_parser.y" /* yacc.c:1646 */
14981498+#line 188 "cc_parser.y"
14691499 { FIXME("'===' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14701470-#line 1471 "cc_parser.tab.c" /* yacc.c:1646 */
15001500+#line 1501 "cc_parser.tab.c"
14711501 break;
1472150214731503 case 23:
14741474-#line 190 "cc_parser.y" /* yacc.c:1646 */
15041504+#line 190 "cc_parser.y"
14751505 { FIXME("'!==' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
14761476-#line 1477 "cc_parser.tab.c" /* yacc.c:1646 */
15061506+#line 1507 "cc_parser.tab.c"
14771507 break;
1478150814791509 case 24:
14801480-#line 193 "cc_parser.y" /* yacc.c:1646 */
15101510+#line 193 "cc_parser.y"
14811511 { (yyval.ccval) = (yyvsp[0].ccval); }
14821482-#line 1483 "cc_parser.tab.c" /* yacc.c:1646 */
15121512+#line 1513 "cc_parser.tab.c"
14831513 break;
1484151414851515 case 25:
14861486-#line 195 "cc_parser.y" /* yacc.c:1646 */
15161516+#line 195 "cc_parser.y"
14871517 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) < get_ccnum((yyvsp[0].ccval))); }
14881488-#line 1489 "cc_parser.tab.c" /* yacc.c:1646 */
15181518+#line 1519 "cc_parser.tab.c"
14891519 break;
1490152014911521 case 26:
14921492-#line 197 "cc_parser.y" /* yacc.c:1646 */
15221522+#line 197 "cc_parser.y"
14931523 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) <= get_ccnum((yyvsp[0].ccval))); }
14941494-#line 1495 "cc_parser.tab.c" /* yacc.c:1646 */
15241524+#line 1525 "cc_parser.tab.c"
14951525 break;
1496152614971527 case 27:
14981498-#line 199 "cc_parser.y" /* yacc.c:1646 */
15281528+#line 199 "cc_parser.y"
14991529 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) > get_ccnum((yyvsp[0].ccval))); }
15001500-#line 1501 "cc_parser.tab.c" /* yacc.c:1646 */
15301530+#line 1531 "cc_parser.tab.c"
15011531 break;
1502153215031533 case 28:
15041504-#line 201 "cc_parser.y" /* yacc.c:1646 */
15341534+#line 201 "cc_parser.y"
15051535 { (yyval.ccval) = ccval_bool(get_ccnum((yyvsp[-2].ccval)) >= get_ccnum((yyvsp[0].ccval))); }
15061506-#line 1507 "cc_parser.tab.c" /* yacc.c:1646 */
15361536+#line 1537 "cc_parser.tab.c"
15071537 break;
1508153815091539 case 29:
15101510-#line 204 "cc_parser.y" /* yacc.c:1646 */
15401540+#line 204 "cc_parser.y"
15111541 { (yyval.ccval) = (yyvsp[0].ccval); }
15121512-#line 1513 "cc_parser.tab.c" /* yacc.c:1646 */
15421542+#line 1543 "cc_parser.tab.c"
15131543 break;
1514154415151545 case 30:
15161516-#line 206 "cc_parser.y" /* yacc.c:1646 */
15461546+#line 206 "cc_parser.y"
15171547 { FIXME("'<<' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
15181518-#line 1519 "cc_parser.tab.c" /* yacc.c:1646 */
15481548+#line 1549 "cc_parser.tab.c"
15191549 break;
1520155015211551 case 31:
15221522-#line 208 "cc_parser.y" /* yacc.c:1646 */
15521552+#line 208 "cc_parser.y"
15231553 { FIXME("'>>' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
15241524-#line 1525 "cc_parser.tab.c" /* yacc.c:1646 */
15541554+#line 1555 "cc_parser.tab.c"
15251555 break;
1526155615271557 case 32:
15281528-#line 210 "cc_parser.y" /* yacc.c:1646 */
15581558+#line 210 "cc_parser.y"
15291559 { FIXME("'>>>' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
15301530-#line 1531 "cc_parser.tab.c" /* yacc.c:1646 */
15601560+#line 1561 "cc_parser.tab.c"
15311561 break;
1532156215331563 case 33:
15341534-#line 213 "cc_parser.y" /* yacc.c:1646 */
15641564+#line 213 "cc_parser.y"
15351565 { (yyval.ccval) = (yyvsp[0].ccval); }
15361536-#line 1537 "cc_parser.tab.c" /* yacc.c:1646 */
15661566+#line 1567 "cc_parser.tab.c"
15371567 break;
1538156815391569 case 34:
15401540-#line 215 "cc_parser.y" /* yacc.c:1646 */
15701570+#line 215 "cc_parser.y"
15411571 { (yyval.ccval) = ccval_num(get_ccnum((yyvsp[-2].ccval)) + get_ccnum((yyvsp[0].ccval))); }
15421542-#line 1543 "cc_parser.tab.c" /* yacc.c:1646 */
15721572+#line 1573 "cc_parser.tab.c"
15431573 break;
1544157415451575 case 35:
15461546-#line 217 "cc_parser.y" /* yacc.c:1646 */
15761576+#line 217 "cc_parser.y"
15471577 { (yyval.ccval) = ccval_num(get_ccnum((yyvsp[-2].ccval)) - get_ccnum((yyvsp[0].ccval))); }
15481548-#line 1549 "cc_parser.tab.c" /* yacc.c:1646 */
15781578+#line 1579 "cc_parser.tab.c"
15491579 break;
1550158015511581 case 36:
15521552-#line 220 "cc_parser.y" /* yacc.c:1646 */
15821582+#line 220 "cc_parser.y"
15531583 { (yyval.ccval) = (yyvsp[0].ccval); }
15541554-#line 1555 "cc_parser.tab.c" /* yacc.c:1646 */
15841584+#line 1585 "cc_parser.tab.c"
15551585 break;
1556158615571587 case 37:
15581558-#line 222 "cc_parser.y" /* yacc.c:1646 */
15881588+#line 222 "cc_parser.y"
15591589 { (yyval.ccval) = ccval_num(get_ccnum((yyvsp[-2].ccval)) * get_ccnum((yyvsp[0].ccval))); }
15601560-#line 1561 "cc_parser.tab.c" /* yacc.c:1646 */
15901590+#line 1591 "cc_parser.tab.c"
15611591 break;
1562159215631593 case 38:
15641564-#line 224 "cc_parser.y" /* yacc.c:1646 */
15941594+#line 224 "cc_parser.y"
15651595 { (yyval.ccval) = ccval_num(get_ccnum((yyvsp[-2].ccval)) / get_ccnum((yyvsp[0].ccval))); }
15661566-#line 1567 "cc_parser.tab.c" /* yacc.c:1646 */
15961596+#line 1597 "cc_parser.tab.c"
15671597 break;
1568159815691599 case 39:
15701570-#line 226 "cc_parser.y" /* yacc.c:1646 */
16001600+#line 226 "cc_parser.y"
15711601 { FIXME("'%%' expression not implemented\n"); ctx->hres = E_NOTIMPL; YYABORT; }
15721572-#line 1573 "cc_parser.tab.c" /* yacc.c:1646 */
16021602+#line 1603 "cc_parser.tab.c"
15731603 break;
157416041575160515761576-#line 1577 "cc_parser.tab.c" /* yacc.c:1646 */
16061606+#line 1607 "cc_parser.tab.c"
16071607+15771608 default: break;
15781609 }
15791610 /* User semantic actions sometimes alter yychar, and that requires
···15981629 /* Now 'shift' the result of the reduction. Determine what state
15991630 that goes to, based on the state we popped back to and the rule
16001631 number reduced by. */
16011601-16021602- yyn = yyr1[yyn];
16031603-16041604- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
16051605- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
16061606- yystate = yytable[yystate];
16071607- else
16081608- yystate = yydefgoto[yyn - YYNTOKENS];
16321632+ {
16331633+ const int yylhs = yyr1[yyn] - YYNTOKENS;
16341634+ const int yyi = yypgoto[yylhs] + *yyssp;
16351635+ yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
16361636+ ? yytable[yyi]
16371637+ : yydefgoto[yylhs]);
16381638+ }
1609163916101640 goto yynewstate;
16111641···16881718| yyerrorlab -- error raised explicitly by YYERROR. |
16891719`---------------------------------------------------*/
16901720yyerrorlab:
16911691-16921692- /* Pacify compilers like GCC when the user code never invokes
16931693- YYERROR and the label yyerrorlab therefore never appears in user
16941694- code. */
16951695- if (/*CONSTCOND*/ 0)
16961696- goto yyerrorlab;
17211721+ /* Pacify compilers when the user code never invokes YYERROR and the
17221722+ label yyerrorlab therefore never appears in user code. */
17231723+ if (0)
17241724+ YYERROR;
1697172516981726 /* Do not reclaim the symbols of the rule whose action triggered
16991727 this YYERROR. */
···17551783 yyresult = 0;
17561784 goto yyreturn;
1757178517861786+17581787/*-----------------------------------.
17591788| yyabortlab -- YYABORT comes here. |
17601789`-----------------------------------*/
17611790yyabortlab:
17621791 yyresult = 1;
17631792 goto yyreturn;
17931793+1764179417651795#if !defined yyoverflow || YYERROR_VERBOSE
17661796/*-------------------------------------------------.
···17721802 /* Fall through. */
17731803#endif
1774180418051805+18061806+/*-----------------------------------------------------.
18071807+| yyreturn -- parsing is finished, return the result. |
18081808+`-----------------------------------------------------*/
17751809yyreturn:
17761810 if (yychar != YYEMPTY)
17771811 {
···18011835#endif
18021836 return yyresult;
18031837}
18041804-#line 228 "cc_parser.y" /* yacc.c:1906 */
18381838+#line 228 "cc_parser.y"
180518391806184018071841BOOL parse_cc_expr(parser_ctx_t *ctx)
+10-5
dll/win32/jscript/cc_parser.tab.h
···11-/* A Bison parser, made by GNU Bison 3.0. */
11+/* A Bison parser, made by GNU Bison 3.4.1. */
2233/* Bison interface for Yacc-like parsers in C
4455- Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
55+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
66+ Inc.
6778 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
···29303031 This special exception was added by the Free Software Foundation in
3132 version 2.2 of Bison. */
3333+3434+/* Undocumented macros, especially those whose name start with YY_,
3535+ are private implementation details. Do not rely on them. */
32363337#ifndef YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
3438# define YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
···62666367/* Value type. */
6468#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
6565-typedef union YYSTYPE YYSTYPE;
6669union YYSTYPE
6770{
6868-#line 36 "cc_parser.y" /* yacc.c:1909 */
7171+#line 36 "cc_parser.y"
69727073 ccval_t ccval;
71747272-#line 73 "cc_parser.tab.h" /* yacc.c:1909 */
7575+#line 76 "cc_parser.tab.h"
7676+7377};
7878+typedef union YYSTYPE YYSTYPE;
7479# define YYSTYPE_IS_TRIVIAL 1
7580# define YYSTYPE_IS_DECLARED 1
7681#endif
···6161 if (This->atend)
6262 return S_OK;
63636464- /* dont leak pervious value */
6464+ /* don't leak previous value */
6565 jsval_release(This->item);
66666767 /* not at end ... get next item */
···7373 VariantClear(&nextitem);
7474 if (FAILED(hres))
7575 {
7676- WARN("failed to convert jsval to variant!");
7676+ WARN("failed to convert jsval to variant!\n");
7777 This->item = jsval_undefined();
7878 return hres;
7979 }
···11-/* A Bison parser, made by GNU Bison 3.0. */
11+/* A Bison parser, made by GNU Bison 3.4.1. */
2233/* Bison interface for Yacc-like parsers in C
4455- Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
55+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
66+ Inc.
6778 This program is free software: you can redistribute it and/or modify
89 it under the terms of the GNU General Public License as published by
···29303031 This special exception was added by the Free Software Foundation in
3132 version 2.2 of Bison. */
3333+3434+/* Undocumented macros, especially those whose name start with YY_,
3535+ are private implementation details. Do not rely on them. */
32363337#ifndef YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_PARSER_TAB_H_INCLUDED
3438# define YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_PARSER_TAB_H_INCLUDED
···9710198102/* Value type. */
99103#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
100100-typedef union YYSTYPE YYSTYPE;
101104union YYSTYPE
102105{
103103-#line 147 "parser.y" /* yacc.c:1909 */
106106+#line 147 "parser.y"
104107105108 int ival;
106109 const WCHAR *srcptr;
107107- LPCWSTR wstr;
110110+ jsstr_t *str;
108111 literal_t *literal;
109112 struct _argument_list_t *argument_list;
110113 case_clausule_t *case_clausule;
···122125 struct _variable_list_t *variable_list;
123126 variable_declaration_t *variable_declaration;
124127125125-#line 126 "parser.tab.h" /* yacc.c:1909 */
128128+#line 129 "parser.tab.h"
129129+126130};
131131+typedef union YYSTYPE YYSTYPE;
127132# define YYSTYPE_IS_TRIVIAL 1
128133# define YYSTYPE_IS_DECLARED 1
129134#endif
···8686dll/win32/iphlpapi # Out of sync
8787dll/win32/itircl # Synced to WineStaging-4.18
8888dll/win32/itss # Synced to WineStaging-4.18
8989-dll/win32/jscript # Synced to WineStaging-4.0
8989+dll/win32/jscript # Synced to WineStaging-4.18
9090dll/win32/jsproxy # Synced to WineStaging-4.0
9191dll/win32/loadperf # Synced to WineStaging-3.3
9292dll/win32/lz32 # Synced to WineStaging-3.3