- make PClass not inherit from PStruct.

Having these two types related can cause problems with detection in the compiler because for some parts they need quite different handling.
Common handling for the fields has been moved into PSymbolTable but overall redundancy was quite minor as both types share surprisingly little functionality.
This commit is contained in:
Christoph Oelckers 2017-04-12 17:21:13 +02:00
commit 96631e8808
12 changed files with 221 additions and 237 deletions

View file

@ -667,7 +667,7 @@ static int CompareClassNames(const Desc& a, const Desc& b)
//
//==========================================================================
AFuncDesc *FindFunction(PStruct *cls, const char * string)
AFuncDesc *FindFunction(PContainerType *cls, const char * string)
{
int min = 0, max = AFTable.Size() - 1;
@ -698,7 +698,7 @@ AFuncDesc *FindFunction(PStruct *cls, const char * string)
//
//==========================================================================
FieldDesc *FindField(PStruct *cls, const char * string)
FieldDesc *FindField(PContainerType *cls, const char * string)
{
int min = 0, max = FieldTable.Size() - 1;
const char * cname = cls ? cls->TypeName.GetChars() : "";