X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.h;h=6de73890e8a2dcd6bfa6ec2fedb55f44e67af563;hp=c8416a5bb37abb67b252514c0c41462635b061ad;hb=8b652242a4ef920f2ab82bfb822596de25bc5a63;hpb=19f0eb5807fb8d0f3aa305f2476f094e66a02709 diff --git a/src/context.h b/src/context.h index c8416a5..6de7389 100644 --- a/src/context.h +++ b/src/context.h @@ -5,7 +5,7 @@ #define PSI_ERROR 16 #define PSI_WARNING 32 -typedef void (*PSI_ContextErrorFunc)(PSI_Token *token, int type, const char *msg, ...); +typedef void (*PSI_ContextErrorFunc)(void *context, PSI_Token *token, int type, const char *msg, ...); typedef struct PSI_Context PSI_Context; typedef struct PSI_ContextOps PSI_ContextOps; @@ -26,9 +26,10 @@ struct PSI_Context { size_t count; }; -PSI_Context *PSI_ContextInit(PSI_Context *C, PSI_ContextOps *ops, PSI_ContextErrorFunc error); +PSI_Context *PSI_ContextInit(PSI_Context *C, PSI_ContextOps *ops, PSI_ContextErrorFunc error, unsigned flags); void PSI_ContextBuild(PSI_Context *C, const char *path); int PSI_ContextValidate(PSI_Context *C, PSI_Parser *P); +int PSI_ContextValidateData(PSI_Data *C, PSI_Data *D); zend_function_entry *PSI_ContextCompile(PSI_Context *C); void PSI_ContextCall(PSI_Context *C, decl_callinfo *decl_call, impl_vararg *va); void PSI_ContextDump(PSI_Context *C, int fd);