Mercurial > projects > ddmd
diff dmd/Util.d @ 114:e28b18c23469
added a module dmd.common for commonly used stuff
it currently holds code for consistency checking of predefined versions
also added a VisualD project file
author | Trass3r |
---|---|
date | Wed, 01 Sep 2010 18:21:58 +0200 |
parents | 3a0b150c9841 |
children | 9e39c7de8438 |
line wrap: on
line diff
--- a/dmd/Util.d Tue Aug 31 23:57:32 2010 +0100 +++ b/dmd/Util.d Wed Sep 01 18:21:58 2010 +0200 @@ -1,5 +1,6 @@ module dmd.Util; +import dmd.common; import dmd.Loc; import dmd.Library; import dmd.File; @@ -690,7 +691,8 @@ int runLINK() { -version (_WIN32) { +version (_WIN32) +{ string p; int i; int status; @@ -1045,7 +1047,7 @@ } status = executearg0(cmd, args); -version (_WIN32) { +version (Windows) { if (status == -1) { auto cmdZ = toStringz(cmd); auto argsZ = toStringz(args); @@ -1092,7 +1094,7 @@ auto fileZ = toStringz(file); auto argsZ = toStringz(args); return spawnl(0, fileZ, fileZ, argsZ, null); -} else version (XXX) { ///#elif linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 +} else version (Posix) { ///#elif linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4 assert(false); /+ char *full;