added rcsid
added code to check for write errors on codefile
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#ifndef NORCSID
|
||||
static char rcsid[] = "$Header$";
|
||||
#endif
|
||||
|
||||
#include "assert.h"
|
||||
#include <stdio.h>
|
||||
#include "param.h"
|
||||
@@ -59,6 +63,12 @@ out_finish() {
|
||||
fclose(codefile);
|
||||
}
|
||||
|
||||
tstoutput() {
|
||||
|
||||
if (ferror(codefile))
|
||||
error("Write error on output");
|
||||
}
|
||||
|
||||
gencode(code) register char *code; {
|
||||
register c;
|
||||
int tokno,fldno,insno,regno,subno;
|
||||
|
||||
Reference in New Issue
Block a user