Skip to content

Commit 8af0aed

Browse files
committed
Highlight all uses of IN_GCC that have been merged in the frontend.
1 parent f662f67 commit 8af0aed

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/ddmd/dsymbol.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ class Expression;
7575
class DeleteDeclaration;
7676
class OverloadSet;
7777
struct AA;
78-
#ifdef IN_GCC
78+
#ifdef IN_GCC // %%
7979
typedef union tree_node Symbol;
80-
#else
80+
#else // %%
8181
struct Symbol;
82-
#endif
82+
#endif // %%
8383

8484
struct Ungag
8585
{

src/ddmd/expression.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ class StringExp;
4949
class ArrayExp;
5050
class SliceExp;
5151
struct UnionExp;
52-
#ifdef IN_GCC
52+
#ifdef IN_GCC // %%
5353
typedef union tree_node Symbol;
54-
#else
54+
#else // %%
5555
struct Symbol; // back end symbol
56-
#endif
56+
#endif // %%
5757

5858
Expression *resolveProperties(Scope *sc, Expression *e);
5959
Expression *resolvePropertiesOnly(Scope *sc, Expression *e1);

src/ddmd/globals.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ template xversion(string s)
2323
enum xversion = mixin(`{ version (` ~ s ~ `) return true; else return false; }`)();
2424
}
2525

26-
enum IN_GCC = xversion!`IN_GCC`;
26+
enum IN_GCC = xversion!`IN_GCC`; // %%
2727

2828
enum TARGET_LINUX = xversion!`linux`;
2929
enum TARGET_OSX = xversion!`OSX`;

src/ddmd/mtype.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,11 +2863,11 @@ extern (C++) abstract class Type : RootObject
28632863
assert(0 < length && length < namelen); // don't overflow the buffer
28642864

28652865
int off = 0;
2866-
static if (!IN_GCC)
2866+
static if (!IN_GCC) // %%
28672867
{
28682868
if (global.params.isOSX || global.params.isWindows && !global.params.is64bit)
28692869
++off; // C mangling will add '_' back in
2870-
}
2870+
} // %%
28712871
auto id = Identifier.idPool(name + off, length - off);
28722872

28732873
if (name != namebuf.ptr)

src/ddmd/mtype.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class TypeBasic;
4040
class Parameter;
4141

4242
// Back end
43-
#ifdef IN_GCC
43+
#ifdef IN_GCC // %%
4444
typedef union tree_node type;
45-
#else
45+
#else // %%
4646
typedef struct TYPE type;
47-
#endif
47+
#endif // %%
4848

4949
void semanticTypeInfo(Scope *sc, Type *t);
5050
MATCH deduceType(RootObject *o, Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes, unsigned *wm = NULL, size_t inferStart = 0);

src/ddmd/statementsem.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3572,7 +3572,7 @@ else
35723572

35733573
override void visit(OnScopeStatement oss)
35743574
{
3575-
static if (!IN_GCC)
3575+
static if (!IN_GCC) // %%
35763576
{
35773577
if (oss.tok != TOKon_scope_exit)
35783578
{
@@ -3591,7 +3591,7 @@ else
35913591
return setError();
35923592
}
35933593
}
3594-
}
3594+
} // %%
35953595

35963596
sc = sc.push();
35973597
sc.tf = null;
@@ -3855,7 +3855,7 @@ void semantic(Catch c, Scope* sc)
38553855
{
38563856
//printf("Catch::semantic(%s)\n", ident.toChars());
38573857

3858-
static if (!IN_GCC)
3858+
static if (!IN_GCC) // %%
38593859
{
38603860
if (sc.os && sc.os.tok != TOKon_scope_failure)
38613861
{
@@ -3874,7 +3874,7 @@ void semantic(Catch c, Scope* sc)
38743874
error(c.loc, "cannot put catch statement inside finally block");
38753875
c.errors = true;
38763876
}
3877-
}
3877+
} // %%
38783878

38793879
auto sym = new ScopeDsymbol();
38803880
sym.parent = sc.scopesym;

0 commit comments

Comments
 (0)