rubinius-melbourne 1.1.1.0 → 1.1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rubinius/melbourne/grammar.cpp +11 -1
- data/ext/rubinius/melbourne/grammar.y +11 -1
- data/lib/rubinius/melbourne/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e992b67a225151ca432363d400e7db119b727506
|
4
|
+
data.tar.gz: 34a70b514b503e149ee7170fc6b12ef1d8f37461
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701069f3af143a29b1d5c6cd8a6e4c204b868a72181dad9c6773f3accc798dafefd1ae68b79a4844916a316b6a5c3c8908a87befcbe647e2412a746de199cc47
|
7
|
+
data.tar.gz: dc80bf6237b4c65515e08ca10d1911ab192e60bccfae9de0baa7c68142f2cc66d8e0ea583636788277e7f58c8db9feeab89fe592547f5b0d731e677032710490
|
@@ -8068,7 +8068,16 @@ yycompile(rb_parser_state *parser_state, char *f, int line)
|
|
8068
8068
|
static const unsigned char*
|
8069
8069
|
re_mbcinit()
|
8070
8070
|
{
|
8071
|
-
|
8071
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
8072
|
+
return mbctab_ascii;
|
8073
|
+
#else
|
8074
|
+
VALUE kcode = rb_gv_get("$KCODE");
|
8075
|
+
|
8076
|
+
if(NIL_P(kcode)) {
|
8077
|
+
return mbctab_ascii;
|
8078
|
+
}
|
8079
|
+
|
8080
|
+
const char* code = RSTRING_PTR(kcode);
|
8072
8081
|
|
8073
8082
|
switch(code[0]) {
|
8074
8083
|
case 'E':
|
@@ -8085,6 +8094,7 @@ re_mbcinit()
|
|
8085
8094
|
default:
|
8086
8095
|
return mbctab_ascii;
|
8087
8096
|
}
|
8097
|
+
#endif
|
8088
8098
|
}
|
8089
8099
|
|
8090
8100
|
static bool
|
@@ -2877,7 +2877,16 @@ yycompile(rb_parser_state *parser_state, char *f, int line)
|
|
2877
2877
|
static const unsigned char*
|
2878
2878
|
re_mbcinit()
|
2879
2879
|
{
|
2880
|
-
|
2880
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
2881
|
+
return mbctab_ascii;
|
2882
|
+
#else
|
2883
|
+
VALUE kcode = rb_gv_get("$KCODE");
|
2884
|
+
|
2885
|
+
if(NIL_P(kcode)) {
|
2886
|
+
return mbctab_ascii;
|
2887
|
+
}
|
2888
|
+
|
2889
|
+
const char* code = RSTRING_PTR(kcode);
|
2881
2890
|
|
2882
2891
|
switch(code[0]) {
|
2883
2892
|
case 'E':
|
@@ -2894,6 +2903,7 @@ re_mbcinit()
|
|
2894
2903
|
default:
|
2895
2904
|
return mbctab_ascii;
|
2896
2905
|
}
|
2906
|
+
#endif
|
2897
2907
|
}
|
2898
2908
|
|
2899
2909
|
static bool
|