Mercurial > hg-old > index.cgi
diff lwasm/list.c @ 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 | f792faf877bb |
children | 194787ce2a77 |
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++)