summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-12-15 13:54:41 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-12-15 13:54:41 +0100
commite3a668a33baaf9d89b287827eaab3fa1cdfec877 (patch)
treebf374e97230a61d036176638bcaf7798d70985d3 /lib
parent446f911a173a595648fa444c83d931193198eeb6 (diff)
downloadNim-e3a668a33baaf9d89b287827eaab3fa1cdfec877.tar.gz
--gc:destructors: baby steps
Diffstat (limited to 'lib')
-rw-r--r--lib/core/seqs.nim6
-rw-r--r--lib/system.nim9
2 files changed, 5 insertions, 10 deletions
diff --git a/lib/core/seqs.nim b/lib/core/seqs.nim
index a41ef10ab..977b23b26 100644
--- a/lib/core/seqs.nim
+++ b/lib/core/seqs.nim
@@ -70,12 +70,6 @@ proc `=sink`[T](x: var seq[T]; y: seq[T]) =
   a.len = b.len
   a.p = b.p
 
-when false:
-  proc incrSeqV3(s: PGenericSeq, typ: PNimType): PGenericSeq {.compilerProc.}
-  proc setLengthSeqV2(s: PGenericSeq, typ: PNimType, newLen: int): PGenericSeq {.
-      compilerRtl.}
-  proc newSeq(typ: PNimType, len: int): pointer {.compilerRtl.}
-
 
 type
   PayloadBase = object
diff --git a/lib/system.nim b/lib/system.nim
index ea767e27a..47efda3fc 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -3431,6 +3431,10 @@ when not defined(JS): #and not defined(nimscript):
     when defined(memtracker):
       include "system/memtracker"
 
+    when defined(gcDestructors):
+      include "core/strs"
+      include "core/seqs"
+
     when hostOS == "standalone":
       include "system/embedded"
     else:
@@ -3479,10 +3483,7 @@ when not defined(JS): #and not defined(nimscript):
     {.pop.}
     {.push stack_trace: off, profiler:off.}
     when hasAlloc:
-      when defined(gcDestructors):
-        include "core/strs"
-        include "core/seqs"
-      else:
+      when not defined(gcDestructors):
         include "system/sysstr"
     {.pop.}
     when hasAlloc: include "system/strmantle"