Lines Matching refs:yystack

358     YYSTACKDATA            yystack; /* saved parser stack */
367 static YYSTACKDATA yystack;
414 #define yydepth (int)(yystack.s_mark - yystack.s_base)
499 p->yystack.stacksize = size;
502 p->yystack.s_base = NULL;
503 p->yystack.l_base = NULL;
505 p->yystack.p_base = NULL;
509 p->yystack.s_base = (short *) malloc(size * sizeof(short));
510 if (p->yystack.s_base == NULL) return NULL;
511 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
512 if (p->yystack.l_base == NULL) return NULL;
513 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
515 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
516 if (p->yystack.p_base == NULL) return NULL;
517 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
526 yyfreestack(&p->yystack);
575 memset(&yystack, 0, sizeof(yystack));
578 if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
579 yystack.s_mark = yystack.s_base;
580 yystack.l_mark = yystack.l_base;
582 yystack.p_mark = yystack.p_base;
585 *yystack.s_mark = 0;
699 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
704 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
705 memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
706 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
707 memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
709 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
710 memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
783 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
786 *++yystack.s_mark = (short) yystate;
787 *++yystack.l_mark = yylval;
789 *++yystack.p_mark = yylloc;
810 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
812 *++yystack.s_mark = yytable[yyn];
813 *++yystack.l_mark = yylval;
815 *++yystack.p_mark = yylloc;
853 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
858 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
859 memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
860 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
861 memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
863 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
864 memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
874 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
875 memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
876 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
877 memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
879 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
880 memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
909 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
910 memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
911 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
912 memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
914 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
915 memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
943 if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
949 YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
951 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
953 *++yystack.s_mark = yytable[yyn];
954 *++yystack.l_mark = yylval;
959 *++yystack.p_mark = yyloc;
968 YYDEBUGSTR, yydepth, *yystack.s_mark);
970 if (yystack.s_mark <= yystack.s_base) goto yyabort;
973 yyerror_loc_range[0] = *yystack.p_mark;
981 yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
984 yystos[*yystack.s_mark], yystack.l_mark);
987 --yystack.s_mark;
988 --yystack.l_mark;
990 --yystack.p_mark;
1038 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
1039 yystack.l_mark[1-i]), stderr);
1048 yyval = yystack.l_mark[1-yym];
1059 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1062 yyerror_loc_range[0] = yystack.p_mark[1-yym];
1070 { yyval.nlist = yystack.l_mark[0].nlist; }
1074 { yyval.nlist = yystack.l_mark[0].nlist; }
1094 { yyval.nlist->s = mksymbol(yystack.l_mark[-2].tval, yystack.l_mark[-3].cval, yystack.l_mark[0].id);
1095 yyval.nlist->next = yystack.l_mark[-1].nlist;
1100 { yyval.nlist->s = mksymbol(yystack.l_mark[-1].tval, yystack.l_mark[-2].cval, yystack.l_mark[0].id);
1110 { yyval.tval = yystack.l_mark[-2].tval; }
1114 { yyval.nlist = yystack.l_mark[0].nlist; }
1120 yystack.s_mark -= yym;
1121 yystate = *yystack.s_mark;
1122 yystack.l_mark -= yym;
1124 yystack.p_mark -= yym;
1143 *++yystack.s_mark = YYFINAL;
1144 *++yystack.l_mark = yyval;
1146 *++yystack.p_mark = yyloc;
1232 fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
1235 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1236 *++yystack.s_mark = (short) yystate;
1237 *++yystack.l_mark = yyval;
1239 *++yystack.p_mark = yyloc;
1270 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
1271 memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1272 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
1273 memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1275 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
1276 memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1317 for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
1319 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
1321 for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
1323 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
1349 yyfreestack(&yystack);