view dmd/StringEntry.d @ 190:80660782bffe

Fixed deprecated function call
author korDen@korDen-pc
date Sun, 25 Mar 2012 01:39:46 +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);
	}
}