21c21
< "/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */",
---
> "/* (use YYMAJOR/YYMINOR for ifdefs dependent of parser version) */",
59c59
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
67c67
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
130c130
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
175c175
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
223c223
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
280c280
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
293c293
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
296c296
< "#include <stdio.h> /* needed for printf */",
---
> "#include <stdio.h> /* needed for printf */",
299,300c299,300
< "#include <stdlib.h> /* needed for malloc, etc */",
< "#include <string.h> /* needed for memset */",
---
> "#include <stdlib.h> /* needed for malloc, etc */",
> "#include <string.h> /* needed for memset */",
407c407
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
419c419
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
435c435
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
457c457
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
498,499c498,499
< " int p = yylvp - yylvals;",
< " int s = yylvlim - yylvals;",
---
> " size_t p = (size_t) (yylvp - yylvals);",
> " size_t s = (size_t) (yylvlim - yylvals);",
527c527
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
533c533
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
547c547
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
601c601
< " memcpy (save->yystack.s_base, yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
603c603
< " memcpy (save->yystack.l_base, yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
606c606
< " memcpy (save->yystack.p_base, yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
661c661
< " save->lexeme = yylvp - yylvals;",
---
> " save->lexeme = (int) (yylvp - yylvals);",
698c698
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
757c757
< " memcpy (yyerrctx->yystack.s_base, yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
759c759
< " memcpy (yyerrctx->yystack.l_base, yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
762c762
< " memcpy (yyerrctx->yystack.p_base, yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
764c764
< " yyerrctx->lexeme = yylvp - yylvals;",
---
> " yyerrctx->lexeme = (int) (yylvp - yylvals);",
773c773
< " memcpy (yystack.s_base, save->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
775c775
< " memcpy (yystack.l_base, save->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
778c778
< " memcpy (yystack.p_base, save->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
808c808
< " memcpy (yystack.s_base, yyerrctx->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
810c810
< " memcpy (yystack.l_base, yyerrctx->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
813c813
< " memcpy (yystack.p_base, yyerrctx->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
823c823
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
879c879
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
912c912
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
935c935
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
964c964
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1001c1001
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1033,1034c1033,1034
< " int p = yylvp - yylvals;",
< " int s = yylvlim - yylvals;",
---
> " size_t p = (size_t) (yylvp - yylvals);",
> " size_t s = (size_t) (yylvlim - yylvals);",
1065c1065
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1071c1071
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1100c1100
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1143c1143
< " memcpy (yystack.s_base, yypath->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
1145c1145
< " memcpy (yystack.l_base, yypath->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
1148c1148
< " memcpy (yystack.p_base, yypath->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
1153c1153
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1164c1164
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1177c1177
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1227c1227
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
< "/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */",
---
> "/* (use YYMAJOR/YYMINOR for ifdefs dependent of parser version) */",
59c59
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
67c67
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
130c130
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
175c175
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
223c223
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
280c280
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
293c293
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
296c296
< "#include <stdio.h> /* needed for printf */",
---
> "#include <stdio.h> /* needed for printf */",
299,300c299,300
< "#include <stdlib.h> /* needed for malloc, etc */",
< "#include <string.h> /* needed for memset */",
---
> "#include <stdlib.h> /* needed for malloc, etc */",
> "#include <string.h> /* needed for memset */",
407c407
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
419c419
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
435c435
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
457c457
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
498,499c498,499
< " int p = yylvp - yylvals;",
< " int s = yylvlim - yylvals;",
---
> " size_t p = (size_t) (yylvp - yylvals);",
> " size_t s = (size_t) (yylvlim - yylvals);",
527c527
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
533c533
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
547c547
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
601c601
< " memcpy (save->yystack.s_base, yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
603c603
< " memcpy (save->yystack.l_base, yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
606c606
< " memcpy (save->yystack.p_base, yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
661c661
< " save->lexeme = yylvp - yylvals;",
---
> " save->lexeme = (int) (yylvp - yylvals);",
698c698
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
757c757
< " memcpy (yyerrctx->yystack.s_base, yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
759c759
< " memcpy (yyerrctx->yystack.l_base, yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
762c762
< " memcpy (yyerrctx->yystack.p_base, yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
764c764
< " yyerrctx->lexeme = yylvp - yylvals;",
---
> " yyerrctx->lexeme = (int) (yylvp - yylvals);",
773c773
< " memcpy (yystack.s_base, save->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
775c775
< " memcpy (yystack.l_base, save->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
778c778
< " memcpy (yystack.p_base, save->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
808c808
< " memcpy (yystack.s_base, yyerrctx->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
810c810
< " memcpy (yystack.l_base, yyerrctx->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
813c813
< " memcpy (yystack.p_base, yyerrctx->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
823c823
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
879c879
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
912c912
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
935c935
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
964c964
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1001c1001
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1033,1034c1033,1034
< " int p = yylvp - yylvals;",
< " int s = yylvlim - yylvals;",
---
> " size_t p = (size_t) (yylvp - yylvals);",
> " size_t s = (size_t) (yylvlim - yylvals);",
1065c1065
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1071c1071
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1100c1100
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1143c1143
< " memcpy (yystack.s_base, yypath->yystack.s_base, (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
---
> " memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));",
1145c1145
< " memcpy (yystack.l_base, yypath->yystack.l_base, (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
---
> " memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));",
1148c1148
< " memcpy (yystack.p_base, yypath->yystack.p_base, (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
---
> " memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));",
1153c1153
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1164c1164
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1177c1177
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */
1227c1227
< #endif /* defined(YYBTYACC) */
---
> #endif /* defined(YYBTYACC) */