c_initialize(); open_input(infile, define); outfilename = extend ? extendfile(infile, outfile) : outfile; open_output(infile, outfilename); add_warning(); add_stdheaders(); if (infile && (include = extendfile(infile, ".h"))) { f_print(fout, "#include \"%s\"\n", include); free(include);  } else f_print(fout, "#include <rpc/rpc.h>\n"); tell = ftell(fout); while ((def = get_definition())!=NULL) { emit(def); } if (extend && tell == ftell(fout)) { (void) unlink(outfilename); }
c_initialize (); open_input (infile, define); outfilename = extend ? extendfile (infile, outfile) : outfile; open_output (infile, outfilename); add_warning (); if (infile && (include = extendfile (infile, ".h"))) { fprintf (fout, "#include \"%s\"\n", include); free (include);  } else fprintf (fout, "#include <rpc/rpc.h>\n"); tell = ftell (fout); while ((def = get_definition ()) != NULL) emit (def);  if (extend && tell == ftell (fout)) unlink (outfilename);
c_output(const char *infile, const char *define, int extend,	 const char *outfile){	definition *def;	char *include;	const char *outfilename;	long tell;	c_initialize();	open_input(infile, define);	outfilename = extend ? extendfile(infile, outfile) : outfile;	open_output(infile, outfilename);	add_warning();	add_stdheaders();	if (infile && (include = extendfile(infile, ".h"))) {		f_print(fout, "#include \"%s\"\n", include);		free(include);		/* .h file already contains rpc/rpc.h */	} else	  f_print(fout, "#include <rpc/rpc.h>\n");	tell = ftell(fout);	while ((def = get_definition())!=NULL) {		emit(def);	}	if (extend && tell == ftell(fout)) {		(void) unlink(outfilename);	}}