1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* implicit.c (syck_type_id_to_taguri): corrected detection of

x-private types.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
why 2003-08-26 07:02:19 +00:00
parent 9942c6ed13
commit 822a11d47e
3 changed files with 287 additions and 277 deletions

View file

@ -1,3 +1,8 @@
Tue Aug 26 15:59:53 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
* implicit.c (syck_type_id_to_taguri): corrected detection of
x-private types.
Sun Aug 24 01:02:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (file_expand_path): performance improvement.

View file

@ -102,7 +102,7 @@ syck_base64dec( char *s, long len )
}
}
*end = '\0';
//RSTRING(buf)->len = ptr - RSTRING(buf)->ptr;
/* RSTRING(buf)->len = ptr - RSTRING(buf)->ptr; */
return ptr;
}

View file

@ -1,4 +1,4 @@
/* Generated by re2c 0.5 on Thu Aug 21 14:06:39 2003 */
/* Generated by re2c 0.5 on Tue Aug 26 00:28:27 2003 */
#line 1 "implicit.re"
/*
* implicit.re
@ -1460,7 +1460,7 @@ syck_type_id_to_uri( char *type_id )
goto yy193;
yy194: ++YYCURSOR;
yy193:
if((YYLIMIT - YYCURSOR) < 20) YYFILL(20);
if((YYLIMIT - YYCURSOR) < 21) YYFILL(21);
yych = *YYCURSOR;
switch(yych){
case '\000': goto yy195;
@ -1595,7 +1595,7 @@ yy196: yyaccept = 0;
case 'x':
case 'y':
case 'z': goto yy205;
case 'a': goto yy236;
case 'a': goto yy237;
default: goto yy197;
}
yy197:
@ -1604,10 +1604,8 @@ yy197:
yy198: yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
switch(yych){
case ',': goto yy207;
case '-': goto yy203;
case '.': goto yy208;
case '/': goto yy209;
case ',': case '.':
case '/':
case '0':
case '1':
case '2':
@ -1656,7 +1654,9 @@ yy198: yyaccept = 0;
case 'l':
case 'm':
case 'n':
case 'o': case 'q':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
@ -1665,8 +1665,8 @@ yy198: yyaccept = 0;
case 'w':
case 'x':
case 'y':
case 'z': goto yy205;
case 'p': goto yy227;
case 'z': goto yy206;
case '-': goto yy227;
default: goto yy197;
}
yy199: yych = *++YYCURSOR;
@ -2243,10 +2243,7 @@ yy226: yych = *++YYCURSOR;
}
yy227: yych = *++YYCURSOR;
switch(yych){
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'r': goto yy228;
case 'p': goto yy228;
default: goto yy204;
}
yy228: yych = *++YYCURSOR;
@ -2254,7 +2251,7 @@ yy228: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'i': goto yy229;
case 'r': goto yy229;
default: goto yy204;
}
yy229: yych = *++YYCURSOR;
@ -2262,7 +2259,7 @@ yy229: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'v': goto yy230;
case 'i': goto yy230;
default: goto yy204;
}
yy230: yych = *++YYCURSOR;
@ -2270,7 +2267,7 @@ yy230: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'a': goto yy231;
case 'v': goto yy231;
default: goto yy204;
}
yy231: yych = *++YYCURSOR;
@ -2278,7 +2275,7 @@ yy231: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 't': goto yy232;
case 'a': goto yy232;
default: goto yy204;
}
yy232: yych = *++YYCURSOR;
@ -2286,7 +2283,7 @@ yy232: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'e': goto yy233;
case 't': goto yy233;
default: goto yy204;
}
yy233: yych = *++YYCURSOR;
@ -2294,27 +2291,27 @@ yy233: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case ':': goto yy234;
case 'e': goto yy234;
default: goto yy204;
}
yy234: yych = *++YYCURSOR;
yy235:
#line 142
{ return type_id; }
yy236: yych = *++YYCURSOR;
switch(yych){
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'g': goto yy237;
case ':': goto yy235;
default: goto yy204;
}
yy235: yych = *++YYCURSOR;
yy236:
#line 142
{ return type_id; }
yy237: yych = *++YYCURSOR;
switch(yych){
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'u': goto yy238;
case 'g': goto yy238;
default: goto yy204;
}
yy238: yych = *++YYCURSOR;
@ -2322,7 +2319,7 @@ yy238: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'r': goto yy239;
case 'u': goto yy239;
default: goto yy204;
}
yy239: yych = *++YYCURSOR;
@ -2330,7 +2327,7 @@ yy239: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case 'i': goto yy240;
case 'r': goto yy240;
default: goto yy204;
}
yy240: yych = *++YYCURSOR;
@ -2338,23 +2335,31 @@ yy240: yych = *++YYCURSOR;
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case ':': goto yy241;
case 'i': goto yy241;
default: goto yy204;
}
yy241: yych = *++YYCURSOR;
switch(yych){
case ',': goto yy207;
case '.': goto yy208;
case '/': goto yy209;
case ':': goto yy242;
default: goto yy204;
}
yy242: yych = *++YYCURSOR;
switch(yych){
case ',':
case '-':
case '.': goto yy195;
default: goto yy243;
default: goto yy244;
}
yy242: ++YYCURSOR;
yy243: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy243: switch(yych){
case ',': goto yy246;
case '-': goto yy244;
case '.': goto yy247;
yy244: switch(yych){
case ',': goto yy247;
case '-': goto yy245;
case '.': goto yy248;
case '0':
case '1':
case '2':
@ -2414,14 +2419,14 @@ yy243: switch(yych){
case 'w':
case 'x':
case 'y':
case 'z': goto yy242;
case 'z': goto yy243;
default: goto yy195;
}
yy244: ++YYCURSOR;
yy245: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy245: switch(yych){
case '-': goto yy244;
yy246: switch(yych){
case '-': goto yy245;
case '0':
case '1':
case '2':
@ -2481,226 +2486,10 @@ yy245: switch(yych){
case 'w':
case 'x':
case 'y':
case 'z': goto yy242;
case 'z': goto yy243;
default: goto yy195;
}
yy246: yych = *++YYCURSOR;
switch(yych){
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': goto yy252;
default: goto yy195;
}
yy247: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
switch(yych){
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy248;
default: goto yy195;
}
yy248: ++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
yy249: switch(yych){
case ',': goto yy246;
case '-': goto yy250;
case '.': goto yy247;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy248;
default: goto yy195;
}
yy250: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy251: switch(yych){
case '-': goto yy250;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy248;
default: goto yy195;
}
yy252: yych = *++YYCURSOR;
yy247: yych = *++YYCURSOR;
switch(yych){
case '0':
case '1':
@ -2714,6 +2503,208 @@ yy252: yych = *++YYCURSOR;
case '9': goto yy253;
default: goto yy195;
}
yy248: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
switch(yych){
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy249;
default: goto yy195;
}
yy249: ++YYCURSOR;
if((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
yych = *YYCURSOR;
yy250: switch(yych){
case ',': goto yy247;
case '-': goto yy251;
case '.': goto yy248;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy249;
default: goto yy195;
}
yy251: ++YYCURSOR;
if(YYLIMIT == YYCURSOR) YYFILL(1);
yych = *YYCURSOR;
yy252: switch(yych){
case '-': goto yy251;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': case 'A':
case 'B':
case 'C':
case 'D':
case 'E':
case 'F':
case 'G':
case 'H':
case 'I':
case 'J':
case 'K':
case 'L':
case 'M':
case 'N':
case 'O':
case 'P':
case 'Q':
case 'R':
case 'S':
case 'T':
case 'U':
case 'V':
case 'W':
case 'X':
case 'Y':
case 'Z': case '_': case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
case 'f':
case 'g':
case 'h':
case 'i':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'u':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z': goto yy249;
default: goto yy195;
}
yy253: yych = *++YYCURSOR;
switch(yych){
case '0':
@ -2743,12 +2734,6 @@ yy254: yych = *++YYCURSOR;
default: goto yy195;
}
yy255: yych = *++YYCURSOR;
switch(yych){
case '-': goto yy256;
case ':': goto yy257;
default: goto yy195;
}
yy256: yych = *++YYCURSOR;
switch(yych){
case '0':
case '1':
@ -2759,14 +2744,16 @@ yy256: yych = *++YYCURSOR;
case '6':
case '7':
case '8':
case '9': goto yy259;
case '9': goto yy256;
default: goto yy195;
}
yy256: yych = *++YYCURSOR;
switch(yych){
case '-': goto yy257;
case ':': goto yy258;
default: goto yy195;
}
yy257: yych = *++YYCURSOR;
yy258:
#line 140
{ return type_id; }
yy259: yych = *++YYCURSOR;
switch(yych){
case '0':
case '1':
@ -2780,13 +2767,11 @@ yy259: yych = *++YYCURSOR;
case '9': goto yy260;
default: goto yy195;
}
yy258: yych = *++YYCURSOR;
yy259:
#line 140
{ return type_id; }
yy260: yych = *++YYCURSOR;
switch(yych){
case '-': goto yy261;
case ':': goto yy257;
default: goto yy195;
}
yy261: yych = *++YYCURSOR;
switch(yych){
case '0':
case '1':
@ -2797,7 +2782,13 @@ yy261: yych = *++YYCURSOR;
case '6':
case '7':
case '8':
case '9': goto yy262;
case '9': goto yy261;
default: goto yy195;
}
yy261: yych = *++YYCURSOR;
switch(yych){
case '-': goto yy262;
case ':': goto yy258;
default: goto yy195;
}
yy262: yych = *++YYCURSOR;
@ -2816,7 +2807,21 @@ yy262: yych = *++YYCURSOR;
}
yy263: yych = *++YYCURSOR;
switch(yych){
case ':': goto yy257;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9': goto yy264;
default: goto yy195;
}
yy264: yych = *++YYCURSOR;
switch(yych){
case ':': goto yy258;
default: goto yy195;
}
}