summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-27 16:15:35 +0000
committerSascha Schumann <sas@php.net>1999-11-27 16:15:35 +0000
commitb6e6dddc3000221d78b38d6f8b11b3397c9cc5a8 (patch)
tree6d3ff97dc488e127398c41048a2d8f3aca199bf5
parent64a9858874a515e1785c12e002a497520c538582 (diff)
downloadphp-git-b6e6dddc3000221d78b38d6f8b11b3397c9cc5a8.tar.gz
Only compile the scanner, if trans_sid is enabled
-rw-r--r--ext/standard/url_scanner.c30
-rw-r--r--ext/standard/url_scanner.re4
2 files changed, 21 insertions, 13 deletions
diff --git a/ext/standard/url_scanner.c b/ext/standard/url_scanner.c
index cff296f975..c6c14d31af 100644
--- a/ext/standard/url_scanner.c
+++ b/ext/standard/url_scanner.c
@@ -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"
/*
+----------------------------------------------------------------------+
@@ -22,6 +22,8 @@
#include "php.h"
#include "snprintf.h"
+#ifdef TRANS_SID
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
@@ -125,7 +127,7 @@ static void catchup(lexdata *state)
ATTACH(state->start, (state->crs - state->start));
}
-#line 142
+#line 144
static void url_scanner(lexdata *state)
@@ -161,11 +163,11 @@ yy5: switch(yych){
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 @@ yy25: switch(yych){
default: goto yy26;
}
yy26:
-#line 153
+#line 155
{ BEGIN(REF); }
yy27: yych = *++YYCURSOR;
switch(yych){
@@ -305,7 +307,7 @@ yy37: switch(yych){
default: goto yy38;
}
yy38:
-#line 151
+#line 153
{ BEGIN(REF); }
yy39: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -373,7 +375,7 @@ yy52: switch(yych){
default: goto yy53;
}
yy53:
-#line 154
+#line 156
{ BEGIN(REF); }
yy54: yych = *++YYCURSOR;
switch(yych){
@@ -408,10 +410,10 @@ yy60: switch(yych){
default: goto yy61;
}
yy61:
-#line 152
+#line 154
{ BEGIN(REF); }
}
-#line 157
+#line 159
break;
case REF:
@@ -432,7 +434,7 @@ yy62:
default: goto yy67;
}
yy64:
-#line 161
+#line 163
{ BEGIN(INITIAL); }
yy65: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -460,7 +462,7 @@ yy68: switch(yych){
}
yy69: yych = *++YYCURSOR;
yy70: YYCURSOR -= 1;
-#line 162
+#line 164
{ BEGIN(INITIAL); }
yy71: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -473,7 +475,7 @@ yy72: switch(yych){
default: goto yy71;
}
yy73:
-#line 163
+#line 165
{
/* don't modify absolute links */
state->state = INITIAL; BEGIN(INITIAL);
@@ -501,7 +503,7 @@ yy78: switch(yych){
yy79: yych = *++YYCURSOR;
goto yy64;
}
-#line 167
+#line 169
break;
}
@@ -530,3 +532,5 @@ char *url_adapt(const char *src, size_t srclen, const char *data, size_t *newlen
return state.target;
}
+
+#endif
diff --git a/ext/standard/url_scanner.re b/ext/standard/url_scanner.re
index 49027ccc47..2939582b68 100644
--- a/ext/standard/url_scanner.re
+++ b/ext/standard/url_scanner.re
@@ -20,6 +20,8 @@
#include "php.h"
#include "snprintf.h"
+#ifdef TRANS_SID
+
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
@@ -192,3 +194,5 @@ char *url_adapt(const char *src, size_t srclen, const char *data, size_t *newlen
return state.target;
}
+
+#endif