From e1def8a98713beef25e048c5333d418624f7d192 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 23 Jul 2007 09:39:30 +0000 Subject: * 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 --- euc_jp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'euc_jp.c') diff --git a/euc_jp.c b/euc_jp.c index bbe888d417..65729feda8 100644 --- a/euc_jp.c +++ b/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; -- cgit v1.2.3