annotate dmd/MOD.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 af1bebfd96a4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.MOD;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
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.
Robert Clipsham <robert@octarineparrot.com>
parents: 0
diff changeset
3 public enum MOD
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 MODundefined = 0,
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 MODconst = 1, // type is const
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 MODshared = 2, // type is shared
96
acd69f84627e further work
Trass3r
parents: 14
diff changeset
8 MODimmutable = 4, // type is immutable
135
af1bebfd96a4 dmd 2.038
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 96
diff changeset
9 MODwild = 8, // type is wild
af1bebfd96a4 dmd 2.038
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 96
diff changeset
10 MODmutable = 0x10, // type is mutable (only used in wildcard matching)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 import dmd.EnumUtils;
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.
Robert Clipsham <robert@octarineparrot.com>
parents: 0
diff changeset
14 mixin(BringToCurrentScope!(MOD));