Mercurial > projects > ddmd
diff dmd/Type.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 | d706d958e4e8 |
children | 5c9b78899f5d |
line wrap: on
line diff
--- a/dmd/Type.d Wed Mar 31 16:29:36 2010 +0400 +++ b/dmd/Type.d Sun Apr 04 02:06:32 2010 +0100 @@ -1837,6 +1837,9 @@ toDecoBuffer(buf); len = buf.offset; + version (Bug4054) + name = cast(char*)GC.malloc(19 + len.sizeof * 3 + len + 1); + else name = cast(char*)alloca(19 + len.sizeof * 3 + len + 1); buf.writeByte(0); version (TARGET_OSX) { @@ -2444,4 +2447,4 @@ { return tsize_t; // matches hash_t alias } -} \ No newline at end of file +}