diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 20:59:06 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-07-21 20:59:06 +0200 |
commit | cdf03b06b93d8bf5023d7c4b38a761675a20d514 (patch) | |
tree | f41ea10b1d54502600e841605d8fb0767558e5d3 /lib/system | |
parent | de27098546773b9af5d1a1c06f68f06fadbf3008 (diff) | |
download | Nim-cdf03b06b93d8bf5023d7c4b38a761675a20d514.tar.gz |
added system.appType magic
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/mmdisp.nim (renamed from lib/system/mm.nim) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system/mm.nim b/lib/system/mmdisp.nim index 76b5d83bd..f28b6b931 100755 --- a/lib/system/mm.nim +++ b/lib/system/mmdisp.nim @@ -130,6 +130,12 @@ when defined(boehmgc): include "system/cellsets" elif defined(nogc): + # Even though we don't want the GC, we cannot simply use C's memory manager + # because Nimrod's runtime wants ``realloc`` to zero out the additional + # space which C's ``realloc`` does not. And we cannot get the old size of an + # object, because C does not support this operation... Even though every + # possible implementation has to have a way to determine the object's size. + # C just sucks. include "system/alloc" when false: |