@@ -157,13 +157,13 @@ unicode \\u[0-9A-Fa-f]{4}
157
157
158
158
<xNONQUOTED,xQUOTED>{unicode}+ { parseUnicode(yytext, yyleng); }
159
159
160
- <xNONQUOTED,xQUOTED>\\ u { yyerror(" Unicode sequence is invalid" ); }
160
+ <xNONQUOTED,xQUOTED>\\ u { yyerror(NULL, " Unicode sequence is invalid" ); }
161
161
162
- <xNONQUOTED,xQUOTED>\\ . { yyerror(" Escape sequence is invalid" ); }
162
+ <xNONQUOTED,xQUOTED>\\ . { yyerror(NULL, " Escape sequence is invalid" ); }
163
163
164
- <xNONQUOTED,xQUOTED>\\ { yyerror(" Unexpected end after backslesh" ); }
164
+ <xNONQUOTED,xQUOTED>\\ { yyerror(NULL, " Unexpected end after backslesh" ); }
165
165
166
- <xQUOTED><<EOF>> { yyerror(" Unexpected end of quoted string" ); }
166
+ <xQUOTED><<EOF>> { yyerror(NULL, " Unexpected end of quoted string" ); }
167
167
168
168
<xQUOTED>\" {
169
169
yylval->str = scanstring;
@@ -186,12 +186,12 @@ unicode \\u[0-9A-Fa-f]{4}
186
186
187
187
<xCOMMENT>\* { addchar(false, '*'); }
188
188
189
- <xCOMMENT><<EOF>> { yyerror(" Unexpected end of comment" ); }
189
+ <xCOMMENT><<EOF>> { yyerror(NULL, " Unexpected end of comment" ); }
190
190
191
191
%%
192
192
193
193
void
194
- yyerror(const char *message)
194
+ yyerror(JsQueryParseItem **result, const char *message)
195
195
{
196
196
if (*yytext == YY_END_OF_BUFFER_CHAR)
197
197
{
@@ -384,7 +384,7 @@ parsejsquery(const char *str, int len) {
384
384
jsquery_scanner_init (str, len);
385
385
386
386
if (jsquery_yyparse ((void *)&parseresult) != 0 )
387
- jsquery_yyerror (" bugus input" );
387
+ jsquery_yyerror (NULL , " bugus input" );
388
388
389
389
jsquery_scanner_finish ();
390
390
0 commit comments