ext/thin_parser/parser.c in thin-0.7.1 vs ext/thin_parser/parser.c in thin-0.8.0
- old
+ new
@@ -482,52 +482,44 @@
goto _out20;
case 20:
#line 485 "parser.c"
switch( (*p) ) {
case 32: goto tr30;
+ case 35: goto st0;
case 37: goto tr31;
- case 60: goto st0;
- case 62: goto st0;
case 127: goto st0;
}
- if ( (*p) > 31 ) {
- if ( 34 <= (*p) && (*p) <= 35 )
- goto st0;
- } else if ( (*p) >= 0 )
+ if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
goto tr29;
tr29:
#line 22 "parser.rl"
{MARK(mark, p); }
goto st21;
st21:
if ( ++p == pe )
goto _out21;
case 21:
-#line 507 "parser.c"
+#line 503 "parser.c"
switch( (*p) ) {
case 32: goto tr30;
+ case 35: goto st0;
case 37: goto st22;
- case 60: goto st0;
- case 62: goto st0;
case 127: goto st0;
}
- if ( (*p) > 31 ) {
- if ( 34 <= (*p) && (*p) <= 35 )
- goto st0;
- } else if ( (*p) >= 0 )
+ if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
goto st21;
tr31:
#line 22 "parser.rl"
{MARK(mark, p); }
goto st22;
st22:
if ( ++p == pe )
goto _out22;
case 22:
-#line 529 "parser.c"
+#line 521 "parser.c"
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st23;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
@@ -554,11 +546,11 @@
goto st24;
st24:
if ( ++p == pe )
goto _out24;
case 24:
-#line 560 "parser.c"
+#line 552 "parser.c"
switch( (*p) ) {
case 43: goto st24;
case 58: goto st25;
}
if ( (*p) < 48 ) {
@@ -579,18 +571,15 @@
goto st25;
st25:
if ( ++p == pe )
goto _out25;
case 25:
-#line 585 "parser.c"
+#line 577 "parser.c"
switch( (*p) ) {
case 32: goto tr8;
- case 34: goto st0;
case 35: goto tr9;
case 37: goto st26;
- case 60: goto st0;
- case 62: goto st0;
case 127: goto st0;
}
if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
goto st25;
@@ -626,19 +615,16 @@
goto st28;
st28:
if ( ++p == pe )
goto _out28;
case 28:
-#line 632 "parser.c"
+#line 621 "parser.c"
switch( (*p) ) {
case 32: goto tr40;
- case 34: goto st0;
case 35: goto tr41;
case 37: goto st29;
case 59: goto tr43;
- case 60: goto st0;
- case 62: goto st0;
case 63: goto tr44;
case 127: goto st0;
}
if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
@@ -679,18 +665,15 @@
goto st31;
st31:
if ( ++p == pe )
goto _out31;
case 31:
-#line 685 "parser.c"
+#line 671 "parser.c"
switch( (*p) ) {
case 32: goto tr8;
- case 34: goto st0;
case 35: goto tr9;
case 37: goto st32;
- case 60: goto st0;
- case 62: goto st0;
case 63: goto st34;
case 127: goto st0;
}
if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
@@ -731,18 +714,15 @@
goto st34;
st34:
if ( ++p == pe )
goto _out34;
case 34:
-#line 737 "parser.c"
+#line 720 "parser.c"
switch( (*p) ) {
case 32: goto tr51;
- case 34: goto st0;
case 35: goto tr52;
case 37: goto tr53;
- case 60: goto st0;
- case 62: goto st0;
case 127: goto st0;
}
if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
goto tr50;
@@ -752,18 +732,15 @@
goto st35;
st35:
if ( ++p == pe )
goto _out35;
case 35:
-#line 758 "parser.c"
+#line 738 "parser.c"
switch( (*p) ) {
case 32: goto tr55;
- case 34: goto st0;
case 35: goto tr56;
case 37: goto st36;
- case 60: goto st0;
- case 62: goto st0;
case 127: goto st0;
}
if ( 0 <= (*p) && (*p) <= 31 )
goto st0;
goto st35;
@@ -773,11 +750,11 @@
goto st36;
st36:
if ( ++p == pe )
goto _out36;
case 36:
-#line 779 "parser.c"
+#line 756 "parser.c"
if ( (*p) < 65 ) {
if ( 48 <= (*p) && (*p) <= 57 )
goto st37;
} else if ( (*p) > 70 ) {
if ( 97 <= (*p) && (*p) <= 102 )
@@ -1203,11 +1180,11 @@
assert(parser->field_start < len && "field starts after buffer end");
if(parser->body_start) {
/* final \r\n combo encountered so stop right here */
-#line 1209 "parser.c"
+#line 1186 "parser.c"
#line 130 "parser.rl"
parser->nread++;
}
return(parser->nread);
@@ -1216,10 +1193,10 @@
int http_parser_finish(http_parser *parser)
{
int cs = parser->cs;
-#line 1222 "parser.c"
+#line 1199 "parser.c"
#line 141 "parser.rl"
parser->cs = cs;
if (http_parser_has_error(parser) ) {