From 091c1b30756a15c76ca09c0d95cfbb946aa9ea13 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 15 Nov 2012 15:01:52 +0200 Subject: caas is now drivable through stdin * added idetools --eval * streams.readLine recognises and applies the backspace character --- compiler/passaux.nim | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'compiler/passaux.nim') diff --git a/compiler/passaux.nim b/compiler/passaux.nim index 1ee6023c8..655b8ae68 100755 --- a/compiler/passaux.nim +++ b/compiler/passaux.nim @@ -26,10 +26,7 @@ proc verboseProcess(context: PPassContext, n: PNode): PNode = incl(msgs.gNotes, hintProcessing) Message(n.info, hintProcessing, $idgen.gBackendId) -proc verbosePass*(): TPass = - initPass(result) - result.open = verboseOpen - result.process = verboseProcess +const verbosePass* = makePass(open = verboseOpen, process = verboseProcess) proc cleanUp(c: PPassContext, n: PNode): PNode = result = n @@ -46,7 +43,5 @@ proc cleanUp(c: PPassContext, n: PNode): PNode = else: nil -proc cleanupPass*(): TPass = - initPass(result) - result.process = cleanUp - result.close = cleanUp +const cleanupPass* = makePass(process = cleanUp, close = cleanUp) + -- cgit 1.4.1-2-gfad0