Lines Matching +full:1 +full:- +full:1
5 #define YYBYACC 1
10 #define YYEMPTY (-1)
14 #define YYENOMEM (-2)
135 #define OPT_LINTLIBRARY 1
138 #define TRUE (1)
147 #define TEXT_LEN (MAX_TEXT_SIZE / 2 - 3)
151 #define PROTO_ANSI_LLIB -2 /* form ANSI lint-library source */
152 #define PROTO_LINTLIBRARY -1 /* form lint-library source */
155 #define PROTO_TRADITIONAL 1 /* comment out parameters */
171 #define FUNC_UNKNOWN -1 /* unspecified */
176 #define FUNC_TRADITIONAL 1 /* traditional style */
190 #define DS_EXTERN 1 /* contains "extern" specifier */
387 static int return_val; /* nonzero on BRACES iff return-expression found */
400 for (p = func_params->first; p != 0; p = p->next) { in haveAnsiParam()
401 if (p->declarator->func_def == FUNC_ANSI) { in haveAnsiParam()
478 static const YYINT grammar_lhs[] = { -1,
482 36, 36, 40, 40, 1, 1, 2, 2, 2, 3,
493 0, 1, 1, 2, 1, 1, 1, 1, 3, 2,
494 2, 2, 3, 3, 2, 3, 0, 5, 2, 1,
495 0, 1, 1, 3, 0, 0, 7, 0, 5, 0,
496 1, 1, 1, 2, 1, 2, 1, 1, 1, 1,
497 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
498 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
499 1, 1, 3, 2, 2, 1, 1, 1, 3, 1,
500 0, 4, 3, 2, 2, 1, 1, 1, 2, 1,
501 1, 3, 2, 4, 4, 2, 3, 0, 1, 1,
502 2, 1, 3, 1, 3, 2, 2, 1, 0, 1,
503 1, 3, 1, 2, 1, 2, 1, 3, 2, 1,
549 static const YYINT grammar_sindex[] = { -2,
550 -3, 27, -239, -177, 0, 0, 0, 0, -274, 0,
551 0, 0, 0, -246, 0, 0, 0, 0, 0, 0,
553 -266, 0, 0, 455, 0, 0, 0, 0, 0, 0,
554 0, -35, -245, 128, 0, 0, -245, -2, 0, 0,
555 0, 0, 642, 0, 0, 0, -15, 0, -12, -239,
556 0, 590, 0, -27, 0, 0, 0, 0, -10, 0,
557 -11, 534, -72, 0, -237, -232, 0, -35, -232, 0,
559 0, 27, 0, 534, 0, 0, -222, 617, 209, 34,
560 39, 0, 44, 42, 0, 0, 0, 0, 27, -11,
561 0, -200, -196, -195, 0, 174, 0, 0, 0, -33,
562 243, 0, 561, 0, -177, 0, 33, 49, 0, 0,
563 0, 0, 53, 55, 417, 0, -33, 0, 0, 0,
564 0, 27, -188, 0, 0, 0, 57, 0, 0, 0,
567 0, 0, 275, 0, 0, -38, 0, 0, 481, 0,
574 98, -182, 62, 0, 0, 133, 0, 64, 379, 0,
575 0, 0, -5, 0, 0, 0, 0, 0, 0, 0,
576 0, 0, 0, -182, 0, 0, 0, -180, -19, 0,
578 0, 0, 0, 0, 0, 0, 0, 0, 0, -13,
603 11, -17, 0, 0, 13, 0, 0, 0, 20, 8,
604 -43, -1, -8, -89, 0, -9, 0, 0, 0, -44,
605 0, 0, 4, 0, 0, 0, 70, -53, 0, 0,
606 -18, 0, 0, 0, 0, 22, 0, 0, 0, 0,
620 80, 141, 142, 144, 110, 145, 149, 150, 1, 110,
636 3, 17, 78, 1, 5, 6, 7, 8, 9, 10,
717 59, 92, 121, 123, 116, 94, 109, 48, -1, -1,
718 -1, -1, 59, 116, 61, -1, 116, -1, 125, -1,
719 -1, -1, -1, 123, -1, -1, -1, -1, -1, -1,
720 -1, 44, -1, -1, -1, 135, -1, -1, -1, 142,
721 -1, -1, -1, -1, -1, -1, 59, -1, -1, -1,
722 -1, -1, -1, -1, -1, 38, -1, 40, -1, -1,
723 38, -1, 40, 41, 42, -1, 44, -1, -1, -1,
724 -1, -1, -1, -1, 257, 258, 259, 260, 261, 262,
727 -1, 38, -1, 40, 41, 42, -1, -1, 257, 258,
734 38, 285, 40, 257, 258, -1, 289, 258, 259, 260,
737 281, 282, 38, 284, 40, 41, 42, -1, 44, -1,
741 42, -1, 44, -1, 291, 258, 259, 260, 261, 262,
744 38, 284, 40, 41, 257, 258, 44, -1, 291, 257,
745 258, 259, 260, 261, 262, 263, -1, 265, 266, 267,
747 278, 279, 280, 281, 282, 283, 38, -1, 40, 41,
748 42, -1, 44, -1, -1, -1, -1, -1, -1, -1,
751 277, 278, 279, 280, 281, 282, 283, 41, -1, -1,
752 -1, -1, -1, -1, -1, 257, 258, 259, 260, 261,
753 262, 263, -1, 265, 266, 267, 268, 269, 270, 271,
755 282, 283, 38, -1, 40, -1, 42, -1, -1, 257,
756 258, -1, -1, -1, -1, -1, -1, -1, -1, -1,
757 -1, -1, -1, 59, -1, -1, -1, -1, 38, -1,
758 40, -1, 42, -1, -1, 283, -1, -1, -1, -1,
759 -1, 257, 258, -1, -1, -1, -1, -1, -1, 59,
760 -1, -1, -1, -1, -1, -1, 38, -1, 40, -1,
761 42, -1, -1, -1, -1, -1, -1, 283, -1, -1,
762 -1, -1, -1, -1, -1, 257, 258, 59, -1, -1,
763 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
764 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
765 -1, 283, -1, -1, -1, -1, -1, -1, -1, 257,
766 258, -1, -1, -1, -1, -1, -1, -1, -1, -1,
767 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
768 -1, -1, -1, -1, -1, 283, -1, -1, -1, -1,
769 -1, -1, -1, -1, -1, 257, 258, 259, 260, 261,
770 262, 263, -1, 265, 266, 267, 268, 269, 270, 271,
772 282, 283, -1, -1, -1, -1, -1, -1, -1, -1,
773 -1, -1, -1, -1, 258, 259, 260, 261, 262, 263,
774 -1, 265, 266, 267, 268, 269, 270, 271, 272, 273,
775 274, 275, 276, 277, 278, 279, 280, 281, 282, -1,
776 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
777 -1, 257, 258, 259, 260, 261, 262, 263, -1, 265,
780 260, 261, 262, 263, -1, 265, 266, 267, 268, 269,
782 280, 281, 282, -1, -1, 257, 258, 259, 260, 261,
783 262, 263, -1, 265, 266, 267, 268, 269, 270, 271,
787 277, 278, 279, 280, 281, 282, -1, -1, 258, 259,
790 280, 281, 282, -1, -1, -1, 286, 258, 259, 260,
793 281, 282, -1, 284, 258, 259, 260, 261, 262, 263,
796 259, 260, 261, 262, 263, -1, 265, 266, 267, 268,
801 static const YYINT grammar_ctable[] = { -1,
802 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
803 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
804 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
805 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
806 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
807 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
808 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
809 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
810 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
811 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
812 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
813 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
814 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
815 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
816 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
817 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
818 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
819 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
820 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
821 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
822 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
823 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
824 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
825 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
826 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
827 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
828 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
829 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
830 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
831 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
832 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
833 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
834 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
835 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
836 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
837 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
838 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
839 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
840 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
841 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
842 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
843 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
844 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
845 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
846 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
847 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
848 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
849 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
850 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
851 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
852 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
853 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
854 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
855 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
856 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
857 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
858 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
859 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
860 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
861 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
862 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
863 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
864 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
865 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
866 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
867 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
868 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
869 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
870 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
871 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
872 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
873 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
874 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
875 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
876 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
877 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
878 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
879 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
880 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
881 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
882 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
883 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
884 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
885 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
886 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
887 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
888 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
889 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
890 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
891 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
892 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
893 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
894 -1, -1, -1,
928 "linkage_specification","braces","any_typedef","opt_declarator_list","$$1",
930 "$$5","illegal-symbol",
950 "$$1 :",
951 "declaration : any_typedef decl_specifiers $$1 opt_declarator_list ';'",
1081 (loc).first_line = YYRHSLOC(rhs, 1).first_line; \
1082 (loc).first_column = YYRHSLOC(rhs, 1).first_column; \
1096 /* define the initial stack-sizes */
1182 #define BEGIN yy_start = 1 + 2 *
1184 #define CPP1 1
1301 s = name + strlen(name) - 2; in process_file()
1316 inc_depth = -1; in process_file()
1353 #define yydepth (int)(yystack.s_mark - yystack.s_base)
1355 #define yytrial (yyps->save)
1376 if ((newsize = data->stacksize) == 0) in yygrowstack()
1383 i = (int) (data->s_mark - data->s_base); in yygrowstack()
1384 newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss)); in yygrowstack()
1388 data->s_base = newss; in yygrowstack()
1389 data->s_mark = newss + i; in yygrowstack()
1391 newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs)); in yygrowstack()
1395 data->l_base = newvs; in yygrowstack()
1396 data->l_mark = newvs + i; in yygrowstack()
1399 newps = (YYLTYPE *)realloc(data->p_base, newsize * sizeof(*newps)); in yygrowstack()
1403 data->p_base = newps; in yygrowstack()
1404 data->p_mark = newps + i; in yygrowstack()
1407 data->stacksize = newsize; in yygrowstack()
1408 data->s_last = data->s_base + newsize - 1; in yygrowstack()
1420 free(data->s_base); in yyfreestack()
1421 free(data->l_base); in yyfreestack()
1423 free(data->p_base); in yyfreestack()
1438 p->yystack.stacksize = size; in yyNewState()
1441 p->yystack.s_base = NULL; in yyNewState()
1442 p->yystack.l_base = NULL; in yyNewState()
1444 p->yystack.p_base = NULL; in yyNewState()
1448 p->yystack.s_base = (YYINT *) malloc(size * sizeof(YYINT)); in yyNewState()
1449 if (p->yystack.s_base == NULL) return NULL; in yyNewState()
1450 p->yystack.l_base = (YYSTYPE *) malloc(size * sizeof(YYSTYPE)); in yyNewState()
1451 if (p->yystack.l_base == NULL) return NULL; in yyNewState()
1452 memset(p->yystack.l_base, 0, size * sizeof(YYSTYPE)); in yyNewState()
1454 p->yystack.p_base = (YYLTYPE *) malloc(size * sizeof(YYLTYPE)); in yyNewState()
1455 if (p->yystack.p_base == NULL) return NULL; in yyNewState()
1456 memset(p->yystack.p_base, 0, size * sizeof(YYLTYPE)); in yyNewState()
1465 yyfreestack(&p->yystack); in yyFreeState()
1475 #define YYVALID do { if (yyps->save) goto yyvalid; } while(0)
1476 #define YYVALID_NESTED do { if (yyps->save && \
1477 yyps->save->save == 0) goto yyvalid; } while(0)
1498 yydebug = yyn - '0'; in YYPARSE_DECL()
1509 yyps->save = 0; in YYPARSE_DECL()
1539 /* we're currently re-reading tokens */ in YYPARSE_DECL()
1547 if (yyps->save) in YYPARSE_DECL()
1552 size_t p = (size_t) (yylvp - yylvals); in YYPARSE_DECL()
1553 size_t s = (size_t) (yylvlim - yylvals); in YYPARSE_DECL()
1620 yypath = save->save; in YYPARSE_DECL()
1621 save->save = NULL; in YYPARSE_DECL()
1622 ctry = save->ctry; in YYPARSE_DECL()
1623 if (save->state != yystate) YYABORT; in YYPARSE_DECL()
1630 /* Unresolved conflict - start/continue trial parse */ in YYPARSE_DECL()
1636 if (yyps->save) in YYPARSE_DECL()
1642 save = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1)); in YYPARSE_DECL()
1644 save->save = yyps->save; in YYPARSE_DECL()
1645 save->state = yystate; in YYPARSE_DECL()
1646 save->errflag = yyerrflag; in YYPARSE_DECL()
1647 save->yystack.s_mark = save->yystack.s_base + (yystack.s_mark - yystack.s_base); in YYPARSE_DECL()
1648 …memcpy (save->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * siz… in YYPARSE_DECL()
1649 save->yystack.l_mark = save->yystack.l_base + (yystack.l_mark - yystack.l_base); in YYPARSE_DECL()
1650 …memcpy (save->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * siz… in YYPARSE_DECL()
1652 save->yystack.p_mark = save->yystack.p_base + (yystack.p_mark - yystack.p_base); in YYPARSE_DECL()
1653 …memcpy (save->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * siz… in YYPARSE_DECL()
1656 if (yyctable[ctry] == -1) in YYPARSE_DECL()
1660 fprintf(stderr, "%s[%d]: backtracking 1 token\n", YYDEBUGSTR, yydepth); in YYPARSE_DECL()
1664 save->ctry = ctry; in YYPARSE_DECL()
1665 if (yyps->save == NULL) in YYPARSE_DECL()
1701 yylvp--; in YYPARSE_DECL()
1703 yylpp--; in YYPARSE_DECL()
1705 yylexp--; in YYPARSE_DECL()
1708 save->lexeme = (int) (yylvp - yylvals); in YYPARSE_DECL()
1709 yyps->save = save; in YYPARSE_DECL()
1735 if (yyerrflag > 0) --yyerrflag; in YYPARSE_DECL()
1761 if (yyerrflag > 0) --yyerrflag; in YYPARSE_DECL()
1773 yynewerrflag = 1; in YYPARSE_DECL()
1778 /* explicit YYERROR from an action -- pop the rhs of the rule reduced in YYPARSE_DECL()
1780 yystack.s_mark -= yym; in YYPARSE_DECL()
1782 yystack.l_mark -= yym; in YYPARSE_DECL()
1784 yystack.p_mark -= yym; in YYPARSE_DECL()
1789 while (yyps->save) in YYPARSE_DECL()
1792 YYParseState *save = yyps->save; in YYPARSE_DECL()
1796 YYDEBUGSTR, yydepth, yystate, yyps->save->state, in YYPARSE_DECL()
1797 (int)(yylvp - yylvals - yyps->save->lexeme)); in YYPARSE_DECL()
1799 /* Memorize most forward-looking error state in case it's really an error. */ in YYPARSE_DECL()
1800 if (yyerrctx == NULL || yyerrctx->lexeme < yylvp - yylvals) in YYPARSE_DECL()
1805 yyerrctx = yyNewState((unsigned)(yystack.s_mark - yystack.s_base + 1)); in YYPARSE_DECL()
1807 yyerrctx->save = yyps->save; in YYPARSE_DECL()
1808 yyerrctx->state = yystate; in YYPARSE_DECL()
1809 yyerrctx->errflag = yyerrflag; in YYPARSE_DECL()
1810 yyerrctx->yystack.s_mark = yyerrctx->yystack.s_base + (yystack.s_mark - yystack.s_base); in YYPARSE_DECL()
1811 …memcpy (yyerrctx->yystack.s_base, yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) *… in YYPARSE_DECL()
1812 yyerrctx->yystack.l_mark = yyerrctx->yystack.l_base + (yystack.l_mark - yystack.l_base); in YYPARSE_DECL()
1813 …memcpy (yyerrctx->yystack.l_base, yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) *… in YYPARSE_DECL()
1815 yyerrctx->yystack.p_mark = yyerrctx->yystack.p_base + (yystack.p_mark - yystack.p_base); in YYPARSE_DECL()
1816 …memcpy (yyerrctx->yystack.p_base, yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) *… in YYPARSE_DECL()
1818 yyerrctx->lexeme = (int) (yylvp - yylvals); in YYPARSE_DECL()
1820 yylvp = yylvals + save->lexeme; in YYPARSE_DECL()
1822 yylpp = yylpsns + save->lexeme; in YYPARSE_DECL()
1824 yylexp = yylexemes + save->lexeme; in YYPARSE_DECL()
1826 yystack.s_mark = yystack.s_base + (save->yystack.s_mark - save->yystack.s_base); in YYPARSE_DECL()
1827 …memcpy (yystack.s_base, save->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * siz… in YYPARSE_DECL()
1828 yystack.l_mark = yystack.l_base + (save->yystack.l_mark - save->yystack.l_base); in YYPARSE_DECL()
1829 …memcpy (yystack.l_base, save->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * siz… in YYPARSE_DECL()
1831 yystack.p_mark = yystack.p_base + (save->yystack.p_mark - save->yystack.p_base); in YYPARSE_DECL()
1832 …memcpy (yystack.p_base, save->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * siz… in YYPARSE_DECL()
1834 ctry = ++save->ctry; in YYPARSE_DECL()
1835 yystate = save->state; in YYPARSE_DECL()
1838 yyps->save = save->save; in YYPARSE_DECL()
1839 save->save = NULL; in YYPARSE_DECL()
1842 /* Nothing left on the stack -- error */ in YYPARSE_DECL()
1843 if (!yyps->save) in YYPARSE_DECL()
1850 /* Restore state as it was in the most forward-advanced error */ in YYPARSE_DECL()
1851 yylvp = yylvals + yyerrctx->lexeme; in YYPARSE_DECL()
1853 yylpp = yylpsns + yyerrctx->lexeme; in YYPARSE_DECL()
1855 yylexp = yylexemes + yyerrctx->lexeme; in YYPARSE_DECL()
1856 yychar = yylexp[-1]; in YYPARSE_DECL()
1857 yylval = yylvp[-1]; in YYPARSE_DECL()
1859 yylloc = yylpp[-1]; in YYPARSE_DECL()
1861 yystack.s_mark = yystack.s_base + (yyerrctx->yystack.s_mark - yyerrctx->yystack.s_base); in YYPARSE_DECL()
1862 …memcpy (yystack.s_base, yyerrctx->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) *… in YYPARSE_DECL()
1863 yystack.l_mark = yystack.l_base + (yyerrctx->yystack.l_mark - yyerrctx->yystack.l_base); in YYPARSE_DECL()
1864 …memcpy (yystack.l_base, yyerrctx->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) *… in YYPARSE_DECL()
1866 yystack.p_mark = yystack.p_base + (yyerrctx->yystack.p_mark - yyerrctx->yystack.p_base); in YYPARSE_DECL()
1867 …memcpy (yystack.p_base, yyerrctx->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) *… in YYPARSE_DECL()
1869 yystate = yyerrctx->state; in YYPARSE_DECL()
1873 yynewerrflag = 1; in YYPARSE_DECL()
1880 yyerror_loc_range[1] = yylloc; /* lookahead position is error start position */ in YYPARSE_DECL()
1925 yyerror_loc_range[1] = *yystack.p_mark; in YYPARSE_DECL()
1939 --yystack.s_mark; in YYPARSE_DECL()
1940 --yystack.l_mark; in YYPARSE_DECL()
1942 --yystack.p_mark; in YYPARSE_DECL()
1987 for (i = yym; i > 0; i--) in YYPARSE_DECL()
1990 fputs(YYSTYPE_TOSTRING(yystos[yystack.s_mark[1-i]], in YYPARSE_DECL()
1991 yystack.l_mark[1-i]), stderr); in YYPARSE_DECL()
2000 yyval = yystack.l_mark[1-yym]; in YYPARSE_DECL()
2011 YYLLOC_DEFAULT(yyloc, &yystack.p_mark[-yym], yym); in YYPARSE_DECL()
2014 yyerror_loc_range[1] = yystack.p_mark[1-yym]; in YYPARSE_DECL()
2056 gen_declarations(&yystack.l_mark[-1].decl_spec, (DeclaratorList *)0); in YYPARSE_DECL()
2060 free_decl_spec(&yystack.l_mark[-1].decl_spec); in YYPARSE_DECL()
2069 set_param_types(func_params, &yystack.l_mark[-2].decl_spec, &yystack.l_mark[-1].decl_list); in YYPARSE_DECL()
2071 gen_declarations(&yystack.l_mark[-2].decl_spec, &yystack.l_mark[-1].decl_list); in YYPARSE_DECL()
2075 free_decl_list(&yystack.l_mark[-1].decl_list); in YYPARSE_DECL()
2077 free_decl_spec(&yystack.l_mark[-2].decl_spec); in YYPARSE_DECL()
2119 if (strcmp(yystack.l_mark[0].declarator->text, yystack.l_mark[0].declarator->name) != 0) in YYPARSE_DECL()
2121 new_symbol(typedef_names, yystack.l_mark[0].declarator->name, NULL, flags); in YYPARSE_DECL()
2131 if (strcmp(yystack.l_mark[0].declarator->text, yystack.l_mark[0].declarator->name) != 0) in YYPARSE_DECL()
2133 new_symbol(typedef_names, yystack.l_mark[0].declarator->name, NULL, flags); in YYPARSE_DECL()
2141 check_untagged(&yystack.l_mark[-1].decl_spec); in YYPARSE_DECL()
2142 if (yystack.l_mark[0].declarator->func_def == FUNC_NONE) { in YYPARSE_DECL()
2146 func_params = &(yystack.l_mark[0].declarator->head->params); in YYPARSE_DECL()
2147 func_params->begin_comment = cur_file->begin_comment; in YYPARSE_DECL()
2148 func_params->end_comment = cur_file->end_comment; in YYPARSE_DECL()
2162 && yystack.l_mark[-3].declarator->head->func_def == func_style) { in YYPARSE_DECL()
2163 yystack.l_mark[-3].declarator->head->func_def = FUNC_BOTH; in YYPARSE_DECL()
2168 if (cur_file->convert) in YYPARSE_DECL()
2169 gen_func_definition(&yystack.l_mark[-4].decl_spec, yystack.l_mark[-3].declarator); in YYPARSE_DECL()
2170 gen_prototype(&yystack.l_mark[-4].decl_spec, yystack.l_mark[-3].declarator); in YYPARSE_DECL()
2174 free_decl_spec(&yystack.l_mark[-4].decl_spec); in YYPARSE_DECL()
2175 free_declarator(yystack.l_mark[-3].declarator); in YYPARSE_DECL()
2182 if (yystack.l_mark[0].declarator->func_def == FUNC_NONE) { in YYPARSE_DECL()
2186 func_params = &(yystack.l_mark[0].declarator->head->params); in YYPARSE_DECL()
2187 func_params->begin_comment = cur_file->begin_comment; in YYPARSE_DECL()
2188 func_params->end_comment = cur_file->end_comment; in YYPARSE_DECL()
2199 new_decl_spec(&decl_spec, dft_decl_spec(), yystack.l_mark[-4].declarator->begin, DS_NONE); in YYPARSE_DECL()
2200 if (cur_file->convert) in YYPARSE_DECL()
2201 gen_func_definition(&decl_spec, yystack.l_mark[-4].declarator); in YYPARSE_DECL()
2202 gen_prototype(&decl_spec, yystack.l_mark[-4].declarator); in YYPARSE_DECL()
2207 free_declarator(yystack.l_mark[-4].declarator); in YYPARSE_DECL()
2214 join_decl_specs(&yyval.decl_spec, &yystack.l_mark[-1].decl_spec, &yystack.l_mark[0].decl_spec); in YYPARSE_DECL()
2215 free(yystack.l_mark[-1].decl_spec.text); in YYPARSE_DECL()
2352 …new_decl_spec(&yyval.decl_spec, yystack.l_mark[0].text.text, yystack.l_mark[0].text.begin, s->flag… in YYPARSE_DECL()
2372 …new_decl_spec(&yyval.decl_spec, yystack.l_mark[0].text.text, yystack.l_mark[0].text.begin, s->flag… in YYPARSE_DECL()
2381 …sprintf(s = buf, "%.*s %.*s", TEXT_LEN, yystack.l_mark[-2].text.text, TEXT_LEN, yystack.l_mark[-1]… in YYPARSE_DECL()
2382 new_decl_spec(&yyval.decl_spec, s, yystack.l_mark[-2].text.begin, DS_NONE); in YYPARSE_DECL()
2391 (void)sprintf(s = buf, "%.*s {}", TEXT_LEN, yystack.l_mark[-1].text.text); in YYPARSE_DECL()
2392 new_decl_spec(&yyval.decl_spec, s, yystack.l_mark[-1].text.begin, DS_NONE); in YYPARSE_DECL()
2399 …(void)sprintf(buf, "%.*s %.*s", TEXT_LEN, yystack.l_mark[-1].text.text, TEXT_LEN, yystack.l_mark[0… in YYPARSE_DECL()
2400 new_decl_spec(&yyval.decl_spec, buf, yystack.l_mark[-1].text.begin, DS_NONE); in YYPARSE_DECL()
2428 add_decl_list(&yyval.decl_list, &yystack.l_mark[-2].decl_list, yystack.l_mark[0].declarator); in YYPARSE_DECL()
2435 if (yystack.l_mark[0].declarator->func_def != FUNC_NONE && func_params == NULL && in YYPARSE_DECL()
2436 func_style == FUNC_TRADITIONAL && cur_file->convert) { in YYPARSE_DECL()
2438 fputs(cur_text(), cur_file->tmp_file); in YYPARSE_DECL()
2447 if (yystack.l_mark[-1].declarator->func_def != FUNC_NONE && func_params == NULL && in YYPARSE_DECL()
2448 func_style == FUNC_TRADITIONAL && cur_file->convert) { in YYPARSE_DECL()
2449 gen_func_declarator(yystack.l_mark[-1].declarator); in YYPARSE_DECL()
2450 fputs(" =", cur_file->tmp_file); in YYPARSE_DECL()
2460 (void)sprintf(s = buf, "enum %.*s", TEXT_LEN, yystack.l_mark[-1].text.text); in YYPARSE_DECL()
2461 new_decl_spec(&yyval.decl_spec, s, yystack.l_mark[-2].text.begin, DS_NONE); in YYPARSE_DECL()
2470 (void)sprintf(s = buf, "%.*s {}", TEXT_LEN, yystack.l_mark[-1].text.text); in YYPARSE_DECL()
2471 new_decl_spec(&yyval.decl_spec, s, yystack.l_mark[-1].text.begin, DS_NONE); in YYPARSE_DECL()
2479 new_decl_spec(&yyval.decl_spec, buf, yystack.l_mark[-1].text.begin, DS_NONE); in YYPARSE_DECL()
2495 …void)sprintf(buf, "%.*s%.*s", TEXT_LEN, yystack.l_mark[-1].text.text, TEXT_LEN, yyval.declarator->… in YYPARSE_DECL()
2496 free(yyval.declarator->text); in YYPARSE_DECL()
2497 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2498 yyval.declarator->begin = yystack.l_mark[-1].text.begin; in YYPARSE_DECL()
2499 yyval.declarator->pointer = TRUE; in YYPARSE_DECL()
2513 yyval.declarator = yystack.l_mark[-1].declarator; in YYPARSE_DECL()
2514 (void)sprintf(buf, "(%.*s)", TEXT_LEN, yyval.declarator->text); in YYPARSE_DECL()
2515 free(yyval.declarator->text); in YYPARSE_DECL()
2516 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2517 yyval.declarator->begin = yystack.l_mark[-2].text.begin; in YYPARSE_DECL()
2524 yyval.declarator = yystack.l_mark[-1].declarator; in YYPARSE_DECL()
2525 …(void)sprintf(buf, "%.*s%.*s", TEXT_LEN, yyval.declarator->text, TEXT_LEN, yystack.l_mark[0].text.… in YYPARSE_DECL()
2526 free(yyval.declarator->text); in YYPARSE_DECL()
2527 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2534 …eclarator = new_declarator("%s()", yystack.l_mark[-3].declarator->name, yystack.l_mark[-3].declara… in YYPARSE_DECL()
2535 yyval.declarator->params = yystack.l_mark[-1].param_list; in YYPARSE_DECL()
2536 yyval.declarator->func_stack = yystack.l_mark[-3].declarator; in YYPARSE_DECL()
2537 …yyval.declarator->head = (yystack.l_mark[-3].declarator->func_stack == NULL) ? yyval.declarator : … in YYPARSE_DECL()
2538 yyval.declarator->func_def = FUNC_ANSI; in YYPARSE_DECL()
2545 …eclarator = new_declarator("%s()", yystack.l_mark[-3].declarator->name, yystack.l_mark[-3].declara… in YYPARSE_DECL()
2546 yyval.declarator->params = yystack.l_mark[-1].param_list; in YYPARSE_DECL()
2547 yyval.declarator->func_stack = yystack.l_mark[-3].declarator; in YYPARSE_DECL()
2548 …yyval.declarator->head = (yystack.l_mark[-3].declarator->func_stack == NULL) ? yyval.declarator : … in YYPARSE_DECL()
2549 yyval.declarator->func_def = FUNC_TRADITIONAL; in YYPARSE_DECL()
2557 yyval.text.begin = yystack.l_mark[-1].text.begin; in YYPARSE_DECL()
2564 …(void)sprintf(yyval.text.text, "*%.*s%.*s", TEXT_LEN, yystack.l_mark[-1].text.text, TEXT_LEN, yyst… in YYPARSE_DECL()
2565 yyval.text.begin = yystack.l_mark[-2].text.begin; in YYPARSE_DECL()
2589 …(void)sprintf(yyval.text.text, "%.*s%.*s ", TEXT_LEN, yystack.l_mark[-1].text.text, TEXT_LEN, yyst… in YYPARSE_DECL()
2590 yyval.text.begin = yystack.l_mark[-1].text.begin; in YYPARSE_DECL()
2598 add_ident_list(&yyval.param_list, &yystack.l_mark[-2].param_list, "..."); in YYPARSE_DECL()
2612 add_param_list(&yyval.param_list, &yystack.l_mark[-2].param_list, yystack.l_mark[0].parameter); in YYPARSE_DECL()
2619 check_untagged(&yystack.l_mark[-1].decl_spec); in YYPARSE_DECL()
2620 yyval.parameter = new_parameter(&yystack.l_mark[-1].decl_spec, yystack.l_mark[0].declarator); in YYPARSE_DECL()
2627 check_untagged(&yystack.l_mark[-1].decl_spec); in YYPARSE_DECL()
2628 yyval.parameter = new_parameter(&yystack.l_mark[-1].decl_spec, yystack.l_mark[0].declarator); in YYPARSE_DECL()
2658 add_ident_list(&yyval.param_list, &yystack.l_mark[-2].param_list, yystack.l_mark[0].text.text); in YYPARSE_DECL()
2678 yyval.text.begin = yystack.l_mark[-1].text.begin; in YYPARSE_DECL()
2693 …void)sprintf(buf, "%.*s%.*s", TEXT_LEN, yystack.l_mark[-1].text.text, TEXT_LEN, yyval.declarator->… in YYPARSE_DECL()
2694 free(yyval.declarator->text); in YYPARSE_DECL()
2695 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2696 yyval.declarator->begin = yystack.l_mark[-1].text.begin; in YYPARSE_DECL()
2703 yyval.declarator = yystack.l_mark[-1].declarator; in YYPARSE_DECL()
2704 (void)sprintf(buf, "(%.*s)", TEXT_LEN, yyval.declarator->text); in YYPARSE_DECL()
2705 free(yyval.declarator->text); in YYPARSE_DECL()
2706 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2707 yyval.declarator->begin = yystack.l_mark[-2].text.begin; in YYPARSE_DECL()
2714 yyval.declarator = yystack.l_mark[-1].declarator; in YYPARSE_DECL()
2715 …(void)sprintf(buf, "%.*s%.*s", TEXT_LEN, yyval.declarator->text, TEXT_LEN, yystack.l_mark[0].text.… in YYPARSE_DECL()
2716 free(yyval.declarator->text); in YYPARSE_DECL()
2717 yyval.declarator->text = xstrdup(buf); in YYPARSE_DECL()
2731 yyval.declarator = new_declarator("%s()", "", yystack.l_mark[-3].declarator->begin); in YYPARSE_DECL()
2732 yyval.declarator->params = yystack.l_mark[-1].param_list; in YYPARSE_DECL()
2733 yyval.declarator->func_stack = yystack.l_mark[-3].declarator; in YYPARSE_DECL()
2734 …yyval.declarator->head = (yystack.l_mark[-3].declarator->func_stack == NULL) ? yyval.declarator : … in YYPARSE_DECL()
2735 yyval.declarator->func_def = FUNC_ANSI; in YYPARSE_DECL()
2742 yyval.declarator = new_declarator("%s()", "", yystack.l_mark[-2].declarator->begin); in YYPARSE_DECL()
2743 yyval.declarator->func_stack = yystack.l_mark[-2].declarator; in YYPARSE_DECL()
2744 …yyval.declarator->head = (yystack.l_mark[-2].declarator->func_stack == NULL) ? yyval.declarator : … in YYPARSE_DECL()
2745 yyval.declarator->func_def = FUNC_ANSI; in YYPARSE_DECL()
2754 d = new_declarator("", "", yystack.l_mark[-2].text.begin); in YYPARSE_DECL()
2755 yyval.declarator = new_declarator("%s()", "", yystack.l_mark[-2].text.begin); in YYPARSE_DECL()
2756 yyval.declarator->params = yystack.l_mark[-1].param_list; in YYPARSE_DECL()
2757 yyval.declarator->func_stack = d; in YYPARSE_DECL()
2758 yyval.declarator->head = yyval.declarator; in YYPARSE_DECL()
2759 yyval.declarator->func_def = FUNC_ANSI; in YYPARSE_DECL()
2768 d = new_declarator("", "", yystack.l_mark[-1].text.begin); in YYPARSE_DECL()
2769 yyval.declarator = new_declarator("%s()", "", yystack.l_mark[-1].text.begin); in YYPARSE_DECL()
2770 yyval.declarator->func_stack = d; in YYPARSE_DECL()
2771 yyval.declarator->head = yyval.declarator; in YYPARSE_DECL()
2772 yyval.declarator->func_def = FUNC_ANSI; in YYPARSE_DECL()
2780 yystack.s_mark -= yym; in YYPARSE_DECL()
2782 yystack.l_mark -= yym; in YYPARSE_DECL()
2784 yystack.p_mark -= yym; in YYPARSE_DECL()
2814 /* we're currently re-reading tokens */ in YYPARSE_DECL()
2822 if (yyps->save) in YYPARSE_DECL()
2827 size_t p = (size_t) (yylvp - yylvals); in YYPARSE_DECL()
2828 size_t s = (size_t) (yylvlim - yylvals); in YYPARSE_DECL()
2906 while (yyps->save) in YYPARSE_DECL()
2908 YYParseState *save = yyps->save; in YYPARSE_DECL()
2909 yyps->save = save->save; in YYPARSE_DECL()
2910 save->save = yypath; in YYPARSE_DECL()
2916 … YYDEBUGSTR, yydepth, yystate, yypath->state, (int)(yylvp - yylvals - yypath->lexeme)); in YYPARSE_DECL()
2923 yylvp = yylvals + yypath->lexeme; in YYPARSE_DECL()
2925 yylpp = yylpsns + yypath->lexeme; in YYPARSE_DECL()
2927 yylexp = yylexemes + yypath->lexeme; in YYPARSE_DECL()
2929 yystack.s_mark = yystack.s_base + (yypath->yystack.s_mark - yypath->yystack.s_base); in YYPARSE_DECL()
2930 …memcpy (yystack.s_base, yypath->yystack.s_base, (size_t) (yystack.s_mark - yystack.s_base + 1) * s… in YYPARSE_DECL()
2931 yystack.l_mark = yystack.l_base + (yypath->yystack.l_mark - yypath->yystack.l_base); in YYPARSE_DECL()
2932 …memcpy (yystack.l_base, yypath->yystack.l_base, (size_t) (yystack.l_mark - yystack.l_base + 1) * s… in YYPARSE_DECL()
2934 yystack.p_mark = yystack.p_base + (yypath->yystack.p_mark - yypath->yystack.p_base); in YYPARSE_DECL()
2935 …memcpy (yystack.p_base, yypath->yystack.p_base, (size_t) (yystack.p_mark - yystack.p_base + 1) * s… in YYPARSE_DECL()
2937 yystate = yypath->state; in YYPARSE_DECL()
2953 yyresult = 1; in YYPARSE_DECL()
2958 if (yyps->save) goto yyvalid; in YYPARSE_DECL()
2978 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv, pp); in YYPARSE_DECL()
2982 yystos[*(yystack.s_base + (pv - yystack.l_base))], pv); in YYPARSE_DECL()
2996 yyps = save->save; in YYPARSE_DECL()
2997 save->save = NULL; in YYPARSE_DECL()
3003 yypath = save->save; in YYPARSE_DECL()
3004 save->save = NULL; in YYPARSE_DECL()