Lines Matching refs:fprintf
49 (void) fprintf(fout, "#ident\t\"lex: %s %s\"\n", in chd1()
52 (void) fprintf(fout, "#ifndef EUC\n"); in chd1()
53 (void) fprintf(fout, "#define EUC\n"); in chd1()
54 (void) fprintf(fout, "#endif\n"); in chd1()
55 (void) fprintf(fout, "#include <stdio.h>\n"); in chd1()
56 (void) fprintf(fout, "#include <stdlib.h>\n"); in chd1()
57 (void) fprintf(fout, "#include <inttypes.h>\n"); in chd1()
58 (void) fprintf(fout, "#include <widec.h>\n"); in chd1()
60 (void) fprintf(fout, "#define YYTEXT yytext\n"); in chd1()
61 (void) fprintf(fout, "#define YYLENG yyleng\n"); in chd1()
62 (void) fprintf(fout, "#ifndef __cplusplus\n"); in chd1()
63 (void) fprintf(fout, "#define YYINPUT input\n"); in chd1()
64 (void) fprintf(fout, "#define YYOUTPUT output\n"); in chd1()
65 (void) fprintf(fout, "#else\n"); in chd1()
66 (void) fprintf(fout, "#define YYINPUT lex_input\n"); in chd1()
67 (void) fprintf(fout, "#define YYOUTPUT lex_output\n"); in chd1()
68 (void) fprintf(fout, "#endif\n"); in chd1()
69 (void) fprintf(fout, "#define YYUNPUT unput\n"); in chd1()
71 (void) fprintf(fout, "#include <limits.h>\n"); in chd1()
72 (void) fprintf(fout, "#include <sys/euc.h>\n"); in chd1()
73 (void) fprintf(fout, "#define YYLEX_E 1\n"); in chd1()
74 (void) fprintf(fout, "#define YYTEXT yywtext\n"); in chd1()
75 (void) fprintf(fout, "#define YYLENG yywleng\n"); in chd1()
76 (void) fprintf(fout, "#define YYINPUT yywinput\n"); in chd1()
77 (void) fprintf(fout, "#define YYOUTPUT yywoutput\n"); in chd1()
78 (void) fprintf(fout, "#define YYUNPUT yywunput\n"); in chd1()
81 (void) fprintf(fout, "#include <stdio.h>\n"); in chd1()
82 (void) fprintf(fout, "#include <stdlib.h>\n"); in chd1()
83 (void) fprintf(fout, "#include <inttypes.h>\n"); in chd1()
86 (void) fprintf(fout, "# define U(x) ((x)&0377)\n"); in chd1()
88 (void) fprintf(fout, "# define U(x) x\n"); in chd1()
89 (void) fprintf(fout, "# define NLSTATE yyprevious=YYNEWLINE\n"); in chd1()
90 (void) fprintf(fout, "# define BEGIN yybgin = yysvec + 1 +\n"); in chd1()
91 (void) fprintf(fout, "# define INITIAL 0\n"); in chd1()
92 (void) fprintf(fout, "# define YYLERR yysvec\n"); in chd1()
93 (void) fprintf(fout, "# define YYSTATE (yyestate-yysvec-1)\n"); in chd1()
95 (void) fprintf(fout, "# define YYOPTIM 1\n"); in chd1()
97 (void) fprintf(fout, "# define LEXDEBUG 1\n"); in chd1()
99 (void) fprintf(fout, "# ifndef YYLMAX \n"); in chd1()
100 (void) fprintf(fout, "# define YYLMAX BUFSIZ\n"); in chd1()
101 (void) fprintf(fout, "# endif \n"); in chd1()
102 (void) fprintf(fout, "#ifndef __cplusplus\n"); in chd1()
104 (void) fprintf(fout, in chd1()
107 (void) fprintf(fout, in chd1()
109 (void) fprintf(fout, "#else\n"); in chd1()
111 (void) fprintf(fout, in chd1()
114 (void) fprintf(fout, in chd1()
116 (void) fprintf(fout, "#endif\n"); in chd1()
117 (void) fprintf(fout, in chd1()
119 (void) fprintf(fout, in chd1()
121 (void) fprintf(fout, "extern \"C\" {\n"); in chd1()
122 (void) fprintf(fout, "#endif\n"); in chd1()
123 (void) fprintf(fout, "\tint yyback(int *, int);\n"); /* ? */ in chd1()
124 (void) fprintf(fout, "\tint yyinput(void);\n"); /* ? */ in chd1()
125 (void) fprintf(fout, "\tint yylook(void);\n"); /* ? */ in chd1()
126 (void) fprintf(fout, "\tvoid yyoutput(int);\n"); /* ? */ in chd1()
127 (void) fprintf(fout, "\tint yyracc(int);\n"); /* ? */ in chd1()
128 (void) fprintf(fout, "\tint yyreject(void);\n"); /* ? */ in chd1()
129 (void) fprintf(fout, "\tvoid yyunput(int);\n"); /* ? */ in chd1()
130 (void) fprintf(fout, "\tint yylex(void);\n"); in chd1()
131 (void) fprintf(fout, "#ifdef YYLEX_E\n"); in chd1()
132 (void) fprintf(fout, "\tvoid yywoutput(wchar_t);\n"); in chd1()
133 (void) fprintf(fout, "\twchar_t yywinput(void);\n"); in chd1()
134 (void) fprintf(fout, "\tvoid yywunput(wchar_t);\n"); in chd1()
135 (void) fprintf(fout, "#endif\n"); in chd1()
138 (void) fprintf(fout, "#ifndef yyless\n"); in chd1()
139 (void) fprintf(fout, "\tint yyless(int);\n"); in chd1()
140 (void) fprintf(fout, "#endif\n"); in chd1()
141 (void) fprintf(fout, "#ifndef yywrap\n"); in chd1()
142 (void) fprintf(fout, "\tint yywrap(void);\n"); in chd1()
143 (void) fprintf(fout, "#endif\n"); in chd1()
144 (void) fprintf(fout, "#ifdef LEXDEBUG\n"); in chd1()
145 (void) fprintf(fout, "\tvoid allprint(char);\n"); in chd1()
146 (void) fprintf(fout, "\tvoid sprint(char *);\n"); in chd1()
147 (void) fprintf(fout, "#endif\n"); in chd1()
148 (void) fprintf(fout, in chd1()
150 (void) fprintf(fout, "}\n"); in chd1()
151 (void) fprintf(fout, "#endif\n\n"); in chd1()
152 (void) fprintf(fout, "#ifdef __cplusplus\n"); in chd1()
153 (void) fprintf(fout, "extern \"C\" {\n"); in chd1()
154 (void) fprintf(fout, "#endif\n"); in chd1()
155 (void) fprintf(fout, "\tvoid exit(int);\n"); in chd1()
156 (void) fprintf(fout, "#ifdef __cplusplus\n"); in chd1()
157 (void) fprintf(fout, "}\n"); in chd1()
158 (void) fprintf(fout, "#endif\n\n"); in chd1()
159 (void) fprintf(fout, "#endif\n"); in chd1()
160 (void) fprintf(fout, in chd1()
163 (void) fprintf(fout, "# define yymore() (yymorfg=1)\n"); in chd1()
165 (void) fprintf(fout, "#ifndef __cplusplus\n"); in chd1()
166 (void) fprintf(fout, "%s%d%s\n", in chd1()
170 (void) fprintf(fout, "#else\n"); in chd1()
171 (void) fprintf(fout, "%s%d%s\n", in chd1()
175 (void) fprintf(fout, "#endif\n"); in chd1()
176 (void) fprintf(fout, in chd1()
178 (void) fprintf(fout, in chd1()
180 (void) fprintf(fout, "#define yyless yyless_w\n"); in chd1()
181 (void) fprintf(fout, "int yyleng;\n"); in chd1()
190 (void) fprintf(fout, "#define YYISARRAY\n"); in chd1()
191 (void) fprintf(fout, "wchar_t yytext[YYLMAX];\n"); in chd1()
193 (void) fprintf(fout, "wchar_t yy_tbuf[YYLMAX];\n"); in chd1()
194 (void) fprintf(fout, "wchar_t * yytext = yy_tbuf;\n"); in chd1()
195 (void) fprintf(fout, "int yytextsz = YYLMAX;\n"); in chd1()
196 (void) fprintf(fout, "#ifndef YYTEXTSZINC\n"); in chd1()
197 (void) fprintf(fout, "#define YYTEXTSZINC 100\n"); in chd1()
198 (void) fprintf(fout, "#endif\n"); in chd1()
201 (void) fprintf(fout, "#ifndef __cplusplus\n"); in chd1()
202 (void) fprintf(fout, "%s%d%s\n", in chd1()
206 (void) fprintf(fout, "#else\n"); in chd1()
207 (void) fprintf(fout, "%s%d%s\n", in chd1()
211 (void) fprintf(fout, "#endif\n"); in chd1()
212 (void) fprintf(fout, in chd1()
215 (void) fprintf(fout, in chd1()
217 (void) fprintf(fout, "int yyleng;\n"); in chd1()
218 (void) fprintf(fout, "size_t yywleng;\n"); in chd1()
225 (void) fprintf(fout, "#define YYISARRAY\n"); in chd1()
226 (void) fprintf(fout, in chd1()
228 (void) fprintf(fout, in chd1()
231 (void) fprintf(fout, in chd1()
233 (void) fprintf(fout, in chd1()
235 (void) fprintf(fout, in chd1()
238 (void) fprintf(fout, in chd1()
240 (void) fprintf(fout, in chd1()
242 (void) fprintf(fout, "#ifndef YYTEXTSZINC\n"); in chd1()
243 (void) fprintf(fout, in chd1()
245 (void) fprintf(fout, "#endif\n"); in chd1()
248 (void) fprintf(fout, in chd1()
250 (void) fprintf(fout, "int yyleng;\n"); in chd1()
258 (void) fprintf(fout, "#define YYISARRAY\n"); in chd1()
259 (void) fprintf(fout, "char yytext[YYLMAX];\n"); in chd1()
261 (void) fprintf(fout, "char yy_tbuf[YYLMAX];\n"); in chd1()
262 (void) fprintf(fout, in chd1()
264 (void) fprintf(fout, in chd1()
266 (void) fprintf(fout, "#ifndef YYTEXTSZINC\n"); in chd1()
267 (void) fprintf(fout, in chd1()
269 (void) fprintf(fout, "#endif\n"); in chd1()
273 (void) fprintf(fout, "int yymorfg;\n"); in chd1()
275 (void) fprintf(fout, "extern wchar_t *yysptr, yysbuf[];\n"); in chd1()
277 (void) fprintf(fout, "extern char *yysptr, yysbuf[];\n"); in chd1()
278 (void) fprintf(fout, "int yytchar;\n"); in chd1()
279 (void) fprintf(fout, "FILE *yyin = {stdin}, *yyout = {stdout};\n"); in chd1()
280 (void) fprintf(fout, "extern int yylineno;\n"); in chd1()
281 (void) fprintf(fout, "struct yysvf { \n"); in chd1()
282 (void) fprintf(fout, "\tstruct yywork *yystoff;\n"); in chd1()
283 (void) fprintf(fout, "\tstruct yysvf *yyother;\n"); in chd1()
284 (void) fprintf(fout, "\tint *yystops;};\n"); in chd1()
285 (void) fprintf(fout, "struct yysvf *yyestate;\n"); in chd1()
286 (void) fprintf(fout, "extern struct yysvf yysvec[], *yybgin;\n"); in chd1()
292 (void) fprintf(fout, "integer function yylex(dummy)\n"); in rhd1()
293 (void) fprintf(fout, "define YYLMAX 200\n"); in rhd1()
294 (void) fprintf(fout, "define ECHO call yyecho(yytext,yyleng)\n"); in rhd1()
295 (void) fprintf(fout, in rhd1()
297 (void) fprintf(fout, "integer nstr,yylook,yywrap\n"); in rhd1()
298 (void) fprintf(fout, "integer yyleng, yytext(YYLMAX)\n"); in rhd1()
299 (void) fprintf(fout, "common /yyxel/ yyleng, yytext\n"); in rhd1()
300 (void) fprintf(fout, in rhd1()
302 (void) fprintf(fout, in rhd1()
304 (void) fprintf(fout, "for(;;){\n"); in rhd1()
305 (void) fprintf(fout, "\t30999 nstr = yylook(dummy)\n"); in rhd1()
306 (void) fprintf(fout, "\tgoto 30998\n"); in rhd1()
307 (void) fprintf(fout, "\t30000 k = yywrap(dummy)\n"); in rhd1()
308 (void) fprintf(fout, "\tif(k .ne. 0){\n"); in rhd1()
309 (void) fprintf(fout, "\tyylex=0; return; }\n"); in rhd1()
310 (void) fprintf(fout, "\t\telse goto 30998\n"); in rhd1()
323 (void) fprintf(fout, "#ifdef __cplusplus\n"); in chd2()
324 (void) fprintf(fout, in chd2()
326 (void) fprintf(fout, "static int __lex_hack = 0;\n"); in chd2()
327 (void) fprintf(fout, "if (__lex_hack) goto yyfussy;\n"); in chd2()
328 (void) fprintf(fout, "#endif\n"); in chd2()
329 (void) fprintf(fout, "while((nstr = yylook()) >= 0)\n"); in chd2()
330 (void) fprintf(fout, "yyfussy: switch(nstr){\n"); in chd2()
331 (void) fprintf(fout, "case 0:\n"); in chd2()
332 (void) fprintf(fout, "if(yywrap()) return(0); break;\n"); in chd2()
346 (void) fprintf(fout, "case -1:\nbreak;\n"); /* for reject */ in ctail()
347 (void) fprintf(fout, "default:\n"); in ctail()
348 (void) fprintf(fout, in ctail()
350 (void) fprintf(fout, "} return(0); }\n"); in ctail()
351 (void) fprintf(fout, "/* end of yylex */\n"); in ctail()
358 (void) fprintf(fout, in rtail()
360 (void) fprintf(fout, "nstr = nstr + 1\n"); in rtail()
361 (void) fprintf(fout, "goto(\n"); in rtail()
363 (void) fprintf(fout, "%d,\n", 30000+i); in rtail()
364 (void) fprintf(fout, "30999),nstr\n"); in rtail()
365 (void) fprintf(fout, "30997 continue\n"); in rtail()
366 (void) fprintf(fout, "}\nend\n"); in rtail()
372 (void) fprintf(errorf, in statistics()
376 (void) fprintf(errorf, in statistics()
379 (void) fprintf(errorf, in statistics()
381 (void) fprintf(errorf, " %d/%d output slots(%%o)", yytop, outsize); in statistics()