summaryrefslogtreecommitdiff
path: root/enc/koi8_r.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 14:54:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-15 14:54:40 +0000
commit0a640a93860ecd948431e5c29fc6f6ab8853c4b5 (patch)
tree35c9ec8338b78601b198ea588415dccd43c02b25 /enc/koi8_r.c
parent904572d2e5a35c6fde655aeb24b11fcb9f7b5ba3 (diff)
* 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/koi8_r.c')
-rw-r--r--enc/koi8_r.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/enc/koi8_r.c b/enc/koi8_r.c
index 88fa04e..dfdf6d2 100644
--- a/enc/koi8_r.c
+++ b/enc/koi8_r.c
@@ -105,7 +105,8 @@ static const unsigned short EncKOI8_R_CtypeTable[256] = {
static int
koi8_r_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
- const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower, OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -116,7 +117,8 @@ koi8_r_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
#if 0
static int
-koi8_r_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end, OnigEncoding enc)
+koi8_r_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp,
+ const UChar* end, OnigEncoding enc ARG_UNUSED)
{
int v;
const UChar* p = *pp;
@@ -128,7 +130,8 @@ koi8_r_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* en
#endif
static int
-koi8_r_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+koi8_r_is_code_ctype(OnigCodePoint code, unsigned int ctype,
+ OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_KOI8_R_CTYPE(code, ctype);
@@ -176,7 +179,8 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
koi8_r_apply_all_case_fold(OnigCaseFoldType flag,
- OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc)
+ OnigApplyAllCaseFoldFunc f,
+ void* arg, OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -185,7 +189,8 @@ koi8_r_apply_all_case_fold(OnigCaseFoldType flag,
static int
koi8_r_get_case_fold_codes_by_str(OnigCaseFoldType flag,
- const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[], OnigEncoding enc)
+ const OnigUChar* p, const OnigUChar* end,
+ OnigCaseFoldCodeItem items[], OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,