comparison 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
comparison
equal deleted inserted replaced
190:80660782bffe 191:52188e7e3fb5
18 import dmd.Library; 18 import dmd.Library;
19 import dmd.TOK; 19 import dmd.TOK;
20 import dmd.String; 20 import dmd.String;
21 import dmd.backend.glue; 21 import dmd.backend.glue;
22 22
23 import std.stdarg; 23 import core.vararg;
24 import std.string : toStringz; 24 import std.string : toStringz;
25 import std.exception; 25 import std.exception;
26 26
27 import core.stdc.string; 27 import core.stdc.string;
28 import core.stdc.stdio; 28 import core.stdc.stdio;
41 enum ExitCode 41 enum ExitCode
42 { 42 {
43 EXIT_SUCCESS = 0, 43 EXIT_SUCCESS = 0,
44 } 44 }
45 45
46 version = CrashHandler; 46 //version = CrashHandler;
47 47
48 version (CrashHandler) { 48 version (CrashHandler) {
49 version(Linux) 49 version(Linux)
50 { 50 {
51 extern (C) extern __gshared bool rt_trapExceptions; 51 extern (C) extern __gshared bool rt_trapExceptions;
924 } 924 }
925 } 925 }
926 else 926 else
927 { 927 {
928 name = p; 928 name = p;
929 if (!*name) 929 if (!*name.ptr)
930 goto Linvalid; 930 goto Linvalid;
931 } 931 }
932 932
933 /* At this point, name is the D source file name stripped of 933 /* At this point, name is the D source file name stripped of
934 * its path and extension. 934 * its path and extension.