Mercurial > projects > ddmd
view dmd/StringEntry.d @ 76:5196b7829be2
Changed mars.c to mars2.c to avoid obscure bugs when wrong main function is linked
author | korDen |
---|---|
date | Sun, 29 Aug 2010 13:19:02 +0400 |
parents | 10317f0c89a5 |
children | e28b18c23469 |
line wrap: on
line source
module dmd.StringEntry; import dmd.StringValue; import dmd.Dchar; import dmd.Lstring; import core.stdc.stdlib; struct StringEntry { StringEntry* left; StringEntry* right; hash_t hash; StringValue value; this(immutable(dchar_t)[] s) { hash = Dchar.calcHash(s.ptr, s.length); value.lstring.string_ = s; } }