diff main.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 903b95002d4e
children 60bb0fe4563e
line wrap: on
line diff
--- a/main.d	Tue Aug 31 23:57:32 2010 +0100
+++ b/main.d	Wed Sep 01 18:21:58 2010 +0200
@@ -290,12 +290,17 @@
 }
     VersionCondition.addPredefinedGlobalIdent("all");
 
-version (_WIN32) {
-    inifile(args[0], "sc.ini");
-} else version (POSIX) {///linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
-    inifile(args[0], "dmd.conf");
-} else {
-        static assert (false, "fix this");
+version (Windows)
+{
+	inifile(args[0], "sc.ini");
+}
+ else version (Posix) ///linux || __APPLE__ || __FreeBSD__ || __sun&&__SVR4
+{
+	inifile(args[0], "dmd.conf");
+}
+else
+{
+	static assert (false, "fix this");
 }
     args = getenv_setargv("DFLAGS", args);
 
@@ -578,7 +583,7 @@
             }
             else if (memcmp(p + 1, "man".ptr, 3) == 0)
             {
-version (_WIN32) {
+version (Windows) {
 version (DMDV1) {
                 browse("http://www.digitalmars.com/d/1.0/dmd-windows.html");
 } else {
@@ -800,7 +805,7 @@
 		String s = cast(String) files.data[i];
         string mp = s.str;
 
-version (_WIN32) {
+version (Windows) {
 		char[] copy = null;
         // Convert / to \ so linker will work
         foreach (j, c; mp)