Fix generated file test

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

@ -2768,7 +2768,7 @@ _match:
break; break;
case 2: case 2:
#line 2429 "upb/json/parser.rl" #line 2429 "upb/json/parser.rl"
{ p--; {stack[top++] = cs; cs = 23; goto _again;} } { p--; {stack[top++] = cs; cs = 23;goto _again;} }
break; break;
case 3: case 3:
#line 2433 "upb/json/parser.rl" #line 2433 "upb/json/parser.rl"
@ -2842,17 +2842,17 @@ _match:
#line 2488 "upb/json/parser.rl" #line 2488 "upb/json/parser.rl"
{ {
if (is_wellknown_msg(parser, UPB_WELLKNOWN_TIMESTAMP)) { if (is_wellknown_msg(parser, UPB_WELLKNOWN_TIMESTAMP)) {
{stack[top++] = cs; cs = 47; goto _again;} {stack[top++] = cs; cs = 47;goto _again;}
} else if (is_wellknown_msg(parser, UPB_WELLKNOWN_DURATION)) { } else if (is_wellknown_msg(parser, UPB_WELLKNOWN_DURATION)) {
{stack[top++] = cs; cs = 40; goto _again;} {stack[top++] = cs; cs = 40;goto _again;}
} else { } else {
{stack[top++] = cs; cs = 32; goto _again;} {stack[top++] = cs; cs = 32;goto _again;}
} }
} }
break; break;
case 21: case 21:
#line 2499 "upb/json/parser.rl" #line 2499 "upb/json/parser.rl"
{ p--; {stack[top++] = cs; cs = 75; goto _again;} } { p--; {stack[top++] = cs; cs = 75;goto _again;} }
break; break;
case 22: case 22:
#line 2504 "upb/json/parser.rl" #line 2504 "upb/json/parser.rl"
@ -2964,7 +2964,9 @@ _again:
switch ( *__acts++ ) { switch ( *__acts++ ) {
case 0: case 0:
#line 2425 "upb/json/parser.rl" #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; break;
case 30: case 30:
#line 2556 "upb/json/parser.rl" #line 2556 "upb/json/parser.rl"
@ -2986,7 +2988,7 @@ _again:
#line 2568 "upb/json/parser.rl" #line 2568 "upb/json/parser.rl"
{ end_subobject_full(parser); } { end_subobject_full(parser); }
break; 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); parse(parser, hd, &eof_ch, 0, NULL);
return parser->current_state >= return parser->current_state >= 103;
#line 3030 "upb/json/parser.c"
103
#line 2631 "upb/json/parser.rl"
;
} }
static void json_parser_reset(upb_json_parser *p) { 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. */ /* Emit Ragel initialization of the parser. */
#line 3050 "upb/json/parser.c" #line 3048 "upb/json/parser.c"
{ {
cs = json_start; cs = json_start;
top = 0; top = 0;

Loading…
Cancel
Save