annotate dmd/CSX.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 |
10317f0c89a5 |
children |
|
rev |
line source |
0
|
1 module dmd.CSX;
|
|
2
|
|
3 enum CSX
|
|
4 {
|
|
5 CSXthis_ctor = 1, // called this()
|
|
6 CSXsuper_ctor = 2, // called super()
|
|
7 CSXthis = 4, // referenced this
|
|
8 CSXsuper = 8, // referenced super
|
|
9 CSXlabel = 0x10, // seen a label
|
|
10 CSXreturn = 0x20, // seen a return statement
|
|
11 CSXany_ctor = 0x40, // either this() or super() was called
|
|
12 }
|
|
13
|
|
14 import dmd.EnumUtils;
|
|
15 mixin(BringToCurrentScope!(CSX)); |