Permalink
Browse files

Apply fix to oregexp.c as found @

  • Loading branch information...
1 parent ca7b64b commit 95a6f9332d02c3f1f3daa2b03ebdf792ce28e06d @jasherai committed Sep 10, 2008
Showing with 0 additions and 7 deletions.
  1. +0 −7 ext/oregexp.c
View
@@ -47,10 +47,6 @@ static OnigEncodingType * int2encoding( VALUE v_index ) {
case 15: return ONIG_ENCODING_ISO_8859_15;
case 16: return ONIG_ENCODING_ISO_8859_16;
case 17: return ONIG_ENCODING_UTF8;
- case 18: return ONIG_ENCODING_UTF16_BE;
- case 19: return ONIG_ENCODING_UTF16_LE;
- case 20: return ONIG_ENCODING_UTF32_BE;
- case 21: return ONIG_ENCODING_UTF32_LE;
case 22: return ONIG_ENCODING_EUC_JP;
case 23: return ONIG_ENCODING_EUC_TW;
case 24: return ONIG_ENCODING_EUC_KR;
@@ -62,7 +58,6 @@ static OnigEncodingType * int2encoding( VALUE v_index ) {
case 29: return ONIG_ENCODING_CP1251;
#endif
case 30: return ONIG_ENCODING_BIG5;
- case 31: return ONIG_ENCODING_GB18030;
case 32: return ONIG_ENCODING_UNDEF;
}
}
@@ -74,15 +69,13 @@ static OnigSyntaxType * int2syntax( VALUE v_index ) {
if( ! NIL_P(v_index) ) {
index = FIX2INT(v_index);
switch( index ) {
- case 0: return ONIG_SYNTAX_ASIS;
case 1: return ONIG_SYNTAX_POSIX_BASIC;
case 2: return ONIG_SYNTAX_POSIX_EXTENDED;
case 3: return ONIG_SYNTAX_EMACS;
case 4: return ONIG_SYNTAX_GREP;
case 5: return ONIG_SYNTAX_GNU_REGEX;
case 6: return ONIG_SYNTAX_JAVA;
case 7: return ONIG_SYNTAX_PERL;
- case 8: return ONIG_SYNTAX_PERL_NG;
case 9: return ONIG_SYNTAX_RUBY;
case 10: return ONIG_SYNTAX_DEFAULT;
}

0 comments on commit 95a6f93

Please sign in to comment.