Mercurial > projects > ddmd
view dmd/BUILTIN.d @ 191:52188e7e3fb5
Fixed deprecated features, now compiles with DMD2.058
Also changed Array allocation policy:
Now doesn't reallocate but malloc's, followed by a memcpy (no free).
(this fixes a crash while compiling druntime. Same bug in dmd)
author | korDen@korDen-pc |
---|---|
date | Sun, 25 Mar 2012 03:11:12 +0400 |
parents | a8b50ff7f201 |
children |
line wrap: on
line source
module dmd.BUILTIN; enum BUILTIN { BUILTINunknown = -1, // not known if this is a builtin BUILTINnot, // this is not a builtin BUILTINsin, // std.math.sin BUILTINcos, // std.math.cos BUILTINtan, // std.math.tan BUILTINsqrt, // std.math.sqrt BUILTINfabs, // std.math.fabs } import dmd.EnumUtils; mixin(BringToCurrentScope!(BUILTIN));