changeset 182:b64060ab22df

Now compileable with dmd2.050
author korDen
date Sat, 30 Oct 2010 05:05:32 +0400
parents aa70dca07cb0
children 13cf8da225ce
files dmd/UnaExp.d dmd/codegen/linkhelper.d setupenv.bat
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dmd/UnaExp.d	Mon Oct 18 00:36:44 2010 +0400
+++ b/dmd/UnaExp.d	Sat Oct 30 05:05:32 2010 +0400
@@ -77,7 +77,7 @@
 		e1.scanForNestedRef(sc);
 	}
 
-	Expression interpretCommon(InterState istate, Expression *(*fp)(Type* a0, Expression* a1))
+	Expression interpretCommon(InterState istate, Expression* function(Type* a0, Expression* a1))
 	{
 		assert(false);
 	}
--- a/dmd/codegen/linkhelper.d	Mon Oct 18 00:36:44 2010 +0400
+++ b/dmd/codegen/linkhelper.d	Sat Oct 30 05:05:32 2010 +0400
@@ -24,9 +24,9 @@
 		va_start(ap, format);
 		
 		char buf[1024];
-		vsprintf(buf.ptr, format, ap);
+		int len = vsprintf(buf.ptr, format, ap);
 		va_end( ap );
 		
-		dmd.Util.error(loc, to!string(buf));
+		dmd.Util.error(loc, buf[0..len].idup);
 	}
 }
--- a/setupenv.bat	Mon Oct 18 00:36:44 2010 +0400
+++ b/setupenv.bat	Sat Oct 30 05:05:32 2010 +0400
@@ -1,1 +1,1 @@
-set path=c:\dm\bin;c:\dmd2.049\windows\bin;%PATH%
\ No newline at end of file
+set path=c:\dm\bin;c:\dmd2.050\windows\bin;%PATH%
\ No newline at end of file