Fix generated file test

pull/13171/head
Bo Yang 6 years ago
parent 375a25423e
commit 99600b4a0e
  1. 14
      upb/json/parser.c

@ -2964,7 +2964,9 @@ _again:
switch ( *__acts++ ) {
case 0:
#line 2425 "upb/json/parser.rl"
{ p--; {cs = stack[--top]; goto _again;} }
{ p--; {cs = stack[--top]; if ( p == pe )
goto _test_eof;
goto _again;} }
break;
case 30:
#line 2556 "upb/json/parser.rl"
@ -2986,7 +2988,7 @@ _again:
#line 2568 "upb/json/parser.rl"
{ end_subobject_full(parser); }
break;
#line 2990 "upb/json/parser.c"
#line 2992 "upb/json/parser.c"
}
}
}
@ -3025,11 +3027,7 @@ static bool end(void *closure, const void *hd) {
parse(parser, hd, &eof_ch, 0, NULL);
return parser->current_state >=
#line 3030 "upb/json/parser.c"
103
#line 2631 "upb/json/parser.rl"
;
return parser->current_state >= 103;
}
static void json_parser_reset(upb_json_parser *p) {
@ -3046,7 +3044,7 @@ static void json_parser_reset(upb_json_parser *p) {
/* Emit Ragel initialization of the parser. */
#line 3050 "upb/json/parser.c"
#line 3048 "upb/json/parser.c"
{
cs = json_start;
top = 0;

Loading…
Cancel
Save