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";
|
|
13 } else version (XXX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS
|
|
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";
|
|
22 } else version (XXX) { // TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS
|
|
23 string lib_ext = "a";
|
|
24 } else version (TARGET_NET) {
|
|
25 } else {
|
|
26 static assert (false);
|
|
27 }
|
|
28 string doc_ext = "html";; // for Ddoc generated files
|
|
29 string ddoc_ext = "ddoc";; // for Ddoc macro include files
|
|
30 string hdr_ext = "di"; // for D 'header' import files
|
|
31 string copyright= "Copyright (c) 1999-2009 by Digital Mars";
|
|
32 string written = "written by Walter Bright";
|
|
33 ///version (TARGET_NET) {
|
|
34 /// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates.";
|
|
35 ///}
|
|
36
|
|
37 string[] path; // Array of char*'s which form the import lookup path
|
|
38 string[] filePath; // Array of char*'s which form the file import lookup path
|
|
39 int structalign = 8;
|
|
40 string version_ = "v2.032";
|
|
41
|
|
42 Param params;
|
|
43 uint errors; // number of errors reported so far
|
|
44 uint gag; // !=0 means gag reporting of errors
|
|
45
|
|
46 this()
|
|
47 {
|
|
48 params.versionids = new Array();
|
|
49 }
|
|
50 }
|
|
51
|
|
52 Global global; |