cvs: /php4/ext/standard url_scanner.c url_scanner.re

From: Date: Sat, 27 Nov 1999 16:16:05 +0000
Subject: cvs: /php4/ext/standard url_scanner.c url_scanner.re
Groups: php.version4 
Request: Send a blank email to php-version4+get-6968@lists.php.net to get a copy of this message
sas Sat Nov 27 11:16:05 1999 EDT Modified files: /php4/ext/standard url_scanner.c url_scanner.re Log: Only compile the scanner, if trans_sid is enabled Index: php4/ext/standard/url_scanner.c diff -u php4/ext/standard/url_scanner.c:1.11 php4/ext/standard/url_scanner.c:1.12 --- php4/ext/standard/url_scanner.c:1.11 Tue Nov 9 08:57:11 1999 +++ php4/ext/standard/url_scanner.c Sat Nov 27 11:15:35 1999 @@ -1,4 +1,4 @@ -/* Generated by re2c 0.5 on Tue Nov 9 14:56:27 1999 */ +/* Generated by re2c 0.5 on Sat Nov 27 16:22:34 1999 */ #line 1 "../../../php4/ext/standard/url_scanner.re" /* +----------------------------------------------------------------------+ @@ -17,11 +17,13 @@ | Author: Sascha Schumann <sascha@schumann.cx> | +----------------------------------------------------------------------+ */ -/* $Id: url_scanner.c,v 1.11 1999/11/09 13:57:11 sas Exp $ */ +/* $Id: url_scanner.c,v 1.12 1999/11/27 16:15:35 sas Exp $ */ #include "php.h" #include "snprintf.h" +#ifdef TRANS_SID + #include <sys/types.h> #include <stdio.h> #include <stdlib.h> @@ -125,7 +127,7 @@ ATTACH(state->start, (state->crs - state->start)); } -#line 142 +#line 144 static void url_scanner(lexdata *state) @@ -161,11 +163,11 @@ default: goto yy4; } yy6: -#line 155 +#line 157 { BEGIN(INITIAL); } yy7: yych = *++YYCURSOR; yy8: -#line 156 +#line 158 { FINISH; } yy9: yych = *++YYCURSOR; switch(yych){ @@ -251,7 +253,7 @@ default: goto yy26; } yy26: -#line 153 +#line 155 { BEGIN(REF); } yy27: yych = *++YYCURSOR; switch(yych){ @@ -305,7 +307,7 @@ default: goto yy38; } yy38: -#line 151 +#line 153 { BEGIN(REF); } yy39: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); @@ -373,7 +375,7 @@ default: goto yy53; } yy53: -#line 154 +#line 156 { BEGIN(REF); } yy54: yych = *++YYCURSOR; switch(yych){ @@ -408,10 +410,10 @@ default: goto yy61; } yy61: -#line 152 +#line 154 { BEGIN(REF); } } -#line 157 +#line 159 break; case REF: @@ -432,7 +434,7 @@ default: goto yy67; } yy64: -#line 161 +#line 163 { BEGIN(INITIAL); } yy65: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); @@ -460,7 +462,7 @@ } yy69: yych = *++YYCURSOR; yy70: YYCURSOR -= 1; -#line 162 +#line 164 { BEGIN(INITIAL); } yy71: ++YYCURSOR; if(YYLIMIT == YYCURSOR) YYFILL(1); @@ -473,7 +475,7 @@ default: goto yy71; } yy73: -#line 163 +#line 165 { /* don't modify absolute links */ state->state = INITIAL; BEGIN(INITIAL); @@ -501,7 +503,7 @@ yy79: yych = *++YYCURSOR; goto yy64; } -#line 167 +#line 169 break; } @@ -530,3 +532,5 @@ return state.target; } + +#endif Index: php4/ext/standard/url_scanner.re diff -u php4/ext/standard/url_scanner.re:1.8 php4/ext/standard/url_scanner.re:1.9 --- php4/ext/standard/url_scanner.re:1.8 Tue Nov 9 08:57:11 1999 +++ php4/ext/standard/url_scanner.re Sat Nov 27 11:15:35 1999 @@ -15,11 +15,13 @@ | Author: Sascha Schumann <sascha@schumann.cx> | +----------------------------------------------------------------------+ */ -/* $Id: url_scanner.re,v 1.8 1999/11/09 13:57:11 sas Exp $ */ +/* $Id: url_scanner.re,v 1.9 1999/11/27 16:15:35 sas Exp $ */ #include "php.h" #include "snprintf.h" +#ifdef TRANS_SID + #include <sys/types.h> #include <stdio.h> #include <stdlib.h> @@ -192,3 +194,5 @@ return state.target; } + +#endif

« previous php.version4 (#6968) next »