From 4b62edd8a63cfdde37b0537c9be1e91062bb2892 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 17 Jan 2015 17:00:44 -0800 Subject: 578 - switch to non-polymorphic 'print' functions Also clean up various prints from last few commits. As a convention, for debugging we always print directly to host. --- chessboard-cursor.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chessboard-cursor.mu') diff --git a/chessboard-cursor.mu b/chessboard-cursor.mu index 53fa3268..e8c13e78 100644 --- a/chessboard-cursor.mu +++ b/chessboard-cursor.mu @@ -57,7 +57,7 @@ (break-if done?:boolean) ; print rank number as a legend (rank:integer <- add row:integer 1:literal) - (print-primitive screen:terminal-address rank:integer) + (print-integer screen:terminal-address rank:integer) (print-primitive-to-host ((" | " literal))) ; print each square in the row (col:integer <- copy 0:literal) @@ -66,7 +66,7 @@ (break-if done?:boolean) (f:file-address <- index b:board-address/deref col:integer) (s:square <- index f:file-address/deref row:integer) - (print-primitive screen:terminal-address s:square) + (print-primitive-to-host s:square) (print-primitive-to-host ((" " literal))) (col:integer <- add col:integer 1:literal) (loop) -- cgit 1.4.1-2-gfad0