Mercurial > projects > ddmd
annotate dmd/DocComment.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 | b0d41ff5e0df |
children |
rev | line source |
---|---|
0 | 1 module dmd.DocComment; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.Array; |
5 import dmd.Section; | |
6 import dmd.Macro; | |
7 import dmd.Escape; | |
8 import dmd.Scope; | |
9 import dmd.Dsymbol; | |
10 import dmd.OutBuffer; | |
11 | |
178 | 12 import dmd.TObject; |
13 | |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
14 import dmd.DDMDExtensions; |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
15 |
178 | 16 class DocComment : TObject |
0 | 17 { |
187
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
18 mixin insertMemberExtension!(typeof(this)); |
b0d41ff5e0df
Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents:
178
diff
changeset
|
19 |
0 | 20 Array sections; // Section*[] |
21 | |
22 Section summary; | |
23 Section copyright; | |
24 Section macros; | |
25 Macro** pmacrotable; | |
26 Escape** pescapetable; | |
27 | |
28 this() | |
29 { | |
178 | 30 register(); |
0 | 31 assert(false); |
32 } | |
33 | |
34 static DocComment parse(Scope sc, Dsymbol s, ubyte* comment) | |
35 { | |
36 assert(false); | |
37 } | |
38 | |
39 static void parseMacros(Escape** pescapetable, Macro** pmacrotable, ubyte* m, uint mlen) | |
40 { | |
41 assert(false); | |
42 } | |
43 | |
44 static void parseEscapes(Escape** pescapetable, ubyte* textstart, uint textlen) | |
45 { | |
46 assert(false); | |
47 } | |
48 | |
49 void parseSections(ubyte* comment) | |
50 { | |
51 assert(false); | |
52 } | |
53 | |
54 void writeSections(Scope sc, Dsymbol s, OutBuffer buf) | |
55 { | |
56 assert(false); | |
57 } | |
58 } |