changeset 189:a4c9de8e39b3

Now compileable with dmd2.053
author Abscissa
date Wed, 08 Jun 2011 02:21:32 -0400
parents 83a36bdd5d14
children 80660782bffe
files commands.linux.txt commands.osx.txt commands.txt dbg/CallStackInfo.d dmd/ClassDeclaration.d dmd/File.d dmd/OutBuffer.d dmd/StorageClassDeclaration.d rt/deh.di
diffstat 9 files changed, 28 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
--- 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
--- 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);
--- 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++)
--- 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;
 
--- 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;
--- 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;
 
--- /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);