- 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:
parent
0d7b7d6ab1
commit
96631e8808
12 changed files with 221 additions and 237 deletions
|
|
@ -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() : "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue