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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.StringEntry;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 0
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.StringValue;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.Dchar;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.Lstring;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 import core.stdc.stdlib;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 struct StringEntry
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 StringEntry* left;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 StringEntry* right;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 hash_t hash;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 StringValue value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 this(immutable(dchar_t)[] s)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 hash = Dchar.calcHash(s.ptr, s.length);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 }
174
af724d3510d7 lot os toCBuffer methods implemented
korDen
parents: 114
diff changeset
22 }