view dmd/StringEntry.d @ 188:83a36bdd5d14

Missed one in last commit.
author Abscissa
date Tue, 07 Jun 2011 23:51:08 -0400
parents e3afd1303184
children
line wrap: on
line source

module dmd.StringEntry;

import dmd.common;
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);
	}
}