Store a pointer to class container to reduce memory usage.
All checks were successful
The build was successful.
All checks were successful
The build was successful.
This commit is contained in:
@@ -1066,8 +1066,8 @@ struct ph7_class {
|
||||
* in an instance of the following structure.
|
||||
*/
|
||||
struct ph7_class_attr {
|
||||
SyString sClass; /* Class name */
|
||||
SyString sName; /* Attribute name */
|
||||
ph7_class *pClass; /* Class, the attribute was declared */
|
||||
sxi32 iFlags; /* Attribute configuration [i.e: static, variable, constant, etc.] */
|
||||
sxi32 iProtection; /* Protection level [i.e: public, private, protected] */
|
||||
SySet aByteCode; /* Compiled attribute body */
|
||||
@@ -1757,7 +1757,7 @@ PH7_PRIVATE sxi32 PH7_ParseIniString(ph7_context *pCtx, const char *zIn, sxu32 n
|
||||
/* oo.c function prototypes */
|
||||
PH7_PRIVATE ph7_class_info *PH7_NewClassInfo(ph7_vm *pVm, const SyString *pName);
|
||||
PH7_PRIVATE ph7_class *PH7_NewRawClass(ph7_vm *pVm, const SyString *pName);
|
||||
PH7_PRIVATE ph7_class_attr *PH7_NewClassAttr(ph7_vm *pVm, const SyString *pClass, const SyString *pName, sxu32 nLine, sxi32 iProtection, sxi32 iFlags, sxu32 nType);
|
||||
PH7_PRIVATE ph7_class_attr *PH7_NewClassAttr(ph7_vm *pVm, ph7_class *pClass, const SyString *pName, sxu32 nLine, sxi32 iProtection, sxi32 iFlags, sxu32 nType);
|
||||
PH7_PRIVATE ph7_class_method *PH7_NewClassMethod(ph7_vm *pVm, ph7_class *pClass, const SyString *pName, sxu32 nLine,
|
||||
sxi32 iProtection, sxi32 iFlags, sxi32 iFuncFlags);
|
||||
PH7_PRIVATE ph7_class_method *PH7_ClassExtractMethod(ph7_class *pClass, const char *zName, sxu32 nByte);
|
||||
|
Reference in New Issue
Block a user