]> granicus.if.org Git - php/commitdiff
Only compile the scanner, if trans_sid is enabled
authorSascha Schumann <sas@php.net>
Sat, 27 Nov 1999 16:15:35 +0000 (16:15 +0000)
committerSascha Schumann <sas@php.net>
Sat, 27 Nov 1999 16:15:35 +0000 (16:15 +0000)
ext/standard/url_scanner.c
ext/standard/url_scanner.re

index cff296f9757994568fc6c274b1f91b51a1cc15c3..c6c14d31afed1b08d3cfb34855be7d5347775793 100644 (file)
@@ -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
index 49027ccc471088fef8e16905a1320bb38ee04808..2939582b68e584f7814680dcee72bdf075105741 100644 (file)
@@ -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