Mercurial > projects > ldc
view lphobos/typeinfo1/ti_short.d @ 1463:a5526b7a5ae6
D2:
Applied function type from D1 frontend that got removed in D2, it's critical for member function type to be correct.
Fixed a bunch of type discrepancies in druntime object.di vs. genobj.d .
Disabled (#if 0) some potentally very large type dumps for -vv .
Updated classinfo and typeinfo generation for D2, almost complete now.
Added finer grained checks for vtbl type mismatching, aids debugging.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 02:28:48 +0200 |
parents | 2c3cd3596187 |
children |
line wrap: on
line source
// short module typeinfo1.ti_short; class TypeInfo_s : TypeInfo { char[] toString() { return "short"; } hash_t getHash(void *p) { return *cast(short *)p; } int equals(void *p1, void *p2) { return *cast(short *)p1 == *cast(short *)p2; } int compare(void *p1, void *p2) { return *cast(short *)p1 - *cast(short *)p2; } size_t tsize() { return short.sizeof; } void swap(void *p1, void *p2) { short t; t = *cast(short *)p1; *cast(short *)p1 = *cast(short *)p2; *cast(short *)p2 = t; } }