Mercurial > projects > ldc
comparison dmd/mars.h @ 1602:a413ae7329bf
Merge DMD r243: some harmonization with D2 dmd
---
dmd/aggregate.h | 24 ++++-
dmd/attrib.c | 63 ++++++----
dmd/attrib.h | 10 +-
dmd/declaration.h | 5 +-
dmd/func.c | 337 ++++++++++++++++++++++-------------------------------
dmd/mars.c | 2 +-
dmd/mars.h | 7 +
dmd/mtype.h | 13 ++-
dmd/parse.c | 32 ++++-
dmd/parse.h | 14 ++-
dmd/scope.h | 2 +-
11 files changed, 263 insertions(+), 246 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:19 -0300 |
parents | def7a1d494fd |
children | fb2e6707ad17 |
comparison
equal
deleted
inserted
replaced
1601:49722e6e6e05 | 1602:a413ae7329bf |
---|---|
91 | 91 |
92 #define DMDV2 0 // Version 2.0 features | 92 #define DMDV2 0 // Version 2.0 features |
93 #define BREAKABI 1 // 0 if not ready to break the ABI just yet | 93 #define BREAKABI 1 // 0 if not ready to break the ABI just yet |
94 #define STRUCTTHISREF DMDV2 // if 'this' for struct is a reference, not a pointer | 94 #define STRUCTTHISREF DMDV2 // if 'this' for struct is a reference, not a pointer |
95 #define SNAN_DEFAULT_INIT DMDV2 // if floats are default initialized to signalling NaN | 95 #define SNAN_DEFAULT_INIT DMDV2 // if floats are default initialized to signalling NaN |
96 #define SARRAYVALUE DMDV2 // static arrays are value types | |
97 | |
98 // Set if C++ mangling is done by the front end | |
99 #define CPP_MANGLE (DMDV2 && (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_SOLARIS)) | |
96 | 100 |
97 /* Other targets are TARGET_LINUX, TARGET_OSX, TARGET_FREEBSD and | 101 /* Other targets are TARGET_LINUX, TARGET_OSX, TARGET_FREEBSD and |
98 * TARGET_SOLARIS, which are | 102 * TARGET_SOLARIS, which are |
99 * set on the command line via the compiler makefile. | 103 * set on the command line via the compiler makefile. |
100 */ | 104 */ |
411 MATCHconst, // match with conversion to const | 415 MATCHconst, // match with conversion to const |
412 #endif | 416 #endif |
413 MATCHexact // exact match | 417 MATCHexact // exact match |
414 }; | 418 }; |
415 | 419 |
420 typedef unsigned StorageClass; | |
421 | |
422 | |
416 void warning(Loc loc, const char *format, ...) IS_PRINTF(2); | 423 void warning(Loc loc, const char *format, ...) IS_PRINTF(2); |
417 void vwarning(Loc loc, const char *format, va_list); | 424 void vwarning(Loc loc, const char *format, va_list); |
418 void error(Loc loc, const char *format, ...) IS_PRINTF(2); | 425 void error(Loc loc, const char *format, ...) IS_PRINTF(2); |
419 void verror(Loc loc, const char *format, va_list); | 426 void verror(Loc loc, const char *format, va_list); |
420 | 427 |