summaryrefslogtreecommitdiff
path: root/enc
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
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')
-rw-r--r--enc/big5.c4
-rw-r--r--enc/euc_jp.c10
-rw-r--r--enc/euc_kr.c4
-rw-r--r--enc/euc_tw.c6
-rw-r--r--enc/gb18030.c4
-rw-r--r--enc/iso_8859_1.c10
-rw-r--r--enc/iso_8859_10.c10
-rw-r--r--enc/iso_8859_11.c2
-rw-r--r--enc/iso_8859_13.c10
-rw-r--r--enc/iso_8859_14.c10
-rw-r--r--enc/iso_8859_15.c10
-rw-r--r--enc/iso_8859_16.c10
-rw-r--r--enc/iso_8859_2.c10
-rw-r--r--enc/iso_8859_3.c10
-rw-r--r--enc/iso_8859_4.c10
-rw-r--r--enc/iso_8859_5.c10
-rw-r--r--enc/iso_8859_6.c2
-rw-r--r--enc/iso_8859_7.c10
-rw-r--r--enc/iso_8859_8.c2
-rw-r--r--enc/iso_8859_9.c10
-rw-r--r--enc/koi8_r.c15
-rw-r--r--enc/shift_jis.c8
-rw-r--r--enc/windows_1251.c8
23 files changed, 95 insertions, 90 deletions
diff --git a/enc/big5.c b/enc/big5.c
index 5829c3c..676e262 100644
--- a/enc/big5.c
+++ b/enc/big5.c
@@ -49,7 +49,7 @@ static const int EncLen_BIG5[] = {
};
static int
-big5_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc)
+big5_mbc_enc_len(const UChar* p, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
return EncLen_BIG5[*p];
}
@@ -135,7 +135,7 @@ big5_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc)
}
static int
-big5_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc)
+big5_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
const UChar c = *s;
diff --git a/enc/euc_jp.c b/enc/euc_jp.c
index 7950f41..1828d03 100644
--- a/enc/euc_jp.c
+++ b/enc/euc_jp.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;
@@ -151,7 +151,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 (ONIGENC_IS_CODE_ASCII(code)) return 1;
else if (code > 0xffffff) return 0;
@@ -241,7 +241,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;
if (c <= 0x7e || c == 0x8e || c == 0x8f)
@@ -297,7 +297,7 @@ property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
}
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (ctype <= ONIGENC_MAX_STD_CTYPE) {
if (code < 128)
@@ -323,7 +323,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;
diff --git a/enc/euc_kr.c b/enc/euc_kr.c
index 0b42f99..09869e6 100644
--- a/enc/euc_kr.c
+++ b/enc/euc_kr.c
@@ -49,7 +49,7 @@ static const int EncLen_EUCKR[] = {
};
static int
-euckr_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc)
+euckr_mbc_enc_len(const UChar* p, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
return EncLen_EUCKR[*p];
}
@@ -111,7 +111,7 @@ euckr_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc
}
static int
-euckr_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc)
+euckr_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
const UChar c = *s;
if (c <= 0x7e) return TRUE;
diff --git a/enc/euc_tw.c b/enc/euc_tw.c
index 395f1e9..8638021 100644
--- a/enc/euc_tw.c
+++ b/enc/euc_tw.c
@@ -49,13 +49,13 @@ static const int EncLen_EUCTW[] = {
};
static int
-euctw_mbc_enc_len(const UChar* p, const UChar* end, OnigEncoding enc)
+euctw_mbc_enc_len(const UChar* p, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
return EncLen_EUCTW[*p];
}
static OnigCodePoint
-euctw_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc)
+euctw_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc ARG_UNUSED)
{
return onigenc_mbn_mbc_to_code(enc, p, end);
}
@@ -111,7 +111,7 @@ euctw_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding enc
}
static int
-euctw_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc)
+euctw_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
const UChar c = *s;
if (c <= 0x7e) return TRUE;
diff --git a/enc/gb18030.c b/enc/gb18030.c
index 100c2bb..b2adb78 100644
--- a/enc/gb18030.c
+++ b/enc/gb18030.c
@@ -63,7 +63,7 @@ static const char GB18030_MAP[] = {
};
static int
-gb18030_mbc_enc_len(const UChar* p, const UChar* end, OnigEncoding enc)
+gb18030_mbc_enc_len(const UChar* p, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
if (GB18030_MAP[*p] != CM)
return 1;
@@ -470,7 +470,7 @@ gb18030_left_adjust_char_head(const UChar* start, const UChar* s, OnigEncoding e
}
static int
-gb18030_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc)
+gb18030_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigEncoding enc ARG_UNUSED)
{
return GB18030_MAP[*s] == C1 ? TRUE : FALSE;
}
diff --git a/enc/iso_8859_1.c b/enc/iso_8859_1.c
index 10c68f5..e277975 100644
--- a/enc/iso_8859_1.c
+++ b/enc/iso_8859_1.c
@@ -104,7 +104,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -115,7 +115,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
if (0x41 <= *p && *p <= 0x5a) {
items[0].byte_len = 1;
@@ -201,8 +201,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
}
static int
-mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end,
- UChar* lower, OnigEncoding enc)
+mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -246,7 +246,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_1_CTYPE(code, ctype);
diff --git a/enc/iso_8859_10.c b/enc/iso_8859_10.c
index 64ec45a..2089a92 100644
--- a/enc/iso_8859_10.c
+++ b/enc/iso_8859_10.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_10_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -145,7 +145,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_10_CTYPE(code, ctype);
@@ -205,7 +205,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -216,7 +216,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_11.c b/enc/iso_8859_11.c
index edba3cb..facb284 100644
--- a/enc/iso_8859_11.c
+++ b/enc/iso_8859_11.c
@@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_11_CtypeTable[256] = {
};
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_11_CTYPE(code, ctype);
diff --git a/enc/iso_8859_13.c b/enc/iso_8859_13.c
index 9f7f121..cbb79d9 100644
--- a/enc/iso_8859_13.c
+++ b/enc/iso_8859_13.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_13_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -149,7 +149,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_13_CTYPE(code, ctype);
@@ -194,7 +194,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -205,7 +205,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_14.c b/enc/iso_8859_14.c
index 0970145..d508848 100644
--- a/enc/iso_8859_14.c
+++ b/enc/iso_8859_14.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_14_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -146,7 +146,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_14_CTYPE(code, ctype);
@@ -207,7 +207,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -218,7 +218,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_15.c b/enc/iso_8859_15.c
index a842ab4..f7c5bbe 100644
--- a/enc/iso_8859_15.c
+++ b/enc/iso_8859_15.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_15_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED,
+ UChar* lower, OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -150,7 +150,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_15_CTYPE(code, ctype);
@@ -201,7 +201,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -212,7 +212,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_16.c b/enc/iso_8859_16.c
index 86e626c..61e9c28 100644
--- a/enc/iso_8859_16.c
+++ b/enc/iso_8859_16.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_16_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -145,7 +145,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_16_CTYPE(code, ctype);
@@ -203,7 +203,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -214,7 +214,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_2.c b/enc/iso_8859_2.c
index a6a6c3d..8f4e1ad 100644
--- a/enc/iso_8859_2.c
+++ b/enc/iso_8859_2.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_2_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -192,7 +192,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -203,7 +203,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -211,7 +211,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
}
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_2_CTYPE(code, ctype);
diff --git a/enc/iso_8859_3.c b/enc/iso_8859_3.c
index 5b0ba04..f484061 100644
--- a/enc/iso_8859_3.c
+++ b/enc/iso_8859_3.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_3_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -149,7 +149,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_3_CTYPE(code, ctype);
@@ -201,7 +201,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -212,7 +212,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_4.c b/enc/iso_8859_4.c
index d9d41f4..f548ed5 100644
--- a/enc/iso_8859_4.c
+++ b/enc/iso_8859_4.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_4_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -148,7 +148,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_4_CTYPE(code, ctype);
@@ -203,7 +203,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -214,7 +214,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
diff --git a/enc/iso_8859_5.c b/enc/iso_8859_5.c
index d53cbdb..7eb78d2 100644
--- a/enc/iso_8859_5.c
+++ b/enc/iso_8859_5.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_5_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -129,7 +129,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_5_CTYPE(code, ctype);
@@ -191,7 +191,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -202,7 +202,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
diff --git a/enc/iso_8859_6.c b/enc/iso_8859_6.c
index 8a91280..0f9a1b7 100644
--- a/enc/iso_8859_6.c
+++ b/enc/iso_8859_6.c
@@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_6_CtypeTable[256] = {
};
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_6_CTYPE(code, ctype);
diff --git a/enc/iso_8859_7.c b/enc/iso_8859_7.c
index 68d590d..4b1f616 100644
--- a/enc/iso_8859_7.c
+++ b/enc/iso_8859_7.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_7_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -137,7 +137,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_7_CTYPE(code, ctype);
@@ -187,7 +187,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
@@ -198,7 +198,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 0,
diff --git a/enc/iso_8859_8.c b/enc/iso_8859_8.c
index 72cfea9..ab58084 100644
--- a/enc/iso_8859_8.c
+++ b/enc/iso_8859_8.c
@@ -68,7 +68,7 @@ static const unsigned short EncISO_8859_8_CtypeTable[256] = {
};
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_8_CTYPE(code, ctype);
diff --git a/enc/iso_8859_9.c b/enc/iso_8859_9.c
index 0af43fb..9c228ad 100644
--- a/enc/iso_8859_9.c
+++ b/enc/iso_8859_9.c
@@ -105,8 +105,8 @@ static const unsigned short EncISO_8859_9_CtypeTable[256] = {
static int
mbc_case_fold(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, UChar* lower,
- OnigEncoding enc)
+ const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower,
+ OnigEncoding enc ARG_UNUSED)
{
const UChar* p = *pp;
@@ -149,7 +149,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
#endif
static int
-is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_ISO_8859_9_CTYPE(code, ctype);
@@ -194,7 +194,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
apply_all_case_fold(OnigCaseFoldType flag,
OnigApplyAllCaseFoldFunc f, void* arg,
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
@@ -205,7 +205,7 @@ static int
get_case_fold_codes_by_str(OnigCaseFoldType flag,
const OnigUChar* p, const OnigUChar* end,
OnigCaseFoldCodeItem items[],
- OnigEncoding enc)
+ OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
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,
diff --git a/enc/shift_jis.c b/enc/shift_jis.c
index 48e7842..dd42ebe 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;
diff --git a/enc/windows_1251.c b/enc/windows_1251.c
index faba0c9..5317b3d 100644
--- a/enc/windows_1251.c
+++ b/enc/windows_1251.c
@@ -106,7 +106,7 @@ static const unsigned short EncCP1251_CtypeTable[256] = {
static int
cp1251_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 +116,7 @@ cp1251_mbc_case_fold(OnigCaseFoldType flag ARG_UNUSED,
}
static int
-cp1251_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
+cp1251_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
{
if (code < 256)
return ENC_IS_CP1251_CTYPE(code, ctype);
@@ -164,7 +164,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
static int
cp1251_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,
@@ -173,7 +173,7 @@ cp1251_apply_all_case_fold(OnigCaseFoldType flag,
static int
cp1251_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,