annotate 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 |
|
rev |
line source |
0
|
1 module dmd.BUILTIN;
|
|
2
|
|
3 enum BUILTIN
|
|
4 {
|
|
5 BUILTINunknown = -1, // not known if this is a builtin
|
|
6 BUILTINnot, // this is not a builtin
|
|
7 BUILTINsin, // std.math.sin
|
|
8 BUILTINcos, // std.math.cos
|
|
9 BUILTINtan, // std.math.tan
|
|
10 BUILTINsqrt, // std.math.sqrt
|
|
11 BUILTINfabs, // std.math.fabs
|
53
|
12 }
|
|
13
|
|
14 import dmd.EnumUtils;
|
|
15 mixin(BringToCurrentScope!(BUILTIN)); |