changeset 357:b6933dc299e6

Make listings show the address for lines that only define symbols Make sure that symbols being defined by themselves on a line actually display the line address in the code display area of the listing.
author William Astle <lost@l-w.ca>
date Wed, 20 May 2015 15:06:18 -0600
parents c6bd6e9bc6df
children fa3659ffa834
files lwasm/list.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/list.c	Tue May 19 12:28:37 2015 -0600
+++ b/lwasm/list.c	Wed May 20 15:06:18 2015 -0600
@@ -130,7 +130,7 @@
 				memmove(obytes, cl -> output, cl -> outputl);
 			}
 		}
-		if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1)
+		if ((cl -> len < 1 && cl -> dlen < 1) && obytelen < 1 && (cl -> symset == 1 || cl -> sym == NULL) )
 		{
 			if (cl -> soff >= 0)
 			{