diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-15 14:54:40 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-15 14:54:40 +0000 |
commit | 0a640a93860ecd948431e5c29fc6f6ab8853c4b5 (patch) | |
tree | 35c9ec8338b78601b198ea588415dccd43c02b25 /enc/shift_jis.c | |
parent | 904572d2e5a35c6fde655aeb24b11fcb9f7b5ba3 (diff) | |
download | ruby-0a640a93860ecd948431e5c29fc6f6ab8853c4b5.tar.gz |
* enc/*: add ARG_UNUSED.
* enc/koi8_u.c: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/shift_jis.c')
-rw-r--r-- | enc/shift_jis.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/enc/shift_jis.c b/enc/shift_jis.c index 48e7842dd9..dd42ebee44 100644 --- a/enc/shift_jis.c +++ b/enc/shift_jis.c @@ -115,7 +115,7 @@ static const signed char trans[][0x100] = { #undef F static int -mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc) +mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED) { int firstbyte = *p++; state_t s; @@ -129,7 +129,7 @@ mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc) } static int -code_to_mbclen(OnigCodePoint code, OnigEncoding enc) +code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) { if (code < 256) { if (EncLen_SJIS[(int )code] == 1) @@ -252,7 +252,7 @@ left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) } static int -is_allowed_reverse_match(const UChar* s, const UChar* end, OnigEncoding enc) +is_allowed_reverse_match(const UChar* s, const UChar* end, OnigEncoding enc ARG_UNUSED) { const UChar c = *s; return (SJIS_ISMB_TRAIL(c) ? FALSE : TRUE); @@ -332,7 +332,7 @@ is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc) static int get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out, - const OnigCodePoint* ranges[], OnigEncoding enc) + const OnigCodePoint* ranges[], OnigEncoding enc ARG_UNUSED) { if (ctype <= ONIGENC_MAX_STD_CTYPE) { return ONIG_NO_SUPPORT_CONFIG; |