From e62b35169cdcd13632ae353b1e5ffde7dec44201 Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Sat, 23 Jan 1999 13:29:22 +0100 Subject: Import Dev86src-0.14.7.tar.gz --- as/assemble.c | 6 +++++- as/genlist.c | 3 ++- as/globvar.h | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) (limited to 'as') diff --git a/as/assemble.c b/as/assemble.c index c631905..5ae7319 100644 --- a/as/assemble.c +++ b/as/assemble.c @@ -215,7 +215,11 @@ PRIVATE void asline() readline(); getsym(); if (sym != IDENT) /* expect label, mnemonic or macro */ - return; /* anything else is a comment */ + { + if( sym != EOLSYM ) + list_force = TRUE; + return; /* anything else is a comment */ + } symptr = gsymptr; if (!ifflag) /* not assembling, just test for IF/ELSE/ELSEIF/ENDIF */ diff --git a/as/genlist.c b/as/genlist.c index f7c2572..399a71e 100644 --- a/as/genlist.c +++ b/as/genlist.c @@ -172,7 +172,7 @@ PUBLIC void listline() if (!listpre) { if (errcount || (list.current && (!macflag || mcount != 0)) || - (macflag && maclist.current)) + (macflag && maclist.current) || list_force ) list1(lstfil); if (errcount) { @@ -196,6 +196,7 @@ fd_t fd; if (errcount != 0) listerrors(); listpre = TRUE; + list_force=FALSE; } /* list object code for 1 line */ diff --git a/as/globvar.h b/as/globvar.h index df4ed6e..d22f6a5 100644 --- a/as/globvar.h +++ b/as/globvar.h @@ -27,6 +27,8 @@ EXTERN bool_t symgen; /* generate symbol table flag */ EXTERN unsigned toterr; /* total errors */ EXTERN unsigned totwarn; /* total warnings */ +EXTERN bool_t list_force; /* Force line to be listed - no error */ + /* bookeeping for current line */ EXTERN char *linebuf; /* buffer */ -- cgit v1.2.1