comparison 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
comparison
equal deleted inserted replaced
429:33c5bc04ea67 430:4bcb763bddde
114 { 114 {
115 fprintf(of, " "); 115 fprintf(of, " ");
116 } 116 }
117 fprintf(of, " "); 117 fprintf(of, " ");
118 } 118 }
119 fprintf(of, "(%31.31s):%05d %s\n", cl -> linespec, cl -> lineno, cl -> ltext); 119 /* the 34.34 below is deliberately chosen so that the start of the line text is at
120 a multiple of 8 from the start of the list line */
121 fprintf(of, "(%34.34s):%05d %s\n", cl -> linespec, cl -> lineno, cl -> ltext);
120 if (cl -> outputl > 8) 122 if (cl -> outputl > 8)
121 { 123 {
122 for (i = 8; i < cl -> outputl; i++) 124 for (i = 8; i < cl -> outputl; i++)
123 { 125 {
124 if (i % 8 == 0) 126 if (i % 8 == 0)