diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-19 15:37:06 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-19 15:37:06 +0000 |
commit | 5c81ef1ba52670cee790bf50d756142a87db1fa2 (patch) | |
tree | 2236330e3cab73f6c286eda943e19cfa93726ea2 /enc/utf_8.c | |
parent | 182302c711bb5b8683aba442077207a6f8bd32a4 (diff) | |
download | ruby-5c81ef1ba52670cee790bf50d756142a87db1fa2.tar.gz ruby-5c81ef1ba52670cee790bf50d756142a87db1fa2.tar.xz ruby-5c81ef1ba52670cee790bf50d756142a87db1fa2.zip |
* enc/koi8_u.c: added.
* regenc.c, enc/utf_8.c, enc/unicode.c, enc/gb18030.c: add ARG_UNUSED.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/utf_8.c')
-rw-r--r-- | enc/utf_8.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/enc/utf_8.c b/enc/utf_8.c index ebc53f24b..b9dfe71f8 100644 --- a/enc/utf_8.c +++ b/enc/utf_8.c @@ -217,7 +217,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; @@ -294,7 +294,7 @@ mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc) } static int -code_to_mbclen(OnigCodePoint code, OnigEncoding enc) +code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED) { if ((code & 0xffffff80) == 0) return 1; else if ((code & 0xfffff800) == 0) return 2; @@ -311,7 +311,7 @@ code_to_mbclen(OnigCodePoint code, OnigEncoding enc) } static int -code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc) +code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED) { #define UTF8_TRAILS(code, shift) (UChar )((((code) >> (shift)) & 0x3f) | 0x80) #define UTF8_TRAIL0(code) (UChar )(((code) & 0x3f) | 0x80) @@ -397,7 +397,7 @@ mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, static int get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out, - const OnigCodePoint* ranges[], OnigEncoding enc) + const OnigCodePoint* ranges[], OnigEncoding enc ARG_UNUSED) { *sb_out = 0x80; return onigenc_unicode_ctype_code_range(ctype, ranges); @@ -405,7 +405,7 @@ get_ctype_code_range(OnigCtype ctype, OnigCodePoint *sb_out, static UChar* -left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc) +left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc ARG_UNUSED) { const UChar *p; |