offchar + NLChars
);
}
- if (! wr_open(outputname)) {
- fatal("can't create %s", outputname);
- }
/*
* These pieces must always be written.
*/
wr_dbug(mems[ALLODBUG].mem_base, mems[ALLODBUG].mem_full);
#endif SYMDBUG
}
- wr_close();
}
namecpy(name, nname, offchar)
{
extern ushort NLocals, NGlobals;
extern long NLChars, NGChars;
+ extern char *outputname;
+ if (! wr_open(outputname)) {
+ fatal("can't create %s", outputname);
+ }
if (incore)
generate_section_names();
} else {
write_bytes();
}
+ wr_close();
}
*/
begin_write()
{
- extern char *outputname;
register struct outhead *hd = &outhead;
assert(! incore);
- if (! wr_open(outputname)) {
- fatal("cannot write %s", outputname);
- }
wr_ohead(hd);
wr_sect(outsect, hd->oh_nsect);
off_char = OFF_CHAR(*hd);