mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-30 11:00:05 +02:00
Merged DMD 2.021 frontend.
Removed generated files from dmd/dmd2 dirs.
This commit is contained in:
@@ -40,6 +40,7 @@ enum LINK;
|
||||
|
||||
struct TypeBasic;
|
||||
struct HdrGenState;
|
||||
struct Argument;
|
||||
|
||||
// Back end
|
||||
#if IN_GCC
|
||||
@@ -227,9 +228,10 @@ struct Type : Object
|
||||
virtual int isAssignable();
|
||||
virtual int checkBoolean(); // if can be converted to boolean value
|
||||
virtual void checkDeprecated(Loc loc, Scope *sc);
|
||||
int isConst() { return mod == MODconst; }
|
||||
int isInvariant() { return mod == MODinvariant; }
|
||||
int isMutable() { return mod == 0; }
|
||||
int isConst() { return mod & MODconst; }
|
||||
int isInvariant() { return mod & MODinvariant; }
|
||||
int isMutable() { return !(mod & (MODconst | MODinvariant)); }
|
||||
int isShared() { return mod & MODshared; }
|
||||
Type *constOf();
|
||||
Type *invariantOf();
|
||||
Type *mutableOf();
|
||||
@@ -490,6 +492,7 @@ struct TypeFunction : TypeNext
|
||||
#if TARGET_LINUX
|
||||
void toCppMangle(OutBuffer *buf, CppMangleState *cms);
|
||||
#endif
|
||||
bool parameterEscapes(Argument *p);
|
||||
|
||||
int callMatch(Expression *ethis, Expressions *toargs);
|
||||
type *toCtype();
|
||||
|
||||
Reference in New Issue
Block a user