# HG changeset patch # User Abscissa # Date 1307514092 14400 # Node ID a4c9de8e39b30332fd0d17387c99b564a7dab8ab # Parent 83a36bdd5d14eb40fe97a0d83c7ceeaa10f8f234 Now compileable with dmd2.053 diff -r 83a36bdd5d14 -r a4c9de8e39b3 commands.linux.txt --- a/commands.linux.txt Tue Jun 07 23:51:08 2011 -0400 +++ b/commands.linux.txt Wed Jun 08 02:21:32 2011 -0400 @@ -202,6 +202,7 @@ dmd/ContinueStatement.d dmd/CppMangleState.d dmd/CtorDeclaration.d +dmd/DDMDExtensions.d dmd/DVCondition.d dmd/Dchar.d dmd/DebugCondition.d diff -r 83a36bdd5d14 -r a4c9de8e39b3 commands.osx.txt --- a/commands.osx.txt Tue Jun 07 23:51:08 2011 -0400 +++ b/commands.osx.txt Wed Jun 08 02:21:32 2011 -0400 @@ -202,6 +202,7 @@ dmd/ContinueStatement.d dmd/CppMangleState.d dmd/CtorDeclaration.d +dmd/DDMDExtensions.d dmd/DVCondition.d dmd/Dchar.d dmd/DebugCondition.d diff -r 83a36bdd5d14 -r a4c9de8e39b3 commands.txt --- a/commands.txt Tue Jun 07 23:51:08 2011 -0400 +++ b/commands.txt Wed Jun 08 02:21:32 2011 -0400 @@ -196,6 +196,7 @@ dmd\ContinueStatement.d dmd\CppMangleState.d dmd\CtorDeclaration.d +dmd\DDMDExtensions.d dmd\DVCondition.d dmd\Dchar.d dmd\DebugCondition.d diff -r 83a36bdd5d14 -r a4c9de8e39b3 dbg/CallStackInfo.d --- a/dbg/CallStackInfo.d Tue Jun 07 23:51:08 2011 -0400 +++ b/dbg/CallStackInfo.d Wed Jun 08 02:21:32 2011 -0400 @@ -20,6 +20,8 @@ import core.stdc.stdio; import core.sys.windows.windows; +import rt.deh; + class CallStackInfo { this(EXCEPTION_POINTERS* e = null) @@ -241,17 +243,6 @@ CONTEXT* ContextRecord; } -const size_t EXCEPTION_MAXIMUM_PARAMETERS = 15; - -struct EXCEPTION_RECORD { - DWORD ExceptionCode; - DWORD ExceptionFlags; - EXCEPTION_RECORD* ExceptionRecord; - PVOID ExceptionAddress; - DWORD NumberParameters; - DWORD[EXCEPTION_MAXIMUM_PARAMETERS] ExceptionInformation; -} - const MAXIMUM_SUPPORTED_EXTENSION = 512; struct CONTEXT { @@ -282,4 +273,4 @@ BYTE[MAXIMUM_SUPPORTED_EXTENSION] ExtendedRegisters; } -extern(C) Throwable _d_translate_se_to_d_exception(EXCEPTION_RECORD* exception_record); +//extern Throwable _d_translate_se_to_d_exception(EXCEPTION_RECORD* exception_record); diff -r 83a36bdd5d14 -r a4c9de8e39b3 dmd/ClassDeclaration.d --- a/dmd/ClassDeclaration.d Tue Jun 07 23:51:08 2011 -0400 +++ b/dmd/ClassDeclaration.d Wed Jun 08 02:21:32 2011 -0400 @@ -397,7 +397,7 @@ if (tb.ty == TY.Ttuple) { TypeTuple tup = cast(TypeTuple)tb; - enum PROT protection = b.protection; + PROT protection = b.protection; baseclasses.remove(i); size_t dim = Parameter.dim(tup.arguments); for (size_t j = 0; j < dim; j++) diff -r 83a36bdd5d14 -r a4c9de8e39b3 dmd/File.d --- a/dmd/File.d Tue Jun 07 23:51:08 2011 -0400 +++ b/dmd/File.d Wed Jun 08 02:21:32 2011 -0400 @@ -21,6 +21,7 @@ import std.string : toStringz; import std.stdio; +import std.conv; import core.memory; @@ -255,7 +256,7 @@ int fd; ssize_t numwritten; const(char)* name = toStringz(this.name.toChars()); - fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, 0644); + fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, std.conv.octal!644); if (fd == -1) goto err; diff -r 83a36bdd5d14 -r a4c9de8e39b3 dmd/OutBuffer.d --- a/dmd/OutBuffer.d Tue Jun 07 23:51:08 2011 -0400 +++ b/dmd/OutBuffer.d Wed Jun 08 02:21:32 2011 -0400 @@ -1,7 +1,7 @@ module dmd.OutBuffer; import dmd.common; -import std.stdarg; +import core.vararg; import std.exception; import core.stdc.stdlib; diff -r 83a36bdd5d14 -r a4c9de8e39b3 dmd/StorageClassDeclaration.d --- a/dmd/StorageClassDeclaration.d Tue Jun 07 23:51:08 2011 -0400 +++ b/dmd/StorageClassDeclaration.d Wed Jun 08 02:21:32 2011 -0400 @@ -136,7 +136,7 @@ { if (stc & table[i].stc) { - enum TOK tok = table[i].tok; + TOK tok = table[i].tok; if (tok == TOKat) { Identifier id; diff -r 83a36bdd5d14 -r a4c9de8e39b3 rt/deh.di --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rt/deh.di Wed Jun 08 02:21:32 2011 -0400 @@ -0,0 +1,17 @@ +module rt.deh; + +import core.sys.windows.windows; + +enum size_t EXCEPTION_MAXIMUM_PARAMETERS = 15; + +struct EXCEPTION_RECORD { + DWORD ExceptionCode; + DWORD ExceptionFlags; + EXCEPTION_RECORD* ExceptionRecord; + PVOID ExceptionAddress; + DWORD NumberParameters; + DWORD[EXCEPTION_MAXIMUM_PARAMETERS] ExceptionInformation; +} +alias EXCEPTION_RECORD* PEXCEPTION_RECORD, LPEXCEPTION_RECORD; + +Throwable _d_translate_se_to_d_exception(EXCEPTION_RECORD* exception_record);