diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:28:58 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-30 16:34:42 +0200 |
commit | 39ebe2175bd4e8e62d03875d06b24feafd36f8f7 (patch) | |
tree | e27cc59112675e052c70c6063f6bcca8e29e103c /compiler/cgen.nim | |
parent | 8876ed23f1dc6d12a8ae7bf061b7e31c3adf54b4 (diff) | |
download | Nim-39ebe2175bd4e8e62d03875d06b24feafd36f8f7.tar.gz |
compiler almost free of deprecated expr/stmt names
Diffstat (limited to 'compiler/cgen.nim')
-rw-r--r-- | compiler/cgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/cgen.nim b/compiler/cgen.nim index 589fcb515..4dbe8572e 100644 --- a/compiler/cgen.nim +++ b/compiler/cgen.nim @@ -129,7 +129,7 @@ proc ropecg(m: BModule, frmt: FormatStr, args: varargs[Rope]): Rope = if i - 1 >= start: add(result, substr(frmt, start, i - 1)) -template rfmt(m: BModule, fmt: string, args: varargs[Rope]): expr = +template rfmt(m: BModule, fmt: string, args: varargs[Rope]): untyped = ropecg(m, fmt, args) proc appcg(m: BModule, c: var Rope, frmt: FormatStr, @@ -215,7 +215,7 @@ proc accessThreadLocalVar(p: BProc, s: PSym) proc emulatedThreadVars(): bool {.inline.} proc genProc(m: BModule, prc: PSym) -template compileToCpp(m: BModule): expr = +template compileToCpp(m: BModule): untyped = gCmd == cmdCompileToCpp or sfCompileToCpp in m.module.flags include "ccgtypes.nim" |