code cleanup for mark&sweep GC

This commit is contained in:
Araq 2013-02-07 16:09:46 +01:00
commit 4ee9816a78
7 changed files with 43 additions and 88 deletions

View file

@ -21,7 +21,7 @@ proc registerGcRoot(p: BProc, v: PSym) =
# that it works out of the box for thread local storage then :-)
let prc = genTraverseProcForGlobal(p.module, v)
linefmt(p.module.initProc, cpsStmts,
"#nimRegisterGlobalMarker((void*)$1);$n", prc)
"#nimRegisterGlobalMarker($1);$n", prc)
proc genVarTuple(p: BProc, n: PNode) =
var tup, field: TLoc