diff options
author | bar@gw.udmsearch.izhnet.ru <> | 2002-03-29 16:06:06 +0400 |
---|---|---|
committer | bar@gw.udmsearch.izhnet.ru <> | 2002-03-29 16:06:06 +0400 |
commit | 0300bac68a5ab9c5b00d6fe59a1f9872297a0de3 (patch) | |
tree | d444c80b3c0ba33ab823c67eb8b92c2d59ab58e7 /strings/ctype-gb2312.c | |
parent | d17fd20201afc68350293ff7f8f08e2bf47562d2 (diff) | |
download | mariadb-git-0300bac68a5ab9c5b00d6fe59a1f9872297a0de3.tar.gz |
charset<->unicode conversion tables and routines
some warnings fixes
Diffstat (limited to 'strings/ctype-gb2312.c')
-rw-r--r-- | strings/ctype-gb2312.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/strings/ctype-gb2312.c b/strings/ctype-gb2312.c index 96ad352a97e..556bae0747c 100644 --- a/strings/ctype-gb2312.c +++ b/strings/ctype-gb2312.c @@ -166,17 +166,18 @@ uchar NEAR sort_order_gb2312[]= #define isgb2312tail(c) (0xa1<=(uchar)(c) && (uchar)(c)<=0xfe) -int ismbchar_gb2312(CHARSET_INFO *cs,const char* p, const char *e) +int ismbchar_gb2312(CHARSET_INFO *cs __attribute__((unused)), + const char* p, const char *e) { return (isgb2312head(*(p)) && (e)-(p)>1 && isgb2312tail(*((p)+1))? 2: 0); } -my_bool ismbhead_gb2312(CHARSET_INFO *cs,uint c) +my_bool ismbhead_gb2312(CHARSET_INFO *cs __attribute__((unused)),uint c) { return isgb2312head(c); } -int mbcharlen_gb2312(CHARSET_INFO *cs,uint c) +int mbcharlen_gb2312(CHARSET_INFO *cs __attribute__((unused)),uint c) { return (isgb2312head(c)? 2:0); } |