preparations for a generational GC

This commit is contained in:
Araq 2013-02-16 22:53:35 +01:00
commit 5d119f61d1
6 changed files with 13 additions and 6 deletions

View file

@ -754,7 +754,7 @@ proc replaceWord*(s, sub: string, by = ""): string {.noSideEffect,
else:
add result, substr(s, i, j)
i = j + 1
# copy the rest:
# copy the rest:
add result, substr(s, i)
proc delete*(s: var string, first, last: int) {.noSideEffect,

View file

@ -1,7 +1,7 @@
#
#
# Nimrod's Runtime Library
# (c) Copyright 2012 Andreas Rumpf
# (c) Copyright 2013 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
@ -312,6 +312,8 @@ else:
elif defined(gcMarkAndSweep):
# XXX use 'compileOption' here
include "system/gc_ms"
elif defined(gcGenerational):
include "system/gc_genms"
else:
include "system/gc"