From: foobar Date: Mon, 5 Sep 2005 16:25:11 +0000 (+0000) Subject: touch with working re2c X-Git-Tag: php-4.4.1RC1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b26d02ad4fff8fc77a01e3179682a7d7fddf8bb;p=php touch with working re2c --- diff --git a/ext/standard/url_scanner_ex.c b/ext/standard/url_scanner_ex.c index 83a2321fce..ce4bc7591a 100644 --- a/ext/standard/url_scanner_ex.c +++ b/ext/standard/url_scanner_ex.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.9.6 on Sun Jun 12 02:54:26 2005 */ +/* Generated by re2c 0.9.10 on Mon Sep 5 19:24:48 2005 */ #line 1 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" /* +----------------------------------------------------------------------+ @@ -109,11 +109,7 @@ static inline void append_modified_url(smart_str *url, smart_str *dest, smart_st q = (p = url->c) + url->len; scan: - -#line 7 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, @@ -148,6 +144,10 @@ scan: 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, }; + +#line 149 "" +{ + YYCTYPE yych; goto yy0; ++YYCURSOR; yy0: @@ -164,19 +164,19 @@ yy2: ++YYCURSOR; yy3: #line 115 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { smart_str_append(dest, url); return; } -#line 61 "" +#line 168 "" yy4: ++YYCURSOR; goto yy5; yy5: #line 116 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { sep = separator; goto scan; } -#line 67 "" +#line 174 "" yy6: ++YYCURSOR; goto yy7; yy7: #line 117 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { bash = p - 1; goto done; } -#line 73 "" +#line 180 "" yy8: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -188,7 +188,8 @@ yy9: if(yybm[0+yych] & 128) { yy10: #line 118 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { goto scan; } -#line 86 "" +#line 192 "" +} } #line 119 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" @@ -358,11 +359,7 @@ state_plain_begin: state_plain: start = YYCURSOR; - -#line 90 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, @@ -397,6 +394,10 @@ state_plain: 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, }; + +#line 399 "" +{ + YYCTYPE yych; goto yy11; ++YYCURSOR; yy11: @@ -411,7 +412,7 @@ yy13: ++YYCURSOR; yy14: #line 287 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); STATE = STATE_TAG; goto state_tag; } -#line 142 "" +#line 416 "" yy15: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -423,18 +424,15 @@ yy16: if(yybm[0+yych] & 128) { yy17: #line 288 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); goto state_plain; } -#line 155 "" +#line 428 "" +} } #line 289 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" state_tag: start = YYCURSOR; - -#line 159 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -469,6 +467,10 @@ state_tag: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; + +#line 472 "" +{ + YYCTYPE yych; goto yy18; ++YYCURSOR; yy18: @@ -485,13 +487,13 @@ yy20: ++YYCURSOR; yy21: #line 294 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { handle_tag(STD_ARGS); /* Sets STATE */; passthru(STD_ARGS); if (STATE == STATE_PLAIN) goto state_plain; else goto state_next_arg; } -#line 212 "" +#line 491 "" yy22: ++YYCURSOR; goto yy23; yy23: #line 295 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); goto state_plain_begin; } -#line 218 "" +#line 497 "" yy24: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -501,6 +503,7 @@ yy25: if(yybm[0+yych] & 128) { } goto yy21; } +} #line 296 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" @@ -509,11 +512,7 @@ state_next_arg_begin: state_next_arg: start = YYCURSOR; - -#line 231 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 128, 0, 0, 0, 0, @@ -548,6 +547,10 @@ state_next_arg: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; + +#line 552 "" +{ + YYCTYPE yych; goto yy26; ++YYCURSOR; yy26: @@ -577,26 +580,26 @@ yy28: ++YYCURSOR; yy29: #line 304 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); handle_form(STD_ARGS); goto state_plain_begin; } -#line 298 "" +#line 584 "" yy30: ++YYCURSOR; yych = *YYCURSOR; goto yy37; yy31: #line 305 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); goto state_next_arg; } -#line 304 "" +#line 591 "" yy32: ++YYCURSOR; goto yy33; yy33: #line 306 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { --YYCURSOR; STATE = STATE_ARG; goto state_arg; } -#line 310 "" +#line 597 "" yy34: ++YYCURSOR; goto yy35; yy35: #line 307 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); goto state_plain_begin; } -#line 316 "" +#line 603 "" yy36: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -606,16 +609,13 @@ yy37: if(yybm[0+yych] & 128) { } goto yy31; } +} #line 308 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" state_arg: start = YYCURSOR; - -#line 329 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -650,6 +650,10 @@ state_arg: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; + +#line 655 "" +{ + YYCTYPE yych; goto yy38; ++YYCURSOR; yy38: @@ -666,13 +670,13 @@ yy40: ++YYCURSOR; yy41: #line 313 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); handle_arg(STD_ARGS); STATE = STATE_BEFORE_VAL; goto state_before_val; } -#line 382 "" +#line 674 "" yy42: ++YYCURSOR; goto yy43; yy43: #line 314 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto state_next_arg; } -#line 388 "" +#line 680 "" yy44: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -682,16 +686,13 @@ yy45: if(yybm[0+yych] & 128) { } goto yy41; } +} #line 315 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" state_before_val: start = YYCURSOR; - -#line 401 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -726,6 +727,11 @@ state_before_val: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; + +#line 732 "" +{ + YYCTYPE yych; + unsigned int yyaccept; goto yy46; ++YYCURSOR; yy46: @@ -742,14 +748,14 @@ yy48: yyaccept = 0; yy49: #line 321 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { --YYCURSOR; goto state_next_arg_begin; } -#line 455 "" +#line 752 "" yy50: ++YYCURSOR; yych = *YYCURSOR; goto yy54; yy51: #line 320 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); STATE = STATE_VAL; goto state_val; } -#line 461 "" +#line 759 "" yy52: yych = *++YYCURSOR; goto yy49; yy53: ++YYCURSOR; @@ -772,17 +778,14 @@ yy57: YYCURSOR = YYMARKER; case 0: goto yy49; } } +} #line 322 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" state_val: start = YYCURSOR; - -#line 488 "" { - YYCTYPE yych; - unsigned int yyaccept; static unsigned char yybm[] = { 248, 248, 248, 248, 248, 248, 248, 248, 248, 160, 160, 248, 248, 248, 248, 248, @@ -817,6 +820,11 @@ state_val: 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, }; + +#line 825 "" +{ + YYCTYPE yych; + unsigned int yyaccept; goto yy58; ++YYCURSOR; yy58: @@ -846,7 +854,7 @@ yy60: yyaccept = 0; yy61: #line 330 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { handle_val(STD_ARGS, 0, '\0'); goto state_next_arg_begin; } -#line 555 "" +#line 858 "" yy62: yyaccept = 0; yych = *(YYMARKER = ++YYCURSOR); goto yy69; @@ -857,7 +865,7 @@ yy64: ++YYCURSOR; yy65: #line 331 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { passthru(STD_ARGS); goto state_next_arg_begin; } -#line 566 "" +#line 869 "" yy66: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -886,7 +894,7 @@ yy70: ++YYCURSOR; yy71: #line 329 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { handle_val(STD_ARGS, 1, '\''); goto state_next_arg_begin; } -#line 595 "" +#line 898 "" yy72: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -922,7 +930,7 @@ yy78: ++YYCURSOR; yy79: #line 328 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re" { handle_val(STD_ARGS, 1, '"'); goto state_next_arg_begin; } -#line 631 "" +#line 934 "" yy80: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); yych = *YYCURSOR; @@ -936,6 +944,7 @@ yy82: ++YYCURSOR; yych = *YYCURSOR; goto yy79; } +} #line 332 "/usr/src/php/php_4_4/ext/standard/url_scanner_ex.re"