annotate dmd/Section.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 |
e3afd1303184 |
children |
|
rev |
line source |
0
|
1 module dmd.Section;
|
|
2
|
114
|
3 import dmd.common;
|
0
|
4 import dmd.DocComment;
|
|
5 import dmd.Scope;
|
|
6 import dmd.Dsymbol;
|
|
7 import dmd.OutBuffer;
|
|
8
|
178
|
9 import dmd.TObject;
|
|
10
|
|
11 class Section : TObject
|
0
|
12 {
|
|
13 ubyte* name;
|
|
14 uint namelen;
|
|
15
|
|
16 ubyte* body_;
|
|
17 uint bodylen;
|
|
18
|
|
19 int nooutput;
|
|
20
|
|
21 void write(DocComment dc, Scope sc, Dsymbol s, OutBuffer buf)
|
|
22 {
|
|
23 assert(false);
|
|
24 }
|
|
25 } |