Lines Matching refs:fout

80 		f_print(fout, "\n");  in print_datadef()
109 f_print(fout, "\n"); in print_progdef()
133 f_print(fout, "\n"); in print_funcdef()
155 f_print(fout, "bool_t xdr_%s(XDR *, %s%s);\n", name, in pxdrfuncdecl()
185 f_print(fout, "struct %s {\n", name); in pargdef()
190 f_print(fout, "};\n"); in pargdef()
191 f_print(fout, "typedef struct %s %s;\n", name, name); in pargdef()
221 f_print(fout, "struct %s {\n", name); in pstructdef()
225 f_print(fout, "};\n"); in pstructdef()
226 f_print(fout, "typedef struct %s %s;\n", name, name); in pstructdef()
236 f_print(fout, "struct %s {\n", name); in puniondef()
239 f_print(fout, "\tbool_t %s;\n", decl->name); in puniondef()
241 f_print(fout, "\t%s %s;\n", decl->type, decl->name); in puniondef()
243 f_print(fout, "\tunion {\n"); in puniondef()
252 f_print(fout, "\t} %s_u;\n", name); in puniondef()
253 f_print(fout, "};\n"); in puniondef()
254 f_print(fout, "typedef struct %s %s;\n", name, name); in puniondef()
260 f_print(fout, "#define %s %s\n", name, num); in pdefine()
266 f_print(fout, "#define %s %s\n", name, num); in puldefine()
294 f_print(fout, "__BEGIN_DECLS\n"); in cplusplusstart()
296 f_print(fout, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n"); in cplusplusstart()
303 f_print(fout, "__END_DECLS\n"); in cplusplusend()
305 f_print(fout, "#ifdef __cplusplus\n};\n#endif\n"); in cplusplusend()
319 f_print(fout, "extern struct rpcgen_table %s_%s_table[];\n", in pprogramdef()
321 f_print(fout, "extern %s_%s_nproc;\n", in pprogramdef()
336 f_print(fout, "\n"); in pprogramdef()
355 f_print(fout, "bool_t "); in pprocdef()
357 f_print(fout, "enum clnt_stat "); in pprocdef()
360 f_print(fout, "*"); in pprocdef()
367 f_print(fout, "("); in pprocdef()
375 f_print(fout, "*"); in pprocdef()
376 f_print(fout, ", "); in pprocdef()
381 f_print(fout, "char"); in pprocdef()
385 f_print(fout, "*"); in pprocdef()
386 f_print(fout, ", "); in pprocdef()
388 f_print(fout, "%s);\n", addargtype); in pprocdef()
401 f_print(fout, "enum %s {\n", name); in penumdef()
403 f_print(fout, "%s\t%s", first, l->name); in penumdef()
405 f_print(fout, " = %s", l->assignment); in penumdef()
410 f_print(fout, " = %d", count++); in penumdef()
412 f_print(fout, " = %s + %d", last, count++); in penumdef()
417 f_print(fout, "\n};\n"); in penumdef()
418 f_print(fout, "typedef enum %s %s;\n", name, name); in penumdef()
446 f_print(fout, "typedef "); in ptypedef()
449 f_print(fout, "struct {\n"); in ptypedef()
450 f_print(fout, "\tunsigned int %s_len;\n", name); in ptypedef()
451 f_print(fout, "\t%s%s *%s_val;\n", prefix, old, name); in ptypedef()
452 f_print(fout, "} %s", name); in ptypedef()
455 f_print(fout, "%s%s *%s", prefix, old, name); in ptypedef()
458 f_print(fout, "%s%s %s[%s]", prefix, old, name, in ptypedef()
462 f_print(fout, "%s%s %s", prefix, old, name); in ptypedef()
465 f_print(fout, ";\n"); in ptypedef()
480 tabify(fout, tab); in pdeclaration()
482 f_print(fout, "struct "); in pdeclaration()
485 f_print(fout, "char *%s", dec->name); in pdeclaration()
502 f_print(fout, "%s%s %s", prefix, type, dec->name); in pdeclaration()
505 f_print(fout, "%s%s %s[%s]", prefix, type, dec->name, in pdeclaration()
509 f_print(fout, "%s%s *%s", prefix, type, dec->name); in pdeclaration()
512 f_print(fout, "struct {\n"); in pdeclaration()
513 tabify(fout, tab); in pdeclaration()
514 f_print(fout, "\tunsigned int %s_len;\n", dec->name); in pdeclaration()
515 tabify(fout, tab); in pdeclaration()
516 f_print(fout, "\t%s%s *%s_val;\n", prefix, type, dec->name); in pdeclaration()
517 tabify(fout, tab); in pdeclaration()
518 f_print(fout, "} %s", dec->name); in pdeclaration()
522 f_print(fout, "%s", separator); in pdeclaration()