Changeset 189:a4c9de8e39b3
- Timestamp:
- 06/08/11 02:21:32
(1 year ago)
- Author:
- Abscissa
- branch:
- default
- Message:
Now compileable with dmd2.053
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r183 |
r189 |
|
| 203 | 203 | dmd/CppMangleState.d |
|---|
| 204 | 204 | dmd/CtorDeclaration.d |
|---|
| | 205 | dmd/DDMDExtensions.d |
|---|
| 205 | 206 | dmd/DVCondition.d |
|---|
| 206 | 207 | dmd/Dchar.d |
|---|
| r184 |
r189 |
|
| 203 | 203 | dmd/CppMangleState.d |
|---|
| 204 | 204 | dmd/CtorDeclaration.d |
|---|
| | 205 | dmd/DDMDExtensions.d |
|---|
| 205 | 206 | dmd/DVCondition.d |
|---|
| 206 | 207 | dmd/Dchar.d |
|---|
| r179 |
r189 |
|
| 197 | 197 | dmd\CppMangleState.d |
|---|
| 198 | 198 | dmd\CtorDeclaration.d |
|---|
| | 199 | dmd\DDMDExtensions.d |
|---|
| 199 | 200 | dmd\DVCondition.d |
|---|
| 200 | 201 | dmd\Dchar.d |
|---|
| r79 |
r189 |
|
| 20 | 20 | import core.stdc.stdio; |
|---|
| 21 | 21 | import core.sys.windows.windows; |
|---|
| | 22 | |
|---|
| | 23 | import rt.deh; |
|---|
| 22 | 24 | |
|---|
| 23 | 25 | class CallStackInfo |
|---|
| … | … | |
| 240 | 242 | EXCEPTION_RECORD* ExceptionRecord; |
|---|
| 241 | 243 | CONTEXT* ContextRecord; |
|---|
| 242 | | } |
|---|
| 243 | | |
|---|
| 244 | | const size_t EXCEPTION_MAXIMUM_PARAMETERS = 15; |
|---|
| 245 | | |
|---|
| 246 | | struct EXCEPTION_RECORD { |
|---|
| 247 | | DWORD ExceptionCode; |
|---|
| 248 | | DWORD ExceptionFlags; |
|---|
| 249 | | EXCEPTION_RECORD* ExceptionRecord; |
|---|
| 250 | | PVOID ExceptionAddress; |
|---|
| 251 | | DWORD NumberParameters; |
|---|
| 252 | | DWORD[EXCEPTION_MAXIMUM_PARAMETERS] ExceptionInformation; |
|---|
| 253 | 244 | } |
|---|
| 254 | 245 | |
|---|
| … | … | |
| 283 | 274 | } |
|---|
| 284 | 275 | |
|---|
| 285 | | extern(C) Throwable _d_translate_se_to_d_exception(EXCEPTION_RECORD* exception_record); |
|---|
| | 276 | //extern Throwable _d_translate_se_to_d_exception(EXCEPTION_RECORD* exception_record); |
|---|
| r187 |
r189 |
|
| 398 | 398 | { |
|---|
| 399 | 399 | TypeTuple tup = cast(TypeTuple)tb; |
|---|
| 400 | | enum PROT protection = b.protection; |
|---|
| | 400 | PROT protection = b.protection; |
|---|
| 401 | 401 | baseclasses.remove(i); |
|---|
| 402 | 402 | size_t dim = Parameter.dim(tup.arguments); |
|---|
| r183 |
r189 |
|
| 22 | 22 | import std.string : toStringz; |
|---|
| 23 | 23 | import std.stdio; |
|---|
| | 24 | import std.conv; |
|---|
| 24 | 25 | |
|---|
| 25 | 26 | import core.memory; |
|---|
| … | … | |
| 256 | 257 | ssize_t numwritten; |
|---|
| 257 | 258 | const(char)* name = toStringz(this.name.toChars()); |
|---|
| 258 | | fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644); |
|---|
| | 259 | fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, std.conv.octal!644); |
|---|
| 259 | 260 | if (fd == -1) |
|---|
| 260 | 261 | goto err; |
|---|
| r178 |
r189 |
|
| 2 | 2 | |
|---|
| 3 | 3 | import dmd.common; |
|---|
| 4 | | import std.stdarg; |
|---|
| | 4 | import core.vararg; |
|---|
| 5 | 5 | import std.exception; |
|---|
| 6 | 6 | |
|---|
| r187 |
r189 |
|
| 137 | 137 | if (stc & table[i].stc) |
|---|
| 138 | 138 | { |
|---|
| 139 | | enum TOK tok = table[i].tok; |
|---|
| | 139 | TOK tok = table[i].tok; |
|---|
| 140 | 140 | if (tok == TOKat) |
|---|
| 141 | 141 | { Identifier id; |
|---|