comparison dmd/StringExp.d @ 187:b0d41ff5e0df

Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author Abscissa
date Tue, 07 Jun 2011 23:37:34 -0400
parents 0622fff7810a
children
comparison
equal deleted inserted replaced
186:1a0c1126bc46 187:b0d41ff5e0df
38 38
39 import core.stdc.string; 39 import core.stdc.string;
40 import core.stdc.stdlib; 40 import core.stdc.stdlib;
41 import core.stdc.ctype; 41 import core.stdc.ctype;
42 42
43 import dmd.DDMDExtensions;
44
43 class StringExp : Expression 45 class StringExp : Expression
44 { 46 {
47 mixin insertMemberExtension!(typeof(this));
48
45 void* string_; // char, wchar, or dchar data 49 void* string_; // char, wchar, or dchar data
46 size_t len; // number of chars, wchars, or dchars 50 size_t len; // number of chars, wchars, or dchars
47 ubyte sz; // 1: char, 2: wchar, 4: dchar 51 ubyte sz; // 1: char, 2: wchar, 4: dchar
48 ubyte committed; // !=0 if type is committed 52 ubyte committed; // !=0 if type is committed
49 ubyte postfix; // 'c', 'w', 'd' 53 ubyte postfix; // 'c', 'w', 'd'