minor changes to many files

This commit is contained in:
ceriel
1987-06-03 19:05:14 +00:00
parent 1fb8da7a02
commit 25dd5857c2
5 changed files with 31 additions and 24 deletions

View File

@@ -73,6 +73,15 @@ STATIC genincrdecr();
p_mem alloc();
doclose(f)
FILE *f;
{
if (ferror(f) != 0) {
fatal(0,"Write error on temporary");
}
fclose(f);
}
gencode(argc) {
register p_file p = files;
@@ -90,10 +99,7 @@ gencode(argc) {
copyfile(incl_file);
generate(p);
getaction(2);
if (ferror(fpars) != 0) {
fatal(0,"Write error on temporary");
}
fclose(fpars);
doclose(fpars);
/* And install */
install(genname(p->f_name),p->f_name);
p++;
@@ -124,10 +130,7 @@ geninclude() {
p->t_tokno);
}
}
if (ferror(fpars) != 0) {
fatal(0,"write error on temporary");
}
fclose(fpars);
doclose(fpars);
install(HFILE, ".");
}
@@ -204,10 +207,7 @@ genrecovery() {
}
fputs("#define LL_NEWMESS\n", f);
copyfile(rec_file);
if (ferror(f) != 0) {
fatal(0,"write error on temporary");
}
fclose(f);
doclose(f);
install(RFILE, ".");
}