Mercurial > projects > ldc
annotate dmd/mars.h @ 881:1c2faa8325d1
Fixed 64bit problem in mtype.c with _adReverse runtime call, fixes #161 .
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sat, 10 Jan 2009 14:35:48 +0100 |
parents | 27a379f288bf |
children | a4fcc13da3cd |
rev | line source |
---|---|
159 | 1 |
2 // Compiler implementation of the D programming language | |
3 // Copyright (c) 1999-2007 by Digital Mars | |
4 // All Rights Reserved | |
5 // written by Walter Bright | |
6 // http://www.digitalmars.com | |
7 // License for redistribution is by either the Artistic License | |
8 // in artistic.txt, or the GNU General Public License in gnu.txt. | |
9 // See the included readme.txt for details. | |
10 | |
11 #ifndef DMD_MARS_H | |
12 #define DMD_MARS_H | |
13 | |
14 #ifdef __DMC__ | |
15 #pragma once | |
16 #endif /* __DMC__ */ | |
17 | |
18 #include <stdint.h> | |
305
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
19 #include <stdarg.h> |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
20 #define __STDC_FORMAT_MACROS 1 |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
21 #include <inttypes.h> |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
22 #include <stdarg.h> |
159 | 23 |
24 #ifdef __DMC__ | |
25 #ifdef DEBUG | |
26 #undef assert | |
27 #define assert(e) (static_cast<void>((e) || (printf("assert %s(%d) %s\n", __FILE__, __LINE__, #e), halt()))) | |
28 #endif | |
29 #endif | |
30 | |
31 #ifdef IN_GCC | |
32 /* Changes for the GDC compiler by David Friedman */ | |
33 #endif | |
34 | |
336 | 35 #define DMDV2 0 // Version 2.0 features |
159 | 36 #define BREAKABI 1 // 0 if not ready to break the ABI just yet |
37 | |
38 struct Array; | |
39 | |
663
6aaa3d3c1183
First part of rename to LDC.
Christian Kamm <kamm incasoftware de>
parents:
651
diff
changeset
|
40 // LDC |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
41 enum ARCH |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
42 { |
566
68d7df3f9b05
Added some sanity checks for target detection.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
550
diff
changeset
|
43 ARCHinvalid, |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
44 ARCHx86, |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
45 ARCHx86_64, |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
46 ARCHppc, |
734
6dcab994ddc3
Fold in mandel's patch for ARM from #106
Christian Kamm <kamm incasoftware de>
parents:
723
diff
changeset
|
47 ARCHppc_64, |
735
eee9efe5b51f
Attempt at getting LLVM to provide a proper target data layout. Should assert now if things are borked.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
734
diff
changeset
|
48 ARCHarm, |
eee9efe5b51f
Attempt at getting LLVM to provide a proper target data layout. Should assert now if things are borked.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
734
diff
changeset
|
49 ARCHthumb |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
50 }; |
708
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
51 enum OUTPUTFLAG |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
52 { |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
53 OUTPUTFLAGno, |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
54 OUTPUTFLAGdefault, // for the .o default |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
55 OUTPUTFLAGset // for -output |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
56 }; |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
57 |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
58 enum OS |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
59 { |
566
68d7df3f9b05
Added some sanity checks for target detection.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
550
diff
changeset
|
60 OSinvalid, |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
61 OSLinux, |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
62 OSWindows, |
637
29dc68c949b0
Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
580
diff
changeset
|
63 OSMacOSX, |
872
aa953cc960b6
Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.
Christian Kamm <kamm incasoftware de>
parents:
853
diff
changeset
|
64 OSFreeBSD, |
aa953cc960b6
Apply BlueZeniX's patch for OpenSolaris compatibility. Fixes #158.
Christian Kamm <kamm incasoftware de>
parents:
853
diff
changeset
|
65 OSSolaris, |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
66 }; |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
67 |
159 | 68 // Put command line switches in here |
69 struct Param | |
70 { | |
71 char obj; // write object file | |
72 char link; // perform link | |
73 char quiet; // suppress non-error messages | |
74 char verbose; // verbose compile | |
75 char symdebug; // insert debug symbolic information | |
76 char optimize; // run optimizer | |
77 char optimizeLevel; // optimization level | |
534
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
78 ARCH cpu; // target CPU |
7e2867ed70d9
Get rid of isLinux and isWindows in favor of global.params.os.
Christian Kamm <kamm incasoftware de>
parents:
445
diff
changeset
|
79 OS os; // target OS |
159 | 80 char is64bit; // generate 64 bit code |
81 char isLE; // generate little endian code | |
82 char scheduler; // which scheduler to use | |
83 char useDeprecated; // allow use of deprecated features | |
84 char useAssert; // generate runtime code for assert()'s | |
85 char useInvariants; // generate class invariant checks | |
86 char useIn; // generate precondition checks | |
87 char useOut; // generate postcondition checks | |
88 char useArrayBounds; // generate array bounds checks | |
89 char useSwitchError; // check for switches without a default | |
90 char useUnitTests; // generate unittest code | |
91 char useInline; // inline expand functions | |
92 char preservePaths; // !=0 means don't strip path from source file | |
93 char warnings; // enable warnings | |
94 char pic; // generate position-independent-code for shared libs | |
95 char noruntime; // code is not allowed to make implicit calls to the runtime | |
96 char novalidate;// no bitcode validation | |
97 char Dversion; // D version number | |
98 char ignoreUnsupportedPragmas; // rather than error on them | |
99 | |
100 char *argv0; // program name | |
101 Array *imppath; // array of char*'s of where to look for import modules | |
102 Array *fileImppath; // array of char*'s of where to look for file import modules | |
103 char *runtimeImppath; // char* of where to look for the core runtime | |
104 char *objdir; // .obj file output directory | |
105 char *objname; // .obj file output name | |
106 | |
107 char doDocComments; // process embedded documentation comments | |
108 char *docdir; // write documentation file to docdir directory | |
109 char *docname; // write documentation file to docname | |
110 Array *ddocfiles; // macro include files for Ddoc | |
111 | |
112 char doHdrGeneration; // process embedded documentation comments | |
113 char *hdrdir; // write 'header' file to docdir directory | |
114 char *hdrname; // write 'header' file to docname | |
115 | |
116 unsigned debuglevel; // debug level | |
117 Array *debugids; // debug identifiers | |
118 | |
119 unsigned versionlevel; // version level | |
120 Array *versionids; // version identifiers | |
121 | |
122 bool dump_source; | |
123 | |
567
aaba4f7c6d8a
Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times.
Christian Kamm <kamm incasoftware de>
parents:
550
diff
changeset
|
124 Array *defaultlibnames; // default libraries for non-debug builds |
aaba4f7c6d8a
Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times.
Christian Kamm <kamm incasoftware de>
parents:
550
diff
changeset
|
125 Array *debuglibnames; // default libraries for debug builds |
159 | 126 |
127 char *xmlname; // filename for XML output | |
128 | |
129 // Hidden debug switches | |
130 char debuga; | |
131 char debugb; | |
132 char debugc; | |
133 char debugf; | |
134 char debugr; | |
135 char debugw; | |
136 char debugx; | |
137 char debugy; | |
138 | |
139 char run; // run resulting executable | |
140 size_t runargs_length; | |
141 char** runargs; // arguments for executable | |
142 | |
143 // Linker stuff | |
144 Array *objfiles; | |
145 Array *linkswitches; | |
146 Array *libfiles; | |
147 char *deffile; | |
148 char *resfile; | |
149 char *exefile; | |
150 | |
663
6aaa3d3c1183
First part of rename to LDC.
Christian Kamm <kamm incasoftware de>
parents:
651
diff
changeset
|
151 // LDC stuff |
159 | 152 char *llvmArch; |
153 char forceBE; | |
675
bfe5229f9d8e
Disable bc output by default. Remove -dis. Add -output-bc, -output-ll, -output-s.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
154 char output_ll; |
bfe5229f9d8e
Disable bc output by default. Remove -dis. Add -output-bc, -output-ll, -output-s.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
155 char output_bc; |
bfe5229f9d8e
Disable bc output by default. Remove -dis. Add -output-bc, -output-ll, -output-s.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
156 char output_s; |
694
931333ea35c6
Allow output of only bc, ll, or s by making -of set the output type depending
Christian Kamm <kamm incasoftware de>
parents:
675
diff
changeset
|
157 char output_o; |
159 | 158 char llvmInline; |
159 char llvmAnnotate; | |
220
ccc2e6898a78
[svn r236] added initial codegen of inline asm, pretty buggy and incomplete still. see the tangotests/asm1.d test for a sample of what does
lindquist
parents:
217
diff
changeset
|
160 char useInlineAsm; |
580
7824c21a58e3
Restructure path handling a bit. Fixes #66.
Christian Kamm <kamm incasoftware de>
parents:
568
diff
changeset
|
161 char fqnNames; // use fully qualified object names |
651
5709381df7e8
Added -nodefaultlib switch do disable implicitly linked standard lib modules
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
637
diff
changeset
|
162 char noDefaultLib; |
699
ed9a9e6dd1cc
Started changing target triple stuff, part of fixing #97
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
694
diff
changeset
|
163 |
ed9a9e6dd1cc
Started changing target triple stuff, part of fixing #97
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
694
diff
changeset
|
164 // target stuff |
ed9a9e6dd1cc
Started changing target triple stuff, part of fixing #97
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
694
diff
changeset
|
165 char *targetTriple; |
735
eee9efe5b51f
Attempt at getting LLVM to provide a proper target data layout. Should assert now if things are borked.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
734
diff
changeset
|
166 char *dataLayout; |
159 | 167 }; |
168 | |
169 struct Global | |
170 { | |
171 char *mars_ext; | |
172 char *sym_ext; | |
173 char *obj_ext; | |
708
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
174 #if _WIN32 |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
175 char *obj_ext_alt; |
fd5665da3a27
Hopefully sensible command switch handling. Changed default ext to .o on Windows.
Christian Kamm <kamm incasoftware de>
parents:
699
diff
changeset
|
176 #endif |
159 | 177 char *ll_ext; |
178 char *bc_ext; | |
675
bfe5229f9d8e
Disable bc output by default. Remove -dis. Add -output-bc, -output-ll, -output-s.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
179 char *s_ext; |
159 | 180 char *doc_ext; // for Ddoc generated files |
181 char *ddoc_ext; // for Ddoc macro include files | |
182 char *hdr_ext; // for D 'header' import files | |
183 char *copyright; | |
184 char *written; | |
185 Array *path; // Array of char*'s which form the import lookup path | |
186 Array *filePath; // Array of char*'s which form the file import lookup path | |
187 int structalign; | |
188 char *version; | |
663
6aaa3d3c1183
First part of rename to LDC.
Christian Kamm <kamm incasoftware de>
parents:
651
diff
changeset
|
189 char *ldc_version; |
853
82ad6c0c601c
Add Elrood's patch to output LDC and LLVM source revs.
Christian Kamm <kamm incasoftware de>
parents:
797
diff
changeset
|
190 char *llvm_version; |
159 | 191 |
192 Param params; | |
193 unsigned errors; // number of errors reported so far | |
194 unsigned gag; // !=0 means gag reporting of errors | |
195 | |
196 Global(); | |
197 }; | |
198 | |
199 extern Global global; | |
200 | |
876
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
201 /* Set if Windows Structured Exception Handling C extensions are supported. |
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
202 * Apparently, VC has dropped support for these? |
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
203 */ |
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
204 #define WINDOWS_SEH (_WIN32 && __DMC__) |
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
205 |
27a379f288bf
Merged DMD 1.039
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
872
diff
changeset
|
206 |
159 | 207 #if __GNUC__ |
208 //#define memicmp strncasecmp | |
209 //#define stricmp strcasecmp | |
210 #endif | |
211 | |
212 #ifdef __DMC__ | |
213 typedef _Complex long double complex_t; | |
214 #else | |
215 #ifndef IN_GCC | |
216 #include "complex_t.h" | |
217 #endif | |
218 #ifdef __APPLE__ | |
219 //#include "complex.h"//This causes problems with include the c++ <complex> and not the C "complex.h" | |
220 #define integer_t dmd_integer_t | |
221 #endif | |
222 #endif | |
223 | |
224 // Be careful not to care about sign when using integer_t | |
225 typedef uint64_t integer_t; | |
226 | |
227 // Signed and unsigned variants | |
228 typedef int64_t sinteger_t; | |
229 typedef uint64_t uinteger_t; | |
230 | |
231 typedef int8_t d_int8; | |
232 typedef uint8_t d_uns8; | |
233 typedef int16_t d_int16; | |
234 typedef uint16_t d_uns16; | |
235 typedef int32_t d_int32; | |
236 typedef uint32_t d_uns32; | |
237 typedef int64_t d_int64; | |
238 typedef uint64_t d_uns64; | |
239 | |
240 typedef float d_float32; | |
241 typedef double d_float64; | |
242 typedef long double d_float80; | |
243 | |
244 typedef d_uns8 d_char; | |
245 typedef d_uns16 d_wchar; | |
246 typedef d_uns32 d_dchar; | |
247 | |
248 #ifdef IN_GCC | |
249 #include "d-gcc-real.h" | |
250 #else | |
251 typedef long double real_t; | |
252 #endif | |
253 | |
254 // Modify OutBuffer::writewchar to write the correct size of wchar | |
255 #if _WIN32 | |
256 #define writewchar writeword | |
257 #else | |
258 // This needs a configuration test... | |
259 #define writewchar write4 | |
260 #endif | |
261 | |
262 #ifdef IN_GCC | |
263 #include "d-gcc-complex_t.h" | |
264 #endif | |
265 | |
305
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
266 // taken from GDC |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
267 // for handling printf incompatibilities |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
268 #if __MSVCRT__ |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
269 #define PRIuSIZE "Iu" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
270 #define PRIxSIZE "Ix" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
271 #elif __MINGW32__ |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
272 #define PRIuSIZE "u" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
273 #define PRIxSIZE "x" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
274 #else |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
275 #define PRIuSIZE "zu" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
276 #define PRIxSIZE "zx" |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
277 #endif |
2b72433d5c8c
[svn r326] Fixed a bunch of issues with printf's that MinGW32 did not support.
lindquist
parents:
277
diff
changeset
|
278 |
159 | 279 struct Module; |
280 | |
281 //typedef unsigned Loc; // file location | |
282 struct Loc | |
283 { | |
284 char *filename; | |
285 unsigned linnum; | |
286 | |
287 Loc() | |
288 { | |
289 linnum = 0; | |
290 filename = NULL; | |
291 } | |
292 | |
293 Loc(int x) | |
294 { | |
295 linnum = x; | |
296 filename = NULL; | |
297 } | |
298 | |
299 Loc(Module *mod, unsigned linnum); | |
300 | |
301 char *toChars() const; | |
302 }; | |
303 | |
304 #ifndef GCC_SAFE_DMD | |
305 #define TRUE 1 | |
306 #define FALSE 0 | |
307 #endif | |
308 | |
309 #define INTERFACE_OFFSET 0 // if 1, put classinfo as first entry | |
310 // in interface vtbl[]'s | |
311 #define INTERFACE_VIRTUAL 0 // 1 means if an interface appears | |
312 // in the inheritance graph multiple | |
313 // times, only one is used | |
314 | |
315 enum LINK | |
316 { | |
317 LINKdefault, | |
318 LINKd, | |
319 LINKc, | |
320 LINKcpp, | |
321 LINKwindows, | |
322 LINKpascal, | |
723
55f6c2e454d7
Implemented correct parameter order according to x86-32 ABI documentation.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
708
diff
changeset
|
323 |
55f6c2e454d7
Implemented correct parameter order according to x86-32 ABI documentation.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
708
diff
changeset
|
324 // LDC |
55f6c2e454d7
Implemented correct parameter order according to x86-32 ABI documentation.
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
708
diff
changeset
|
325 LINKintrinsic, |
159 | 326 }; |
327 | |
328 enum DYNCAST | |
329 { | |
330 DYNCAST_OBJECT, | |
331 DYNCAST_EXPRESSION, | |
332 DYNCAST_DSYMBOL, | |
333 DYNCAST_TYPE, | |
334 DYNCAST_IDENTIFIER, | |
335 DYNCAST_TUPLE, | |
336 }; | |
337 | |
338 enum MATCH | |
339 { | |
340 MATCHnomatch, // no match | |
341 MATCHconvert, // match with conversions | |
336 | 342 #if DMDV2 |
159 | 343 MATCHconst, // match with conversion to const |
344 #endif | |
345 MATCHexact // exact match | |
346 }; | |
347 | |
348 void error(Loc loc, const char *format, ...); | |
349 void verror(Loc loc, const char *format, va_list); | |
350 void fatal(); | |
351 void err_nomem(); | |
352 void inifile(char *argv0, char *inifile); | |
353 void halt(); | |
354 | |
355 /*** Where to send error messages ***/ | |
797
340acf1535d0
Removed KDevelop3 project files, CMake can generate them just fine!
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
735
diff
changeset
|
356 #if IN_GCC || IN_LLVM |
159 | 357 #define stdmsg stderr |
358 #else | |
359 #define stdmsg stdout | |
360 #endif | |
361 | |
362 #endif /* DMD_MARS_H */ |