Mercurial > projects > ddmd
diff dmd/Global.d @ 0:10317f0c89a5
Initial commit
author | korDen |
---|---|
date | Sat, 24 Oct 2009 08:42:06 +0400 |
parents | |
children | 2cc604139636 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dmd/Global.d Sat Oct 24 08:42:06 2009 +0400 @@ -0,0 +1,52 @@ +module dmd.Global; + +import dmd.Array; +import dmd.Param; + +class Global +{ + string mars_ext = "d"; + string sym_ext = "d"; + +version (TARGET_WINDOS) { + string obj_ext = "obj"; +} else version (XXX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS + string obj_ext = "o"; +} else version (TARGET_NET) { +} else { + static assert (false); +} + +version (TARGET_WINDOS) { + string lib_ext = "lib"; +} else version (XXX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS + string lib_ext = "a"; +} else version (TARGET_NET) { +} else { + static assert (false); +} + string doc_ext = "html";; // for Ddoc generated files + string ddoc_ext = "ddoc";; // for Ddoc macro include files + string hdr_ext = "di"; // for D 'header' import files + string copyright= "Copyright (c) 1999-2009 by Digital Mars"; + string written = "written by Walter Bright"; +///version (TARGET_NET) { +/// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates."; +///} + + string[] path; // Array of char*'s which form the import lookup path + string[] filePath; // Array of char*'s which form the file import lookup path + int structalign = 8; + string version_ = "v2.032"; + + Param params; + uint errors; // number of errors reported so far + uint gag; // !=0 means gag reporting of errors + + this() + { + params.versionids = new Array(); + } +} + +Global global; \ No newline at end of file