Replace tabs with spaces in Lisp printer

This commit is contained in:
Lassi Kortela 2019-08-09 17:24:17 +03:00
parent be9b2b364e
commit 04b3c3b292
2 changed files with 3 additions and 7 deletions

View File

@ -39,10 +39,6 @@ static int outindent(int n, ios_t *f)
ios_putc('\n', f);
VPOS++;
HPOS = n;
while (n >= 8) {
ios_putc('\t', f);
n -= 8;
}
while (n) {
ios_putc(' ', f);
n--;

View File

@ -666,7 +666,7 @@
(begin (princ "\n")
(disassemble v (+ lev 1)))
(print v)))
(dotimes (xx lev) (princ "\t"))
(dotimes (xx lev) (princ " "))
(princ "maxstack " (ref-int32-LE code 0) "\n")
(let ((i 4)
(N (length code)))
@ -677,9 +677,9 @@
k)))
#f Instructions)))
(if (> i 4) (newline))
(dotimes (xx lev) (princ "\t"))
(dotimes (xx lev) (princ " "))
(princ (hex5 (- i 4)) ": "
(string inst) "\t")
(string inst) " ")
(set! i (+ i 1))
(case inst
((loadv.l loadg.l setg.l)