mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/oniguruma.h: upgrade to Oniguruma 5.9.0. fixes
some memory violation. [ruby-dev:31070] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
46eb6e9428
commit
e1def8a987
14 changed files with 1393 additions and 1412 deletions
6
euc_jp.c
6
euc_jp.c
|
|
@ -113,7 +113,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
|
|||
|
||||
#if 1
|
||||
if (enc_len(ONIG_ENCODING_EUC_JP, buf) != (p - buf))
|
||||
return ONIGENCERR_INVALID_WIDE_CHAR_VALUE;
|
||||
return ONIGENC_ERR_INVALID_WIDE_CHAR_VALUE;
|
||||
#endif
|
||||
return p - buf;
|
||||
}
|
||||
|
|
@ -234,7 +234,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|||
|
||||
ctype -= (ONIGENC_MAX_STD_CTYPE + 1);
|
||||
if (ctype >= (unsigned int )PropertyListNum)
|
||||
return ONIGENCERR_TYPE_BUG;
|
||||
return ONIGENC_ERR_TYPE_BUG;
|
||||
|
||||
return onig_is_in_code_range((UChar* )PropertyList[ctype], code);
|
||||
}
|
||||
|
|
@ -256,7 +256,7 @@ get_ctype_code_range(int ctype, OnigCodePoint* sb_out,
|
|||
|
||||
ctype -= (ONIGENC_MAX_STD_CTYPE + 1);
|
||||
if (ctype >= PropertyListNum)
|
||||
return ONIGENCERR_TYPE_BUG;
|
||||
return ONIGENC_ERR_TYPE_BUG;
|
||||
|
||||
*ranges = PropertyList[ctype];
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue