X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fparser_proc_grammar.y;h=b23683cb85711d63e4a77ba43229cca7d9711d9e;hb=51c9c861c90d7924f464947ba8140e768f2eebd9;hp=c076abd0e5a630f1db8c78e2fd5fd5d10a144a8c;hpb=aa338e1f515a21d83284c83d780d2dc075192c4d;p=m6w6%2Fext-psi diff --git a/src/parser_proc_grammar.y b/src/parser_proc_grammar.y index c076abd..b23683c 100644 --- a/src/parser_proc_grammar.y +++ b/src/parser_proc_grammar.y @@ -1,5 +1,9 @@ %code top { -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif } %code { @@ -2321,7 +2325,7 @@ static void psi_parser_proc_error(struct psi_parser *P, struct psi_plist *tokens psi_plist_get(tokens, last, &T); if (T) { - int i = (last >= 5) ? last - 5 : 0; + size_t i = (last >= 5) ? last - 5 : 0; P->error(PSI_DATA(P), T, PSI_WARNING, "PSI %s at col %u", msg, T->col); while (i <= last || T->type != PSI_T_EOS) {