projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/ext-psi]
/
src
/
context.c
diff --git
a/src/context.c
b/src/context.c
index 2b91f43adfe294c5bb5c7ff82f30b619feef59a1..825682d46624f3be6eddeaf0f06a094f04967771 100644
(file)
--- a/
src/context.c
+++ b/
src/context.c
@@
-6,6
+6,7
@@
#include "php.h"
#include "php_scandir.h"
#include "context.h"
#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)
{
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);
}
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;
C->error(PSI_WARNING, "Failed to init PSI parser (%s): %s",
psi, strerror(errno));
continue;