Mercurial > projects > ddmd
annotate dmd/StringEntry.d @ 192:eb38fdcb3e62 default tip
updated to compile with dmd2.062
author | korDen |
---|---|
date | Sat, 02 Mar 2013 01:25:52 -0800 |
parents | e3afd1303184 |
children |
rev | line source |
---|---|
0 | 1 module dmd.StringEntry; |
2 | |
114 | 3 import dmd.common; |
0 | 4 import dmd.StringValue; |
5 import dmd.Dchar; | |
6 import dmd.Lstring; | |
7 | |
8 import core.stdc.stdlib; | |
9 | |
10 struct StringEntry | |
11 { | |
12 StringEntry* left; | |
13 StringEntry* right; | |
14 hash_t hash; | |
15 | |
16 StringValue value; | |
17 | |
18 this(immutable(dchar_t)[] s) | |
19 { | |
20 hash = Dchar.calcHash(s.ptr, s.length); | |
21 } | |
174 | 22 } |