changeset 430:4bcb763bddde

Adjusted output in list so that 8 space tabs line up right in output
author lost@l-w.ca
date Sun, 24 Oct 2010 19:06:00 -0600
parents 33c5bc04ea67
children d7d7e4dca3e7
files lwasm/list.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/list.c	Sun Sep 19 12:32:52 2010 -0600
+++ b/lwasm/list.c	Sun Oct 24 19:06:00 2010 -0600
@@ -116,7 +116,9 @@
 			}
 			fprintf(of, " ");
 		}
-		fprintf(of, "(%31.31s):%05d %s\n", cl -> linespec, cl -> lineno, cl -> ltext);
+		/* the 34.34 below is deliberately chosen so that the start of the line text is at
+		   a multiple of 8 from the start of the list line */
+		fprintf(of, "(%34.34s):%05d %s\n", cl -> linespec, cl -> lineno, cl -> ltext);
 		if (cl -> outputl > 8)
 		{
 			for (i = 8; i < cl -> outputl; i++)