diff options
author | Araq <rumpf_a@web.de> | 2012-08-25 01:34:50 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-25 01:34:50 +0200 |
commit | 9a7f0cd8510a534a3f1e9d4275b8abd7825a94c6 (patch) | |
tree | f862293603c58003d24997781959820366284e8e /lib | |
parent | 8a92e95ccfb2653d8cea52a83c26ac8967557062 (diff) | |
download | Nim-9a7f0cd8510a534a3f1e9d4275b8abd7825a94c6.tar.gz |
bindSym suffices; no 'bind' for macros anymore
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/core/macros.nim | 2 | ||||
-rwxr-xr-x | lib/pure/terminal.nim | 3 |
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): |