Mercurial > projects > ddmd
comparison dmd/DocComment.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | e28b18c23469 |
children | b0d41ff5e0df |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
7 import dmd.Escape; | 7 import dmd.Escape; |
8 import dmd.Scope; | 8 import dmd.Scope; |
9 import dmd.Dsymbol; | 9 import dmd.Dsymbol; |
10 import dmd.OutBuffer; | 10 import dmd.OutBuffer; |
11 | 11 |
12 class DocComment | 12 import dmd.TObject; |
13 | |
14 class DocComment : TObject | |
13 { | 15 { |
14 Array sections; // Section*[] | 16 Array sections; // Section*[] |
15 | 17 |
16 Section summary; | 18 Section summary; |
17 Section copyright; | 19 Section copyright; |
19 Macro** pmacrotable; | 21 Macro** pmacrotable; |
20 Escape** pescapetable; | 22 Escape** pescapetable; |
21 | 23 |
22 this() | 24 this() |
23 { | 25 { |
26 register(); | |
24 assert(false); | 27 assert(false); |
25 } | 28 } |
26 | 29 |
27 static DocComment parse(Scope sc, Dsymbol s, ubyte* comment) | 30 static DocComment parse(Scope sc, Dsymbol s, ubyte* comment) |
28 { | 31 { |