Lines Matching refs:yystack

433     YYSTACKDATA            yystack; /* saved parser stack */
442 static YYSTACKDATA yystack;
513 #define yydepth (int)(yystack.s_mark - yystack.s_base)
598 p->yystack.stacksize = size;
601 p->yystack.s_base = NULL;
602 p->yystack.l_base = NULL;
604 p->yystack.p_base = NULL;
608 p->yystack.s_base = (short *) malloc(size * sizeof(short));
609 if (p->yystack.s_base == NULL) return NULL;
610 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE));
611 if (p->yystack.l_base == NULL) return NULL;
612 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE));
614 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE));
615 if (p->yystack.p_base == NULL) return NULL;
616 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE));
625 yyfreestack(&p->yystack);
674 memset(&yystack, 0, sizeof(yystack));
677 if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
678 yystack.s_mark = yystack.s_base;
679 yystack.l_mark = yystack.l_base;
681 yystack.p_mark = yystack.p_base;
684 *yystack.s_mark = 0;
798 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
803 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base);
804 memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
805 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base);
806 memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
808 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base);
809 memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
882 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM)
885 *++yystack.s_mark = (short) yystate;
886 *++yystack.l_mark = yylval;
888 *++yystack.p_mark = yylloc;
909 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
911 *++yystack.s_mark = yytable[yyn];
912 *++yystack.l_mark = yylval;
914 *++yystack.p_mark = yylloc;
952 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1));
957 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base);
958 memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
959 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base);
960 memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
962 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base);
963 memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
973 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base);
974 memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
975 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base);
976 memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
978 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base);
979 memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1008 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base);
1009 memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1010 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base);
1011 memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1013 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base);
1014 memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1042 if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
1048 YYDEBUGSTR, yydepth, *yystack.s_mark, yytable[yyn]);
1050 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1052 *++yystack.s_mark = yytable[yyn];
1053 *++yystack.l_mark = yylval;
1058 *++yystack.p_mark = yyloc;
1067 YYDEBUGSTR, yydepth, *yystack.s_mark);
1069 if (yystack.s_mark <= yystack.s_base) goto yyabort;
1072 yyerror_loc_range[0] = *yystack.p_mark;
1080 yystos[*yystack.s_mark], yystack.l_mark, yystack.p_mark);
1083 yystos[*yystack.s_mark], yystack.l_mark);
1086 --yystack.s_mark;
1087 --yystack.l_mark;
1089 --yystack.p_mark;
1137 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]],
1138 yystack.l_mark[1-i]), stderr);
1147 yyval = yystack.l_mark[1-yym];
1158 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[1-yym], yym);
1161 yyerror_loc_range[0] = yystack.p_mark[1-yym];
1170 { yyval.nlist = yystack.l_mark[-5].nlist; }
1175 { yyval.nlist = yystack.l_mark[-3].nlist; }
1200 { yyval.nlist->s = mksymbol(yystack.l_mark[-2].tval, yystack.l_mark[-2].cval, yystack.l_mark[0].id);
1201 yyval.nlist->next = yystack.l_mark[-1].nlist;
1207 { yyval.nlist->s = mksymbol(0, 0, yystack.l_mark[0].id);
1214 { yyval.nlist = yystack.l_mark[-5].nlist; }
1220 yystack.s_mark -= yym;
1221 yystate = *yystack.s_mark;
1222 yystack.l_mark -= yym;
1224 yystack.p_mark -= yym;
1243 *++yystack.s_mark = YYFINAL;
1244 *++yystack.l_mark = yyval;
1246 *++yystack.p_mark = yyloc;
1332 fprintf(stderr, "shifting from state %d to state %d\n", *yystack.s_mark, yystate);
1335 if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
1336 *++yystack.s_mark = (short) yystate;
1337 *++yystack.l_mark = yyval;
1339 *++yystack.p_mark = yyloc;
1370 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base);
1371 memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * sizeof(short));
1372 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base);
1373 memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * sizeof(YYSTYPE));
1375 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base);
1376 memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * sizeof(YYLTYPE));
1417 for (pv = yystack.l_base, pp = yystack.p_base; pv <= yystack.l_mark; ++pv, ++pp)
1419 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp);
1421 for (pv = yystack.l_base; pv <= yystack.l_mark; ++pv)
1423 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv);
1449 yyfreestack(&yystack);