Mercurial > projects > ddmd
diff dmd/StructDeclaration.d @ 13:427f8aa74d28
On the road to make Phobos compilable
author | korDen |
---|---|
date | Mon, 12 Apr 2010 16:29:33 +0400 |
parents | 10317f0c89a5 |
children | 0aa7d1437ada |
line wrap: on
line diff
--- a/dmd/StructDeclaration.d Mon Apr 12 15:13:00 2010 +0400 +++ b/dmd/StructDeclaration.d Mon Apr 12 16:29:33 2010 +0400 @@ -145,7 +145,7 @@ { Dsymbol s = cast(Dsymbol)members.data[i]; //printf("adding member '%s' to '%s'\n", s.toChars(), this.toChars()); - s.addMember(sc, this, 1); + s.addMember(sc, this, true); if (s.isFuncDeclaration()) hasfunctions = 1; } @@ -266,7 +266,7 @@ ScopeDsymbol ss = fdx.parent.isScopeDsymbol(); assert(ss); ss.members.push(cast(void*)fdptr); - fdptr.addMember(sc, ss, 1); + fdptr.addMember(sc, ss, true); fdptr.semantic(sc2); } } @@ -517,7 +517,7 @@ fop.fbody = new CompoundStatement(Loc(0), s1, s2); members.push(cast(void*)fop); - fop.addMember(sc, this, 1); + fop.addMember(sc, this, true); sc = sc.push(); sc.stc = STC.STCundefined;