annotate dmd/Global.d @ 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.
author Robert Clipsham <robert@octarineparrot.com>
date Sun, 04 Apr 2010 02:06:32 +0100
parents 10317f0c89a5
children ef02e2e203c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.Global;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 import dmd.Array;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.Param;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 class Global
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 string mars_ext = "d";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 string sym_ext = "d";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 version (TARGET_WINDOS) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 string obj_ext = "o";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 } else version (TARGET_NET) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 } else {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 static assert (false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 version (TARGET_WINDOS) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
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
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 string lib_ext = "a";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 } else version (TARGET_NET) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 } else {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 static assert (false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 string doc_ext = "html";; // for Ddoc generated files
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 string ddoc_ext = "ddoc";; // for Ddoc macro include files
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 string hdr_ext = "di"; // for D 'header' import files
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 string copyright= "Copyright (c) 1999-2009 by Digital Mars";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 string written = "written by Walter Bright";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 ///version (TARGET_NET) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 /// "\nMSIL back-end (alpha release) by Cristian L. Vlasceanu and associates.";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 ///}
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 string[] path; // Array of char*'s which form the import lookup path
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38 string[] filePath; // Array of char*'s which form the file import lookup path
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39 int structalign = 8;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
40 string version_ = "v2.032";
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 Param params;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 uint errors; // number of errors reported so far
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44 uint gag; // !=0 means gag reporting of errors
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
45
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
46 this()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
47 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
48 params.versionids = new Array();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
49 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
50 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
51
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
52 Global global;