summaryrefslogtreecommitdiff
path: root/ext/standard/url_scanner_ex.c.orig
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/url_scanner_ex.c.orig')
-rw-r--r--ext/standard/url_scanner_ex.c.orig243
1 files changed, 140 insertions, 103 deletions
diff --git a/ext/standard/url_scanner_ex.c.orig b/ext/standard/url_scanner_ex.c.orig
index 8ef4c2e35..80d30531e 100644
--- a/ext/standard/url_scanner_ex.c.orig
+++ b/ext/standard/url_scanner_ex.c.orig
@@ -1,5 +1,5 @@
-/* Generated by re2c 0.9.2 on Sat Mar 13 15:56:45 2004 */
-#line 1 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+/* Generated by re2c 0.9.6 on Fri Apr 15 01:39:15 2005 */
+#line 1 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
@@ -89,7 +89,7 @@ PHP_INI_BEGIN()
STD_PHP_INI_ENTRY("url_rewriter.tags", "a=href,area=href,frame=src,form=,fieldset=", PHP_INI_ALL, OnUpdateTags, url_adapt_state_ex, php_basic_globals, basic_globals)
PHP_INI_END()
-#line 95 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 95 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
#define YYFILL(n) goto done
@@ -108,7 +108,7 @@ static inline void append_modified_url(smart_str *url, smart_str *dest, smart_st
scan:
-#line 7 "re2c-output.c"
+#line 7 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -147,44 +147,48 @@ scan:
128, 128, 128, 128, 128, 128, 128, 128,
};
goto yy0;
-yy1: ++YYCURSOR;
+ ++YYCURSOR;
yy0:
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- if(yybm[0+yych] & 128) goto yy8;
+ if(yybm[0+yych] & 128) {
+ goto yy8;
+ }
if(yych <= '9') goto yy6;
if(yych >= ';') goto yy4;
goto yy2;
-yy2: yych = *++YYCURSOR;
+yy2: ++YYCURSOR;
goto yy3;
yy3:
-#line 113 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 113 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ smart_str_append(dest, url); return; }
-#line 59 "re2c-output.c"
-yy4: yych = *++YYCURSOR;
+#line 61 "<stdout>"
+yy4: ++YYCURSOR;
goto yy5;
yy5:
-#line 114 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 114 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ sep = separator; goto scan; }
-#line 65 "re2c-output.c"
-yy6: yych = *++YYCURSOR;
+#line 67 "<stdout>"
+yy6: ++YYCURSOR;
goto yy7;
yy7:
-#line 115 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 115 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ bash = p - 1; goto done; }
-#line 71 "re2c-output.c"
+#line 73 "<stdout>"
yy8: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy9;
-yy9: if(yybm[0+yych] & 128) goto yy8;
+yy9: if(yybm[0+yych] & 128) {
+ goto yy8;
+ }
goto yy10;
yy10:
-#line 116 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 116 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ goto scan; }
-#line 81 "re2c-output.c"
+#line 86 "<stdout>"
}
-#line 117 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 117 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
done:
@@ -353,7 +357,7 @@ state_plain_begin:
state_plain:
start = YYCURSOR;
-#line 85 "re2c-output.c"
+#line 90 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -392,36 +396,40 @@ state_plain:
128, 128, 128, 128, 128, 128, 128, 128,
};
goto yy11;
-yy12: ++YYCURSOR;
+ ++YYCURSOR;
yy11:
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
- if(yybm[0+yych] & 128) goto yy15;
+ if(yybm[0+yych] & 128) {
+ goto yy15;
+ }
goto yy13;
-yy13: yych = *++YYCURSOR;
+yy13: ++YYCURSOR;
goto yy14;
yy14:
-#line 285 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 285 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_TAG; goto state_tag; }
-#line 135 "re2c-output.c"
+#line 142 "<stdout>"
yy15: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy16;
-yy16: if(yybm[0+yych] & 128) goto yy15;
+yy16: if(yybm[0+yych] & 128) {
+ goto yy15;
+ }
goto yy17;
yy17:
-#line 286 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 286 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain; }
-#line 145 "re2c-output.c"
+#line 155 "<stdout>"
}
-#line 287 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 287 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
state_tag:
start = YYCURSOR;
-#line 149 "re2c-output.c"
+#line 159 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -460,7 +468,7 @@ state_tag:
0, 0, 0, 0, 0, 0, 0, 0,
};
goto yy18;
-yy19: ++YYCURSOR;
+ ++YYCURSOR;
yy18:
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
@@ -469,26 +477,29 @@ yy18:
if(yych <= '`') goto yy22;
if(yych >= '{') goto yy22;
goto yy20;
-yy20: yych = *++YYCURSOR;
+yy20: ++YYCURSOR;
+ yych = *YYCURSOR;
goto yy25;
yy21:
-#line 292 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 292 "/usr/src/php/php_5_0/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 202 "re2c-output.c"
-yy22: yych = *++YYCURSOR;
+#line 212 "<stdout>"
+yy22: ++YYCURSOR;
goto yy23;
yy23:
-#line 293 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 293 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain_begin; }
-#line 208 "re2c-output.c"
+#line 218 "<stdout>"
yy24: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy25;
-yy25: if(yybm[0+yych] & 128) goto yy24;
+yy25: if(yybm[0+yych] & 128) {
+ goto yy24;
+ }
goto yy21;
}
-#line 294 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 294 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
state_next_arg_begin:
@@ -497,7 +508,7 @@ state_next_arg_begin:
state_next_arg:
start = YYCURSOR;
-#line 218 "re2c-output.c"
+#line 231 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -536,13 +547,13 @@ state_next_arg:
0, 0, 0, 0, 0, 0, 0, 0,
};
goto yy26;
-yy27: ++YYCURSOR;
+ ++YYCURSOR;
yy26:
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
if(yych <= '='){
- if(yych <= '\v'){
- if(yych <= '\b') goto yy34;
+ if(yych <= 0x0B){
+ if(yych <= 0x08) goto yy34;
goto yy30;
} else {
if(yych == ' ') goto yy30;
@@ -559,44 +570,47 @@ yy26:
goto yy34;
}
}
-yy28: yych = *++YYCURSOR;
+yy28: ++YYCURSOR;
goto yy29;
yy29:
-#line 302 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 302 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); handle_form(STD_ARGS); goto state_plain_begin; }
-#line 285 "re2c-output.c"
-yy30: yych = *++YYCURSOR;
+#line 298 "<stdout>"
+yy30: ++YYCURSOR;
+ yych = *YYCURSOR;
goto yy37;
yy31:
-#line 303 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 303 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_next_arg; }
-#line 291 "re2c-output.c"
-yy32: yych = *++YYCURSOR;
+#line 304 "<stdout>"
+yy32: ++YYCURSOR;
goto yy33;
yy33:
-#line 304 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 304 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ --YYCURSOR; STATE = STATE_ARG; goto state_arg; }
-#line 297 "re2c-output.c"
-yy34: yych = *++YYCURSOR;
+#line 310 "<stdout>"
+yy34: ++YYCURSOR;
goto yy35;
yy35:
-#line 305 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 305 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_plain_begin; }
-#line 303 "re2c-output.c"
+#line 316 "<stdout>"
yy36: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy37;
-yy37: if(yybm[0+yych] & 128) goto yy36;
+yy37: if(yybm[0+yych] & 128) {
+ goto yy36;
+ }
goto yy31;
}
-#line 306 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 306 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
state_arg:
start = YYCURSOR;
-#line 313 "re2c-output.c"
+#line 329 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -635,7 +649,7 @@ state_arg:
0, 0, 0, 0, 0, 0, 0, 0,
};
goto yy38;
-yy39: ++YYCURSOR;
+ ++YYCURSOR;
yy38:
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
@@ -644,32 +658,35 @@ yy38:
if(yych <= '`') goto yy42;
if(yych >= '{') goto yy42;
goto yy40;
-yy40: yych = *++YYCURSOR;
+yy40: ++YYCURSOR;
+ yych = *YYCURSOR;
goto yy45;
yy41:
-#line 311 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 311 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); handle_arg(STD_ARGS); STATE = STATE_BEFORE_VAL; goto state_before_val; }
-#line 366 "re2c-output.c"
-yy42: yych = *++YYCURSOR;
+#line 382 "<stdout>"
+yy42: ++YYCURSOR;
goto yy43;
yy43:
-#line 312 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 312 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto state_next_arg; }
-#line 372 "re2c-output.c"
+#line 388 "<stdout>"
yy44: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy45;
-yy45: if(yybm[0+yych] & 128) goto yy44;
+yy45: if(yybm[0+yych] & 128) {
+ goto yy44;
+ }
goto yy41;
}
-#line 313 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 313 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
state_before_val:
start = YYCURSOR;
-#line 382 "re2c-output.c"
+#line 401 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -708,7 +725,7 @@ state_before_val:
0, 0, 0, 0, 0, 0, 0, 0,
};
goto yy46;
-yy47: ++YYCURSOR;
+ ++YYCURSOR;
yy46:
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
@@ -721,22 +738,25 @@ yy48: yyaccept = 0;
if(yych == '=') goto yy53;
goto yy49;
yy49:
-#line 319 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 319 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ --YYCURSOR; goto state_next_arg_begin; }
-#line 436 "re2c-output.c"
-yy50: yych = *++YYCURSOR;
+#line 455 "<stdout>"
+yy50: ++YYCURSOR;
+ yych = *YYCURSOR;
goto yy54;
yy51:
-#line 318 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 318 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); STATE = STATE_VAL; goto state_val; }
-#line 442 "re2c-output.c"
+#line 461 "<stdout>"
yy52: yych = *++YYCURSOR;
goto yy49;
yy53: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy54;
-yy54: if(yybm[0+yych] & 128) goto yy53;
+yy54: if(yybm[0+yych] & 128) {
+ goto yy53;
+ }
goto yy51;
yy55: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -750,14 +770,14 @@ yy57: YYCURSOR = YYMARKER;
case 0: goto yy49;
}
}
-#line 320 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 320 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
state_val:
start = YYCURSOR;
-#line 465 "re2c-output.c"
+#line 488 "<stdout>"
{
YYCTYPE yych;
unsigned int yyaccept;
@@ -796,13 +816,13 @@ state_val:
248, 248, 248, 248, 248, 248, 248, 248,
};
goto yy58;
-yy59: ++YYCURSOR;
+ ++YYCURSOR;
yy58:
if((YYLIMIT - YYCURSOR) < 3) YYFILL(3);
yych = *YYCURSOR;
if(yych <= '!'){
- if(yych <= '\n'){
- if(yych <= '\b') goto yy63;
+ if(yych <= 0x0A){
+ if(yych <= 0x08) goto yy63;
goto yy64;
} else {
if(yych == ' ') goto yy64;
@@ -822,47 +842,56 @@ yy60: yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy77;
yy61:
-#line 328 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 328 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ handle_val(STD_ARGS, 0, '\0'); goto state_next_arg_begin; }
-#line 532 "re2c-output.c"
+#line 555 "<stdout>"
yy62: yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
goto yy69;
yy63: yych = *++YYCURSOR;
goto yy67;
-yy64: yych = *++YYCURSOR;
+yy64: ++YYCURSOR;
goto yy65;
yy65:
-#line 329 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 329 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ passthru(STD_ARGS); goto state_next_arg_begin; }
-#line 543 "re2c-output.c"
+#line 566 "<stdout>"
yy66: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy67;
-yy67: if(yybm[0+yych] & 8) goto yy66;
+yy67: if(yybm[0+yych] & 8) {
+ goto yy66;
+ }
goto yy61;
yy68: yyaccept = 0;
YYMARKER = ++YYCURSOR;
- if(YYLIMIT == YYCURSOR) YYFILL(1);
+ if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
goto yy69;
-yy69: if(yybm[0+yych] & 16) goto yy68;
+yy69: if(yybm[0+yych] & 16) {
+ goto yy68;
+ }
if(yych <= '&') goto yy72;
if(yych >= '(') goto yy61;
goto yy70;
-yy70: yych = *++YYCURSOR;
- if(yybm[0+yych] & 8) goto yy66;
+yy70: ++YYCURSOR;
+ if(yybm[0+(yych = *YYCURSOR)] & 8) {
+ yych = *YYCURSOR;
+ goto yy66;
+ }
goto yy71;
yy71:
-#line 327 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 327 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ handle_val(STD_ARGS, 1, '\''); goto state_next_arg_begin; }
-#line 565 "re2c-output.c"
+#line 595 "<stdout>"
yy72: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy73;
-yy73: if(yybm[0+yych] & 32) goto yy72;
+yy73: if(yybm[0+yych] & 32) {
+ goto yy72;
+ }
if(yych <= '=') goto yy75;
goto yy74;
yy74: YYCURSOR = YYMARKER;
@@ -873,31 +902,39 @@ yy75: yych = *++YYCURSOR;
goto yy71;
yy76: yyaccept = 0;
YYMARKER = ++YYCURSOR;
- if(YYLIMIT == YYCURSOR) YYFILL(1);
+ if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
goto yy77;
-yy77: if(yybm[0+yych] & 64) goto yy76;
+yy77: if(yybm[0+yych] & 64) {
+ goto yy76;
+ }
if(yych <= '!') goto yy80;
if(yych >= '#') goto yy61;
goto yy78;
-yy78: yych = *++YYCURSOR;
- if(yybm[0+yych] & 8) goto yy66;
+yy78: ++YYCURSOR;
+ if(yybm[0+(yych = *YYCURSOR)] & 8) {
+ yych = *YYCURSOR;
+ goto yy66;
+ }
goto yy79;
yy79:
-#line 326 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 326 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
{ handle_val(STD_ARGS, 1, '"'); goto state_next_arg_begin; }
-#line 594 "re2c-output.c"
+#line 631 "<stdout>"
yy80: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
goto yy81;
-yy81: if(yybm[0+yych] & 128) goto yy80;
+yy81: if(yybm[0+yych] & 128) {
+ goto yy80;
+ }
if(yych >= '>') goto yy74;
goto yy82;
-yy82: yych = *++YYCURSOR;
+yy82: ++YYCURSOR;
+ yych = *YYCURSOR;
goto yy79;
}
-#line 330 "/usr/src/php5/ext/standard/url_scanner_ex.re"
+#line 330 "/usr/src/php/php_5_0/ext/standard/url_scanner_ex.re"
stop:
@@ -1059,7 +1096,7 @@ int php_url_scanner_reset_vars(TSRMLS_D)
BG(url_adapt_state_ex).form_app.len = 0;
BG(url_adapt_state_ex).url_app.len = 0;
- return FAILURE;
+ return SUCCESS;
}
PHP_MINIT_FUNCTION(url_scanner)