Remove extra newlines from assembly listings

Those new lines were added in commit 6b2119f9. This is basically
an improved version of that fix.

Fixes #149.
This commit is contained in:
Zeex 2017-02-12 20:49:08 +06:00
parent ca5a957bcd
commit 687d1ff017
2 changed files with 1 additions and 2 deletions

View File

@ -358,7 +358,6 @@ static void readline(unsigned char *line)
cont=FALSE;
do {
if (inpf==NULL || pc_eofsrc(inpf)) {
pc_writeasm(outf,"\n"); /* insert a newline at the end of file */
if (cont)
error(49); /* invalid line continuation */
if (inpf!=NULL && inpf!=inpf_org)

View File

@ -264,7 +264,7 @@ SC_FUNC void setfiledirect(char *name)
{
if (sc_status==statFIRST && sc_listing) {
assert(name!=NULL);
pc_writeasm(outf,"#file \"");
pc_writeasm(outf,"\n#file \"");
pc_writeasm(outf,name);
pc_writeasm(outf,"\"\n");
} /* if */