From 9687ea3c3e46160e44195a91922de2089cb50874 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 1 Mar 2016 19:50:00 +0100 Subject: [PATCH] debug() uses 'echo' because stderr is an abomination --- compiler/astalgo.nim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 4772009b4..3ca44ea7e 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -448,20 +448,20 @@ proc debugTree(n: PNode, indent: int, maxRecDepth: int; proc debug(n: PSym) = if n == nil: - msgWriteln("null") + echo("null") elif n.kind == skUnknown: - msgWriteln("skUnknown") + echo("skUnknown") else: #writeLine(stdout, $symToYaml(n, 0, 1)) - msgWriteln("$1_$2: $3, $4, $5, $6" % [ + echo("$1_$2: $3, $4, $5, $6" % [ n.name.s, $n.id, $flagsToStr(n.flags), $flagsToStr(n.loc.flags), $lineInfoToStr(n.info), $n.kind]) proc debug(n: PType) = - msgWriteln($debugType(n)) + echo($debugType(n)) proc debug(n: PNode) = - msgWriteln($debugTree(n, 0, 100)) + echo($debugTree(n, 0, 100)) const EmptySeq = @[]