diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-10-15 17:34:28 +0500 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-10-15 17:34:28 +0500 |
commit | 14573a71910c2a345d5bd1dc3d1bffd73319ba50 (patch) | |
tree | e5a807a679c0a09a244e903bac032a5755d33089 /strings | |
parent | f6fd834132924538657c30115e9aef82526456da (diff) | |
download | mariadb-git-14573a71910c2a345d5bd1dc3d1bffd73319ba50.tar.gz |
ctype-simple.c, ctype-mb.c:
Win compilation problem fix
ctype-bin.c:
Win compilation problem fix
,
,
m_ctype.h:
Win compilation problem fix
,
include/m_ctype.h:
Win compilation problem fix
,
strings/ctype-bin.c:
Win compilation problem fix
,
,
strings/ctype-mb.c:
Win compilation problem fix
strings/ctype-simple.c:
Win compilation problem fix
Diffstat (limited to 'strings')
-rw-r--r-- | strings/ctype-bin.c | 14 | ||||
-rw-r--r-- | strings/ctype-mb.c | 22 | ||||
-rw-r--r-- | strings/ctype-simple.c | 14 |
3 files changed, 25 insertions, 25 deletions
diff --git a/strings/ctype-bin.c b/strings/ctype-bin.c index 340084ad848..ebf915398a8 100644 --- a/strings/ctype-bin.c +++ b/strings/ctype-bin.c @@ -264,8 +264,8 @@ static int my_strnxfrm_bin(CHARSET_INFO *cs __attribute__((unused)), static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), - const char *big, uint b_length, - const char *small, uint s_length, + const char *b, uint b_length, + const char *s, uint s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; @@ -283,10 +283,10 @@ uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), return 1; /* Empty string is always found */ } - str= (const uchar*) big; - search= (const uchar*) small; - end= (const uchar*) big+b_length-s_length+1; - search_end= (const uchar*) small + s_length; + str= (const uchar*) b; + search= (const uchar*) s; + end= (const uchar*) b+b_length-s_length+1; + search_end= (const uchar*) s + s_length; skipp: while (str != end) @@ -305,7 +305,7 @@ skipp: if (nmatch > 0) { match[0].beg= 0; - match[0].end= str- (const uchar*)big-1; + match[0].end= str- (const uchar*)b-1; match[0].mblen= match[0].end; if (nmatch > 1) diff --git a/strings/ctype-mb.c b/strings/ctype-mb.c index 813a33fd229..271c56b8a0a 100644 --- a/strings/ctype-mb.c +++ b/strings/ctype-mb.c @@ -275,11 +275,11 @@ uint my_charpos_mb(CHARSET_INFO *cs __attribute__((unused)), } uint my_instr_mb(CHARSET_INFO *cs, - const char *big, uint b_length, - const char *small, uint s_length, + const char *b, uint b_length, + const char *s, uint s_length, my_match_t *match, uint nmatch) { - register const char *end, *big0; + register const char *end, *b0; int res= 0; if (s_length <= b_length) @@ -295,20 +295,20 @@ uint my_instr_mb(CHARSET_INFO *cs, return 1; /* Empty string is always found */ } - big0= big; - end= big+b_length-s_length+1; + b0= b; + end= b+b_length-s_length+1; - while (big < end) + while (b < end) { int mblen; - if (!cs->coll->strnncoll(cs, (unsigned char*) big, s_length, - (unsigned char*) small, s_length)) + if (!cs->coll->strnncoll(cs, (unsigned char*) b, s_length, + (unsigned char*) s, s_length)) { if (nmatch) { match[0].beg= 0; - match[0].end= big-big0; + match[0].end= b-b0; match[0].mblen= res; if (nmatch > 1) { @@ -319,8 +319,8 @@ uint my_instr_mb(CHARSET_INFO *cs, } return 2; } - mblen= (mblen= my_ismbchar(cs, big, end)) ? mblen : 1; - big+= mblen; + mblen= (mblen= my_ismbchar(cs, b, end)) ? mblen : 1; + b+= mblen; b_length-= mblen; res++; } diff --git a/strings/ctype-simple.c b/strings/ctype-simple.c index f85ce5e7a2b..aba15f13d4b 100644 --- a/strings/ctype-simple.c +++ b/strings/ctype-simple.c @@ -1031,8 +1031,8 @@ uint my_lengthsp_8bit(CHARSET_INFO *cs __attribute__((unused)), uint my_instr_simple(CHARSET_INFO *cs, - const char *big, uint b_length, - const char *small, uint s_length, + const char *b, uint b_length, + const char *s, uint s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; @@ -1050,10 +1050,10 @@ uint my_instr_simple(CHARSET_INFO *cs, return 1; /* Empty string is always found */ } - str= (const uchar*) big; - search= (const uchar*) small; - end= (const uchar*) big+b_length-s_length+1; - search_end= (const uchar*) small + s_length; + str= (const uchar*) b; + search= (const uchar*) s; + end= (const uchar*) b+b_length-s_length+1; + search_end= (const uchar*) s + s_length; skipp: while (str != end) @@ -1072,7 +1072,7 @@ skipp: if (nmatch > 0) { match[0].beg= 0; - match[0].end= str- (const uchar*)big-1; + match[0].end= str- (const uchar*)b-1; match[0].mblen= match[0].end; if (nmatch > 1) |