diff main.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents 190ba98276b3
children
line wrap: on
line diff
--- a/main.d	Sun Mar 25 01:39:46 2012 +0400
+++ b/main.d	Sun Mar 25 03:11:12 2012 +0400
@@ -20,7 +20,7 @@
 import dmd.String;
 import dmd.backend.glue;
 
-import std.stdarg;
+import core.vararg;
 import std.string : toStringz;
 import std.exception;
 
@@ -43,7 +43,7 @@
 	EXIT_SUCCESS = 0,
 }
 
-version = CrashHandler;
+//version = CrashHandler;
 
 version (CrashHandler) {
 version(Linux)
@@ -926,7 +926,7 @@
         else
         {
 			name = p;
-            if (!*name)
+            if (!*name.ptr)
                 goto Linvalid;
         }