X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Fcontext.c;h=825682d46624f3be6eddeaf0f06a094f04967771;hp=2b91f43adfe294c5bb5c7ff82f30b619feef59a1;hb=be3ceffdd27422aae6ba44d31d868fb12d08957a;hpb=4a49fe2f8eb21cdeabb06acec7a0395b6708d911 diff --git a/src/context.c b/src/context.c index 2b91f43..825682d 100644 --- a/src/context.c +++ b/src/context.c @@ -6,6 +6,7 @@ #include "php.h" #include "php_scandir.h" #include "context.h" +#include "validator.h" PSI_Context *PSI_ContextInit(PSI_Context *C, PSI_ContextOps *ops, PSI_ContextErrorFunc error) { @@ -48,7 +49,7 @@ void PSI_ContextBuild(PSI_Context *C, const char *path) C->error(PSI_WARNING, "Path to PSI file too long: %s/%s", path, entries[i]->d_name); } - if (!PSI_ParserInit(&P, psi, psi_error, 0)) { + if (!PSI_ParserInit(&P, psi, C->error, 0)) { C->error(PSI_WARNING, "Failed to init PSI parser (%s): %s", psi, strerror(errno)); continue;