Mercurial > projects > dmdscript-tango
comparison dmdscript_tango/property.d @ 4:6d905019f7bf
some changes
author | saaadel |
---|---|
date | Thu, 28 Jan 2010 21:23:27 +0200 |
parents | 8363a4bf6a8f |
children |
comparison
equal
deleted
inserted
replaced
3:8363a4bf6a8f | 4:6d905019f7bf |
---|---|
23 | 23 |
24 import dmdscript_tango.script; | 24 import dmdscript_tango.script; |
25 import dmdscript_tango.value; | 25 import dmdscript_tango.value; |
26 import dmdscript_tango.identifier; | 26 import dmdscript_tango.identifier; |
27 | 27 |
28 import std.c.string; | 28 //import std.c.string; |
29 import tango.stdc.string; | |
29 | 30 |
30 // attribute flags | 31 // attribute flags |
31 enum | 32 enum |
32 { | 33 { |
33 ReadOnly = 0x001, | 34 ReadOnly = 0x001, |
140 } | 141 } |
141 | 142 |
142 // Not found, create new elem | 143 // Not found, create new elem |
143 //printf("\tcreate new one\n"); | 144 //printf("\tcreate new one\n"); |
144 e = cast(aaA *) cast(void*) new void[aaA.sizeof + Value.sizeof + Property.sizeof]; | 145 e = cast(aaA *) cast(void*) new void[aaA.sizeof + Value.sizeof + Property.sizeof]; |
145 std.c.string.memcpy(e + 1, key, Value.sizeof); | 146 tango.stdc.string.memcpy(e + 1, key, Value.sizeof); |
147 //std.c.string.memcpy(e + 1, key, Value.sizeof); | |
146 e.hash = hash; | 148 e.hash = hash; |
147 *pe = e; | 149 *pe = e; |
148 | 150 |
149 auto nodes = ++aa.a.nodes; | 151 auto nodes = ++aa.a.nodes; |
150 //printf("length = %d, nodes = %d\n", (*aa).length, nodes); | 152 //printf("length = %d, nodes = %d\n", (*aa).length, nodes); |