Mercurial > projects > ldc
comparison dmd2/dsymbol.c @ 1577:e4f7b5d9c68a
DMD 2.032 Merge.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 08 Sep 2009 10:07:56 +0100 |
parents | 54b3c1394d62 |
children |
comparison
equal
deleted
inserted
replaced
1576:4551475bc6b6 | 1577:e4f7b5d9c68a |
---|---|
167 char *Dsymbol::toChars() | 167 char *Dsymbol::toChars() |
168 { | 168 { |
169 return ident ? ident->toChars() : (char *)"__anonymous"; | 169 return ident ? ident->toChars() : (char *)"__anonymous"; |
170 } | 170 } |
171 | 171 |
172 char *Dsymbol::toPrettyChars() | 172 const char *Dsymbol::toPrettyChars() |
173 { Dsymbol *p; | 173 { Dsymbol *p; |
174 char *s; | 174 char *s; |
175 char *q; | 175 char *q; |
176 size_t len; | 176 size_t len; |
177 | 177 |
450 int Dsymbol::isDeprecated() | 450 int Dsymbol::isDeprecated() |
451 { | 451 { |
452 return FALSE; | 452 return FALSE; |
453 } | 453 } |
454 | 454 |
455 #if DMDV2 | |
455 int Dsymbol::isOverloadable() | 456 int Dsymbol::isOverloadable() |
456 { | 457 { |
457 return 0; | 458 return 0; |
458 } | 459 } |
460 #endif | |
459 | 461 |
460 LabelDsymbol *Dsymbol::isLabel() // is this a LabelDsymbol()? | 462 LabelDsymbol *Dsymbol::isLabel() // is this a LabelDsymbol()? |
461 { | 463 { |
462 return NULL; | 464 return NULL; |
463 } | 465 } |
693 #endif | 695 #endif |
694 } | 696 } |
695 | 697 |
696 /********************************* OverloadSet ****************************/ | 698 /********************************* OverloadSet ****************************/ |
697 | 699 |
700 #if DMDV2 | |
698 OverloadSet::OverloadSet() | 701 OverloadSet::OverloadSet() |
699 : Dsymbol() | 702 : Dsymbol() |
700 { | 703 { |
701 } | 704 } |
702 | 705 |
707 | 710 |
708 const char *OverloadSet::kind() | 711 const char *OverloadSet::kind() |
709 { | 712 { |
710 return "overloadset"; | 713 return "overloadset"; |
711 } | 714 } |
715 #endif | |
712 | 716 |
713 | 717 |
714 /********************************* ScopeDsymbol ****************************/ | 718 /********************************* ScopeDsymbol ****************************/ |
715 | 719 |
716 ScopeDsymbol::ScopeDsymbol() | 720 ScopeDsymbol::ScopeDsymbol() |