mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 09:33:27 +01:00
[svn r76] Fixed: TypeInfo for structs.
Fixed: PostExp was unable to allocate storage for parameters. Fixed: Many types of functions and delegates were broken. Misc cleanups.
This commit is contained in:
@@ -937,6 +937,8 @@ class TypeInfo_Interface : TypeInfo
|
||||
ClassInfo info;
|
||||
}
|
||||
|
||||
+/
|
||||
|
||||
class TypeInfo_Struct : TypeInfo
|
||||
{
|
||||
char[] toString() { return name; }
|
||||
@@ -987,7 +989,7 @@ class TypeInfo_Struct : TypeInfo
|
||||
return c;
|
||||
}
|
||||
|
||||
int compare(void *p2, void *p1)
|
||||
int compare(void *p1, void *p2)
|
||||
{
|
||||
int c = 0;
|
||||
|
||||
@@ -1029,6 +1031,8 @@ class TypeInfo_Struct : TypeInfo
|
||||
uint m_flags;
|
||||
}
|
||||
|
||||
/+
|
||||
|
||||
class TypeInfo_Tuple : TypeInfo
|
||||
{
|
||||
TypeInfo[] elements;
|
||||
|
||||
Reference in New Issue
Block a user