Mercurial > projects > ddmd
comparison dmd/AnonDeclaration.d @ 169:e7769d53e750
Moves static variables from Module to Global
author | korDen |
---|---|
date | Thu, 30 Sep 2010 13:29:54 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
168:ceed63f310fb | 169:e7769d53e750 |
---|---|
11 import dmd.AggregateDeclaration; | 11 import dmd.AggregateDeclaration; |
12 import dmd.AnonymousAggregateDeclaration; | 12 import dmd.AnonymousAggregateDeclaration; |
13 import dmd.STC; | 13 import dmd.STC; |
14 import dmd.Module; | 14 import dmd.Module; |
15 import dmd.VarDeclaration; | 15 import dmd.VarDeclaration; |
16 import dmd.Global; | |
16 | 17 |
17 class AnonDeclaration : AttribDeclaration | 18 class AnonDeclaration : AttribDeclaration |
18 { | 19 { |
19 int isunion; | 20 int isunion; |
20 int sem = 0; // 1 if successful semantic() | 21 int sem = 0; // 1 if successful semantic() |
108 //printf("\tforward reference %p\n", this); | 109 //printf("\tforward reference %p\n", this); |
109 return; | 110 return; |
110 } | 111 } |
111 if (sem == 0) | 112 if (sem == 0) |
112 { | 113 { |
113 Module.dprogress++; | 114 global.dprogress++; |
114 sem = 1; | 115 sem = 1; |
115 //printf("\tcompleted %p\n", this); | 116 //printf("\tcompleted %p\n", this); |
116 } | 117 } |
117 else { | 118 else { |
118 ;//printf("\talready completed %p\n", this); | 119 ;//printf("\talready completed %p\n", this); |