Mercurial > projects > ddmd
comparison dmd/Module.d @ 73:ef02e2e203c2
Updating to dmd2.033
author | korDen |
---|---|
date | Sat, 28 Aug 2010 19:42:41 +0400 |
parents | 2e2a5c3f943a |
children | 7e0d548de9e6 |
comparison
equal
deleted
inserted
replaced
72:2e2a5c3f943a | 73:ef02e2e203c2 |
---|---|
1162 | 1162 |
1163 //printf("%s Module.search('%s', flags = %d) insearch = %d\n", toChars(), ident.toChars(), flags, insearch); | 1163 //printf("%s Module.search('%s', flags = %d) insearch = %d\n", toChars(), ident.toChars(), flags, insearch); |
1164 Dsymbol s; | 1164 Dsymbol s; |
1165 if (insearch) | 1165 if (insearch) |
1166 s = null; | 1166 s = null; |
1167 else if (searchCacheIdent is ident && searchCacheFlags == flags) | 1167 else if (searchCacheIdent == ident && searchCacheFlags == flags && searchCacheSymbol) |
1168 { | |
1168 s = searchCacheSymbol; | 1169 s = searchCacheSymbol; |
1170 //printf("%s Module.search('%s', flags = %d) insearch = %d searchCacheSymbol = %s\n", toChars(), ident.toChars(), flags, insearch, searchCacheSymbol ? searchCacheSymbol.toChars() : "null"); | |
1171 } | |
1169 else | 1172 else |
1170 { | 1173 { |
1171 insearch = 1; | 1174 insearch = 1; |
1172 s = ScopeDsymbol.search(loc, ident, flags); | 1175 s = ScopeDsymbol.search(loc, ident, flags); |
1173 insearch = 0; | 1176 insearch = 0; |