annotate tests/testincludes/object.di @ 1400:4100c49b753f

Merge some changes from Tango's object.di into the testincludes version.
author Frits van Bommel <fvbommel wxs.nl>
date Tue, 19 May 2009 22:35:08 +0200
parents f2b608012699
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
1 // This is a modification of tango/object.di that includes
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
2 // aliases for string, wstring, dstring and Exception.
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
3 // This is because dstress expects phobos, which provides
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
4 // these aliases.
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
5
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
6 module object;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
7
371
f2b608012699 [svn r392] Make import of std.compat in object.di used for testing public.
ChristianK
parents: 368
diff changeset
8 public import std.compat;
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
9
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
10 alias typeof(int.sizeof) size_t;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
11 alias typeof(cast(void*)0 - cast(void*)0) ptrdiff_t;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
12
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
13 alias size_t hash_t;
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
14 alias int equals_t;
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
15
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
16 class Object
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
17 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
18 char[] toString();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
19 hash_t toHash();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
20 int opCmp(Object o);
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
21 equals_t opEquals(Object o);
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
22
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
23 interface Monitor
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
24 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
25 void lock();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
26 void unlock();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
27 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
28 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
29
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
30 struct Interface
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
31 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
32 ClassInfo classinfo;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
33 void*[] vtbl;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
34 ptrdiff_t offset; // offset to Interface 'this' from Object 'this'
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
35 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
36
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
37 class ClassInfo : Object
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
38 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
39 byte[] init; // class static initializer
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
40 char[] name; // class name
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
41 void*[] vtbl; // virtual function pointer table
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
42 Interface[] interfaces;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
43 ClassInfo base;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
44 void* destructor;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
45 void(*classInvariant)(Object);
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
46 uint flags;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
47 // 1: // IUnknown
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
48 // 2: // has no possible pointers into GC memory
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
49 // 4: // has offTi[] member
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
50 // 8: // has constructors
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
51 // 32: // has typeinfo
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
52 void* deallocator;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
53 OffsetTypeInfo[] offTi;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
54 void* defaultConstructor;
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
55 TypeInfo typeinfo;
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
56
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
57 static ClassInfo find(char[] classname);
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
58 Object create();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
59 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
60
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
61 struct OffsetTypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
62 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
63 size_t offset;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
64 TypeInfo ti;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
65 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
66
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
67 class TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
68 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
69 hash_t getHash(void *p);
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
70 equals_t equals(void *p1, void *p2);
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
71 int compare(void *p1, void *p2);
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
72 size_t tsize();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
73 void swap(void *p1, void *p2);
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
74 TypeInfo next();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
75 void[] init();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
76 uint flags();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
77 // 1: // has possible pointers into GC memory
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
78 OffsetTypeInfo[] offTi();
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
79 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
80
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
81 class TypeInfo_Typedef : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
82 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
83 TypeInfo base;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
84 char[] name;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
85 void[] m_init;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
86 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
87
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
88 class TypeInfo_Enum : TypeInfo_Typedef
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
89 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
90 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
91
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
92 class TypeInfo_Pointer : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
93 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
94 TypeInfo m_next;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
95 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
96
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
97 class TypeInfo_Array : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
98 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
99 TypeInfo value;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
100 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
101
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
102 class TypeInfo_StaticArray : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
103 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
104 TypeInfo value;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
105 size_t len;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
106 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
107
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
108 class TypeInfo_AssociativeArray : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
109 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
110 TypeInfo value;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
111 TypeInfo key;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
112 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
113
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
114 class TypeInfo_Function : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
115 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
116 TypeInfo next;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
117 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
118
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
119 class TypeInfo_Delegate : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
120 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
121 TypeInfo next;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
122 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
123
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
124 class TypeInfo_Class : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
125 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
126 ClassInfo info;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
127 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
128
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
129 class TypeInfo_Interface : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
130 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
131 ClassInfo info;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
132 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
133
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
134 class TypeInfo_Struct : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
135 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
136 char[] name;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
137 void[] m_init;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
138
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
139 uint function(void*) xtoHash;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
140 int function(void*,void*) xopEquals;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
141 int function(void*,void*) xopCmp;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
142 char[] function(void*) xtoString;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
143
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
144 uint m_flags;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
145 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
146
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
147 class TypeInfo_Tuple : TypeInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
148 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
149 TypeInfo[] elements;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
150 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
151
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
152 class ModuleInfo
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
153 {
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
154 char[] name;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
155 ModuleInfo[] importedModules;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
156 ClassInfo[] localClasses;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
157 uint flags;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
158
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
159 void function() ctor;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
160 void function() dtor;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
161 void function() unitTest;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
162
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
163 void* xgetMembers;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
164 void function() ictor;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
165
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
166 static int opApply( int delegate( inout ModuleInfo ) );
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
167 }
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
168
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
169 class Exception : Object
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
170 {
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
171 struct FrameInfo{
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
172 long line;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
173 ptrdiff_t iframe;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
174 ptrdiff_t offset;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
175 size_t address;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
176 char[] file;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
177 char[] func;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
178 char[256] charBuf;
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
179 void writeOut(void delegate(char[])sink);
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
180 }
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
181 interface TraceInfo
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
182 {
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
183 int opApply( int delegate( ref FrameInfo fInfo) );
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
184 }
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
185
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
186 char[] msg;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
187 char[] file;
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
188 size_t line; // long would be better
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
189 TraceInfo info;
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
190 Exception next;
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
191
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
192 this(char[] msg, char[] file, long line, Exception next, TraceInfo info );
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
193 this(char[] msg, Exception next = null);
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
194 this(char[] msg, char[] file, long line, Exception next = null);
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
195 char[] toString();
1400
4100c49b753f Merge some changes from Tango's object.di into the testincludes version.
Frits van Bommel <fvbommel wxs.nl>
parents: 371
diff changeset
196 void writeOut(void delegate(char[]) sink);
274
9f228c1e5311 [svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
diff changeset
197 }