makes tints.nim test compile
This commit is contained in:
parent
b557153ab7
commit
e67124ca80
1 changed files with 3 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ type
|
||||||
generatedSyms: IntSet
|
generatedSyms: IntSet
|
||||||
typeInfoGenerated: IntSet
|
typeInfoGenerated: IntSet
|
||||||
classes: seq[(PType, Rope)]
|
classes: seq[(PType, Rope)]
|
||||||
|
unique: int # for temp identifier generation
|
||||||
|
|
||||||
PGlobals = ref TGlobals
|
PGlobals = ref TGlobals
|
||||||
PProc = ref TProc
|
PProc = ref TProc
|
||||||
|
|
@ -2052,9 +2053,11 @@ proc myProcess(b: PPassContext, n: PNode): PNode =
|
||||||
var m = BModule(b)
|
var m = BModule(b)
|
||||||
if m.module == nil: internalError(n.info, "myProcess")
|
if m.module == nil: internalError(n.info, "myProcess")
|
||||||
var p = newProc(globals, m, nil, m.module.options)
|
var p = newProc(globals, m, nil, m.module.options)
|
||||||
|
p.unique = globals.unique
|
||||||
genModule(p, n)
|
genModule(p, n)
|
||||||
add(p.g.code, p.locals)
|
add(p.g.code, p.locals)
|
||||||
add(p.g.code, p.body)
|
add(p.g.code, p.body)
|
||||||
|
globals.unique = p.unique
|
||||||
|
|
||||||
proc wholeCode*(m: BModule): Rope =
|
proc wholeCode*(m: BModule): Rope =
|
||||||
for prc in globals.forwarded:
|
for prc in globals.forwarded:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue