Mercurial > projects > ddmd
annotate dmd/StringEntry.d @ 146:af7e5ebef6ad
redundant extern(C)
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Tue, 14 Sep 2010 23:34:50 +0100 |
parents | e28b18c23469 |
children | af724d3510d7 |
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 value.lstring.string_ = s; | |
22 } | |
23 } |