Mercurial > projects > ddmd
diff dmd/TypeDArray.d @ 14:2cc604139636
Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sun, 04 Apr 2010 02:06:32 +0100 |
parents | 10317f0c89a5 |
children | 01cadcfa4842 |
line wrap: on
line diff
--- a/dmd/TypeDArray.d Wed Mar 31 16:29:36 2010 +0400 +++ b/dmd/TypeDArray.d Sun Apr 04 02:06:32 2010 +0100 @@ -35,6 +35,7 @@ import core.stdc.stdlib; import core.stdc.stdio; +version (Bug4054) import core.memory; // Dynamic array, no dimension class TypeDArray : TypeArray @@ -299,6 +300,9 @@ char *id; assert(next.deco); + version (Bug4054) + id = cast(char*) GC.malloc(7 + next.deco.length + 1); + else id = cast(char*) alloca(7 + next.deco.length + 1); sprintf(id, "_Array_%.*s", next.deco); s = symbol_calloc(id); @@ -336,4 +340,4 @@ ctype = t; return t; } -} \ No newline at end of file +}