open_input(infile, define); outfilename = extend ? extendfile(infile, outfile) : outfile; open_output(infile, outfilename); add_warning(); if (Cflag) f_print (fout, "#include <memory.h> /* for memset */\n"); if (infile && (include = extendfile(infile, ".h"))) { f_print(fout, "#include \"%s\"\n", include); free(include); } else f_print(fout, "#include <rpc/rpc.h>\n"); while ((def = get_definition())!=NULL) { foundprogram |= (def->def_kind == DEF_PROGRAM); } if (extend && !foundprogram) { (void) unlink(outfilename); return; } write_stubs();
open_input (infile, define); outfilename = extend ? extendfile (infile, outfile) : outfile; open_output (infile, outfilename); add_warning (); if (Cflag) fprintf (fout, "#include <memory.h> /* for memset */\n"); if (infile && (include = extendfile (infile, ".h"))) { fprintf (fout, "#include \"%s\"\n", include); free (include); } else fprintf (fout, "#include <rpc/rpc.h>\n"); while ((def = get_definition ()) != NULL) { foundprogram |= (def->def_kind == DEF_PROGRAM); } if (extend && !foundprogram) { unlink (outfilename); return; } write_stubs ();
l_output(const char *infile, const char *define, int extend,	 const char *outfile){	char *include;	definition *def;	int foundprogram = 0;	const char *outfilename;	open_input(infile, define);	outfilename = extend ? extendfile(infile, outfile) : outfile;	open_output(infile, outfilename);	add_warning();	if (Cflag)	  f_print (fout, "#include <memory.h> /* for memset */\n");	if (infile && (include = extendfile(infile, ".h"))) {		f_print(fout, "#include \"%s\"\n", include);		free(include);	} else	  f_print(fout, "#include <rpc/rpc.h>\n");	while ((def = get_definition())!=NULL) {		foundprogram |= (def->def_kind == DEF_PROGRAM);	}	if (extend && !foundprogram) {		(void) unlink(outfilename);		return;	}	write_stubs();}