summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-08-25 01:34:50 +0200
committerAraq <rumpf_a@web.de>2012-08-25 01:34:50 +0200
commit9a7f0cd8510a534a3f1e9d4275b8abd7825a94c6 (patch)
treef862293603c58003d24997781959820366284e8e /lib
parent8a92e95ccfb2653d8cea52a83c26ac8967557062 (diff)
downloadNim-9a7f0cd8510a534a3f1e9d4275b8abd7825a94c6.tar.gz
bindSym suffices; no 'bind' for macros anymore
Diffstat (limited to 'lib')
-rwxr-xr-xlib/core/macros.nim2
-rwxr-xr-xlib/pure/terminal.nim3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index d02aba0ca..30248528e 100755
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -186,7 +186,7 @@ proc newIdentNode*(i: string): PNimrodNode {.compileTime.} =
   result = newNimNode(nnkIdent)

   result.ident = !i

 
-proc bindSym*(ident: string): PNimrodNode {.magic: "NGetBoundSym".}
+proc bindSym*(ident: string): PNimrodNode {.magic: "NBindSym".}
   ## creates a node that binds `ident` to a symbol node. The bound symbol
   ## needs to be predeclared in a ``bind`` statement!
 

diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim
index 5a82586cb..d24d81112 100755
--- a/lib/pure/terminal.nim
+++ b/lib/pure/terminal.nim
@@ -326,8 +326,7 @@ proc styledEchoProcessArg(color: TForegroundColor) = setForeGroundColor color
 proc styledEchoProcessArg(color: TBackgroundColor) = setBackGroundColor color

 

 macro styledEcho*(m: stmt): stmt =
-  bind styledEchoProcessArg, write, resetAttributes, stdout
-  
+  ## to be documented.
   result = newNimNode(nnkStmtList)

 

   for i in countup(1, m.len - 1):