Migrate built-in classes and interfaces to native C
Build / AerScript (push) Successful in 16s

This commit is contained in:
2026-11-19 16:15:05 +01:00
parent 58f604aea5
commit bcfa4c6163
8 changed files with 574 additions and 174 deletions
+3
View File
@@ -1266,6 +1266,8 @@ struct ph7_vm {
void *pStdout; /* STDOUT IO stream */
void *pStderr; /* STDERR IO stream */
sxbool bDebug; /* TRUE to enable debugging */
sxbool bInit; /* Unpublished bootstrap: errors return to bulk cleanup */
sxi32 iInitError; /* Sticky bootstrap compiler failure */
sxbool bErrReport; /* TRUE to report all runtime Error/Warning/Notice/Deprecated */
SySet *pClassJournal; /* Non-reentrant, callback-free metadata preparation */
ph7_class *pStagedClass; /* Unpublished declaration visible only to preparation */
@@ -1765,6 +1767,7 @@ PH7_PRIVATE sxi32 PH7_IsIdentifier(const char *zName, sxi32 bKeyword);
PH7_PRIVATE sxi32 PH7_IsMethodName(const char *zName);
PH7_PRIVATE sxi32 PH7_IsReservedConstant(const SyString *pName);
PH7_PRIVATE sxi32 PH7_VmCreateNativeClass(ph7_vm *pVm, const ph7_class_def *pDef);
PH7_PRIVATE sxi32 PH7_VmInstallBuiltinClasses(ph7_vm *pVm);
PH7_PRIVATE const char *PH7_ClassMethodDeclarationError(ph7_class *pClass,
const SyString *pName, sxu32 nType, sxi32 iProtection, sxi32 iFlags);
#define PH7_INTERFACE_VISIBILITY_ERROR "interface: Access type must be public"