diff options
author | Araq <rumpf_a@web.de> | 2012-08-20 08:44:17 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-08-20 08:44:17 +0200 |
commit | da190876de0d500c94d23c64eb372d3bb8e2bb09 (patch) | |
tree | 3a55eefb6e85d096263337530a25bf1f2cc0679d /compiler/idgen.nim | |
parent | 5e15dec1757e6013cbeb5d6baf9d9579cf025361 (diff) | |
download | Nim-da190876de0d500c94d23c64eb372d3bb8e2bb09.tar.gz |
next steps to hygienic templates
Diffstat (limited to 'compiler/idgen.nim')
-rw-r--r-- | compiler/idgen.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/idgen.nim b/compiler/idgen.nim index d2e322796..fbf450c90 100644 --- a/compiler/idgen.nim +++ b/compiler/idgen.nim @@ -11,7 +11,7 @@ import idents, strutils, os, options -var gFrontEndId, gBackendId*, genSymBaseId*: int +var gFrontEndId, gBackendId*: int const debugIds* = false @@ -34,9 +34,6 @@ proc backendId*(): int {.inline.} = result = gBackendId inc(gBackendId) -proc genSym*(basename: string): PIdent = - result = getIdent(basename & $genSymBaseId) - proc setId*(id: int) {.inline.} = gFrontEndId = max(gFrontEndId, id + 1) @@ -66,4 +63,3 @@ proc loadMaxIds*(project: string) = gFrontEndId = max(gFrontEndId, frontEndId) gBackEndId = max(gBackEndId, backEndId) f.close() - |