Mercurial > projects > ddmd
annotate dmd/Global.d @ 79:43073c7c7769
updated to 2.035
also implemented a few missing functions
still crashes in Import.importAll though
author | Trass3r |
---|---|
date | Mon, 30 Aug 2010 03:57:51 +0200 |
parents | cfa3747ebe4c |
children | acd69f84627e |
rev | line source |
---|---|
0 | 1 module dmd.Global; |
2 | |
3 import dmd.Array; | |
4 import dmd.Param; | |
5 | |
6 class Global | |
7 { | |
8 string mars_ext = "d"; | |
9 string sym_ext = "d"; | |
10 | |
11 version (TARGET_WINDOS) { | |
12 string obj_ext = "obj"; | |
14
2cc604139636
Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
13 } else version (POSIX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS |
0 | 14 string obj_ext = "o"; |
15 } else version (TARGET_NET) { | |
16 } else { | |
17 static assert (false); | |
18 } | |
19 | |
20 version (TARGET_WINDOS) { | |
21 string lib_ext = "lib"; | |
14
2cc604139636
Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
22 } else version (POSIX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS |
0 | 23 string lib_ext = "a"; |
24 } else version (TARGET_NET) { | |
25 } else { | |
26 static assert (false); | |
27 } | |
79 | 28 string doc_ext = "html"; // for Ddoc generated files |
29 string ddoc_ext = "ddoc"; // for Ddoc macro include files | |
30 string json_ext = "json"; | |
0 | 31 string hdr_ext = "di"; // for D 'header' import files |
32 string copyright= "Copyright (c) 1999-2009 by Digital Mars"; | |
75
cfa3747ebe4c
Changed dmd to ddmd in the "usage" message and added "ported to D by community" to desription to distinguish from pure dmd build
korDen
parents:
73
diff
changeset
|
33 string written = "written by Walter Bright, ported to D by community"; |
0 | 34 ///version (TARGET_NET) { |
35 /// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates."; | |
36 ///} | |
37 | |
38 string[] path; // Array of char*'s which form the import lookup path | |
39 string[] filePath; // Array of char*'s which form the file import lookup path | |
40 int structalign = 8; | |
79 | 41 string version_ = "v2.035"; |
0 | 42 |
43 Param params; | |
44 uint errors; // number of errors reported so far | |
45 uint gag; // !=0 means gag reporting of errors | |
46 | |
47 this() | |
48 { | |
49 params.versionids = new Array(); | |
50 } | |
51 } | |
52 | |
14
2cc604139636
Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
Robert Clipsham <robert@octarineparrot.com>
parents:
0
diff
changeset
|
53 Global global; |