Lines Matching refs:putl_code

43 putl_code(FILE * fp, const char *s)
173 putl_code(fp, "#if YYBTYACC\n");
179 putl_code(fp, "#endif /* YYBTYACC */\n");
264 putl_code(fp, "#if "
267 putl_code(fp, "/* Default: YYSTYPE is the semantic value type. */\n");
268 putl_code(fp, "typedef int YYSTYPE;\n");
269 putl_code(fp, "# define YYSTYPE_IS_DECLARED 1\n");
270 putl_code(fp, "#endif\n");
279 putl_code(fp, "#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED\n");
280 putl_code(fp, "/* Default: YYLTYPE is the text position type. */\n");
281 putl_code(fp, "typedef struct YYLTYPE\n");
282 putl_code(fp, "{\n");
283 putl_code(fp, " int first_line;\n");
284 putl_code(fp, " int first_column;\n");
285 putl_code(fp, " int last_line;\n");
286 putl_code(fp, " int last_column;\n");
287 putl_code(fp, " unsigned source;\n");
288 putl_code(fp, "} YYLTYPE;\n");
289 putl_code(fp, "#define YYLTYPE_IS_DECLARED 1\n");
290 putl_code(fp, "#endif\n");
291 putl_code(fp, "#define YYRHSLOC(rhs, k) ((rhs)[k])\n");
390 putl_code(output_file,
411 putl_code(output_file,
1601 putl_code(fp, "#undef YYBTYACC\n");
1605 putl_code(fp, "#define YYBTYACC 1\n");
1606 putl_code(fp,
1612 putl_code(fp, "#define YYBTYACC 0\n");
1613 putl_code(fp, "#define YYDEBUGSTR YYPREFIX \"debug\"\n");
1743 putl_code(fp, "/* compatibility with bison */\n");
1744 putl_code(fp, "#ifdef YYPARSE_PARAM\n");
1745 putl_code(fp, "/* compatibility with FreeBSD */\n");
1746 putl_code(fp, "# ifdef YYPARSE_PARAM_TYPE\n");
1747 putl_code(fp,
1749 putl_code(fp, "# else\n");
1750 putl_code(fp, "# define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)\n");
1751 putl_code(fp, "# endif\n");
1752 putl_code(fp, "#else\n");
1756 putl_code(fp, ")\n");
1758 putl_code(fp, "#endif\n");
1765 putl_code(fp, "/* Parameters sent to lex. */\n");
1766 putl_code(fp, "#ifdef YYLEX_PARAM\n");
1769 putl_code(fp, "# ifdef YYLEX_PARAM_TYPE\n");
1773 putl_code(fp, "# define YYLEX_DECL() yylex(YYSTYPE *yylval,"
1780 putl_code(fp, "# define YYLEX_DECL() yylex(YYSTYPE *yylval,"
1783 putl_code(fp, "# else\n");
1787 putl_code(fp, "# define YYLEX_DECL() yylex(YYSTYPE *yylval,"
1794 putl_code(fp, "# define YYLEX_DECL() yylex(YYSTYPE *yylval,"
1797 putl_code(fp, "# endif\n");
1800 putl_code(fp,
1804 putl_code(fp, "# define YYLEX yylex(&yylval, YYLEX_PARAM)\n");
1808 putl_code(fp, "# define YYLEX_DECL() yylex(void *YYLEX_PARAM)\n");
1809 putl_code(fp, "# define YYLEX yylex(YYLEX_PARAM)\n");
1811 putl_code(fp, "#else\n");
1822 putl_code(fp, ")\n");
1831 putl_code(fp, ")\n");
1838 putl_code(fp,
1840 putl_code(fp, "# define YYLEX yylex(&yylval, &yylloc)\n");
1845 putl_code(fp, "# define YYLEX_DECL() yylex(YYSTYPE *yylval)\n");
1846 putl_code(fp, "# define YYLEX yylex(&yylval)\n");
1853 putl_code(fp, ")\n");
1857 putl_code(fp, ")\n");
1861 putl_code(fp, "# define YYLEX_DECL() yylex(void)\n");
1862 putl_code(fp, "# define YYLEX yylex()\n");
1864 putl_code(fp, "#endif\n");
1877 putl_code(fp, "\n");
1878 putl_code(fp, "#if !(defined(yylex) || defined(YYSTATE))\n");
1879 putl_code(fp, "int YYLEX_DECL();\n");
1880 putl_code(fp, "#endif\n");
1888 putl_code(fp, "/* Parameters sent to yyerror. */\n");
1889 putl_code(fp, "#ifndef YYERROR_DECL\n");
1896 putl_code(fp, "const char *s)\n");
1897 putl_code(fp, "#endif\n");
1899 putl_code(fp, "#ifndef YYERROR_CALL\n");
1907 putl_code(fp, "msg)\n");
1909 putl_code(fp, "#endif\n");
1917 putl_code(fp, "#ifndef YYDESTRUCT_DECL\n");
1931 putl_code(fp, ")\n");
1933 putl_code(fp, "#endif\n");
1935 putl_code(fp, "#ifndef YYDESTRUCT_CALL\n");
1952 putl_code(fp, ")\n");
1954 putl_code(fp, "#endif\n");
1971 putl_code(code_file, "/* Release memory associated with symbol. */\n");
1972 putl_code(code_file, "#if ! defined YYDESTRUCT_IS_DECLARED\n");
1973 putl_code(code_file, "static void\n");
1974 putl_code(code_file, "YYDESTRUCT_DECL()\n");
1975 putl_code(code_file, "{\n");
1976 putl_code(code_file, " switch (psymb)\n");
1977 putl_code(code_file, " {\n");
1990 putl_code(code_file, "\tbreak;\n");
1994 putl_code(code_file, " }\n");
1995 putl_code(code_file, "}\n");
1996 putl_code(code_file, "#define YYDESTRUCT_IS_DECLARED 1\n");
1997 putl_code(code_file, "#endif\n");