mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 18:55:31 +02:00
Merge of mysql-trunk-bugfixing into mysql-trunk-merge.
This commit is contained in:
commit
711c318c07
488 changed files with 12062 additions and 12285 deletions
|
|
@ -47,7 +47,7 @@
|
|||
#define big5head(e) ((uchar)(e>>8))
|
||||
#define big5tail(e) ((uchar)(e&0xff))
|
||||
|
||||
static uchar NEAR ctype_big5[257] =
|
||||
static uchar ctype_big5[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,
|
||||
|
|
@ -68,7 +68,7 @@ static uchar NEAR ctype_big5[257] =
|
|||
3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_big5[]=
|
||||
static uchar to_lower_big5[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -104,7 +104,7 @@ static uchar NEAR to_lower_big5[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_big5[]=
|
||||
static uchar to_upper_big5[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -140,7 +140,7 @@ static uchar NEAR to_upper_big5[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_big5[]=
|
||||
static uchar sort_order_big5[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* .configure. mbmaxlen_cp932=2
|
||||
*/
|
||||
|
||||
static uchar NEAR ctype_cp932[257] =
|
||||
static uchar ctype_cp932[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040, /* NUL ^A - ^G */
|
||||
|
|
@ -68,7 +68,7 @@ static uchar NEAR ctype_cp932[257] =
|
|||
0020, 0020, 0020, 0020, 0020, 0000, 0000, 0000
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_cp932[]=
|
||||
static uchar to_lower_cp932[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -104,7 +104,7 @@ static uchar NEAR to_lower_cp932[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_cp932[]=
|
||||
static uchar to_upper_cp932[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -140,7 +140,7 @@ static uchar NEAR to_upper_cp932[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_cp932[]=
|
||||
static uchar sort_order_cp932[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -430,7 +430,7 @@ static my_bool my_like_range_czech(CHARSET_INFO *cs __attribute__((unused)),
|
|||
#include <my_global.h>
|
||||
#include "m_string.h"
|
||||
|
||||
static uchar NEAR ctype_czech[257] = {
|
||||
static uchar ctype_czech[257] = {
|
||||
0,
|
||||
32, 32, 32, 32, 32, 32, 32, 32, 32, 40, 40, 40, 40, 40, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
||||
|
|
@ -450,7 +450,7 @@ static uchar NEAR ctype_czech[257] = {
|
|||
2, 2, 2, 2, 2, 2, 2, 16, 2, 2, 2, 2, 2, 2, 2, 16,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_czech[] = {
|
||||
static uchar to_lower_czech[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
|
||||
|
|
@ -469,7 +469,7 @@ static uchar NEAR to_lower_czech[] = {
|
|||
240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_czech[] = {
|
||||
static uchar to_upper_czech[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
|
||||
|
|
@ -488,7 +488,7 @@ static uchar NEAR to_upper_czech[] = {
|
|||
240,209,210,211,212,213,214,247,216,217,218,219,220,221,222,255,
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_czech[] = {
|
||||
static uchar sort_order_czech[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#ifdef HAVE_CHARSET_euckr
|
||||
|
||||
|
||||
static uchar NEAR ctype_euc_kr[257] =
|
||||
static uchar ctype_euc_kr[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040, /* NUL ^A - ^G */
|
||||
|
|
@ -69,7 +69,7 @@ static uchar NEAR ctype_euc_kr[257] =
|
|||
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0000,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_euc_kr[]=
|
||||
static uchar to_lower_euc_kr[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -105,7 +105,7 @@ static uchar NEAR to_lower_euc_kr[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_euc_kr[]=
|
||||
static uchar to_upper_euc_kr[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -141,7 +141,7 @@ static uchar NEAR to_upper_euc_kr[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_euc_kr[]=
|
||||
static uchar sort_order_euc_kr[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ ctype-ujis.c file.
|
|||
#ifdef HAVE_CHARSET_eucjpms
|
||||
|
||||
|
||||
static uchar NEAR ctype_eucjpms[257] =
|
||||
static uchar ctype_eucjpms[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040, /* NUL ^A - ^G */
|
||||
|
|
@ -70,7 +70,7 @@ static uchar NEAR ctype_eucjpms[257] =
|
|||
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0000,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_eucjpms[]=
|
||||
static uchar to_lower_eucjpms[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -106,7 +106,7 @@ static uchar NEAR to_lower_eucjpms[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_eucjpms[]=
|
||||
static uchar to_upper_eucjpms[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -142,7 +142,7 @@ static uchar NEAR to_upper_eucjpms[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_eucjpms[]=
|
||||
static uchar sort_order_eucjpms[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#ifdef HAVE_CHARSET_gb2312
|
||||
|
||||
static uchar NEAR ctype_gb2312[257] =
|
||||
static uchar ctype_gb2312[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,
|
||||
|
|
@ -50,7 +50,7 @@ static uchar NEAR ctype_gb2312[257] =
|
|||
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_gb2312[]=
|
||||
static uchar to_lower_gb2312[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -86,7 +86,7 @@ static uchar NEAR to_lower_gb2312[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_gb2312[]=
|
||||
static uchar to_upper_gb2312[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -122,7 +122,7 @@ static uchar NEAR to_upper_gb2312[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_gb2312[]=
|
||||
static uchar sort_order_gb2312[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
#define gbkhead(e) ((uchar)(e>>8))
|
||||
#define gbktail(e) ((uchar)(e&0xff))
|
||||
|
||||
static uchar NEAR ctype_gbk[257] =
|
||||
static uchar ctype_gbk[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,
|
||||
|
|
@ -65,7 +65,7 @@ static uchar NEAR ctype_gbk[257] =
|
|||
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_gbk[]=
|
||||
static uchar to_lower_gbk[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -101,7 +101,7 @@ static uchar NEAR to_lower_gbk[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_gbk[]=
|
||||
static uchar to_upper_gbk[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -995,7 +995,7 @@ static MY_UNICASE_INFO *my_caseinfo_gbk[256]=
|
|||
|
||||
|
||||
|
||||
static uchar NEAR sort_order_gbk[]=
|
||||
static uchar sort_order_gbk[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -1031,7 +1031,7 @@ static uchar NEAR sort_order_gbk[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uint16 NEAR gbk_order[]=
|
||||
static uint16 gbk_order[]=
|
||||
{
|
||||
8653,14277,17116,11482,11160,2751,14613,3913,13337,9827,
|
||||
19496,1759,8105,7103,7836,5638,2223,21433,5878,8006,
|
||||
|
|
|
|||
|
|
@ -1385,19 +1385,6 @@ int my_mb_ctype_8bit(CHARSET_INFO *cs, int *ctype,
|
|||
}
|
||||
|
||||
|
||||
#undef ULONGLONG_MAX
|
||||
/*
|
||||
Needed under MetroWerks Compiler, since MetroWerks compiler does not
|
||||
properly handle a constant expression containing a mod operator
|
||||
*/
|
||||
#if defined(__NETWARE__) && defined(__MWERKS__)
|
||||
static ulonglong ulonglong_max= ~(ulonglong) 0;
|
||||
#define ULONGLONG_MAX ulonglong_max
|
||||
#else
|
||||
#define ULONGLONG_MAX (~(ulonglong) 0)
|
||||
#endif /* __NETWARE__ && __MWERKS__ */
|
||||
|
||||
|
||||
#define CUTOFF (ULONGLONG_MAX / 10)
|
||||
#define CUTLIM (ULONGLONG_MAX % 10)
|
||||
#define DIGITS_IN_ULONGLONG 20
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* .configure. mbmaxlen_sjis=2
|
||||
*/
|
||||
|
||||
static uchar NEAR ctype_sjis[257] =
|
||||
static uchar ctype_sjis[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040, /* NUL ^A - ^G */
|
||||
|
|
@ -68,7 +68,7 @@ static uchar NEAR ctype_sjis[257] =
|
|||
0020, 0020, 0020, 0020, 0020, 0000, 0000, 0000
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_sjis[]=
|
||||
static uchar to_lower_sjis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -104,7 +104,7 @@ static uchar NEAR to_lower_sjis[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_sjis[]=
|
||||
static uchar to_upper_sjis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -140,7 +140,7 @@ static uchar NEAR to_upper_sjis[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_sjis[]=
|
||||
static uchar sort_order_sjis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ static int t_ctype[][TOT_LEVELS] = {
|
|||
/*0xFF*/ { 255 /*IGNORE*/, IGNORE, IGNORE, IGNORE, X },
|
||||
};
|
||||
|
||||
static uchar NEAR ctype_tis620[257] =
|
||||
static uchar ctype_tis620[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,
|
||||
|
|
@ -344,7 +344,7 @@ static uchar NEAR ctype_tis620[257] =
|
|||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_tis620[]=
|
||||
static uchar to_lower_tis620[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -380,7 +380,7 @@ static uchar NEAR to_lower_tis620[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_tis620[]=
|
||||
static uchar to_upper_tis620[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -416,7 +416,7 @@ static uchar NEAR to_upper_tis620[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377',
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_tis620[]=
|
||||
static uchar sort_order_tis620[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
#ifdef HAVE_CHARSET_ujis
|
||||
|
||||
|
||||
static uchar NEAR ctype_ujis[257] =
|
||||
static uchar ctype_ujis[257] =
|
||||
{
|
||||
0, /* For standard library */
|
||||
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040, /* NUL ^A - ^G */
|
||||
|
|
@ -69,7 +69,7 @@ static uchar NEAR ctype_ujis[257] =
|
|||
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0000,
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_ujis[]=
|
||||
static uchar to_lower_ujis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -105,7 +105,7 @@ static uchar NEAR to_lower_ujis[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_ujis[]=
|
||||
static uchar to_upper_ujis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
@ -141,7 +141,7 @@ static uchar NEAR to_upper_ujis[]=
|
|||
(uchar) '\370',(uchar) '\371',(uchar) '\372',(uchar) '\373',(uchar) '\374',(uchar) '\375',(uchar) '\376',(uchar) '\377'
|
||||
};
|
||||
|
||||
static uchar NEAR sort_order_ujis[]=
|
||||
static uchar sort_order_ujis[]=
|
||||
{
|
||||
'\000','\001','\002','\003','\004','\005','\006','\007',
|
||||
'\010','\011','\012','\013','\014','\015','\016','\017',
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ static MY_UNI_IDX idx_uni_cp1250[]={
|
|||
};
|
||||
|
||||
|
||||
static uchar NEAR ctype_win1250ch[] = {
|
||||
static uchar ctype_win1250ch[] = {
|
||||
0x00,
|
||||
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
|
||||
0x20, 0x28, 0x28, 0x28, 0x28, 0x28, 0x20, 0x20,
|
||||
|
|
@ -188,7 +188,7 @@ static uchar NEAR ctype_win1250ch[] = {
|
|||
0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x10
|
||||
};
|
||||
|
||||
static uchar NEAR to_lower_win1250ch[] = {
|
||||
static uchar to_lower_win1250ch[] = {
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
|
||||
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
||||
|
|
@ -223,7 +223,7 @@ static uchar NEAR to_lower_win1250ch[] = {
|
|||
0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff
|
||||
};
|
||||
|
||||
static uchar NEAR to_upper_win1250ch[] = {
|
||||
static uchar to_upper_win1250ch[] = {
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
|
||||
0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17,
|
||||
|
|
@ -260,7 +260,7 @@ static uchar NEAR to_upper_win1250ch[] = {
|
|||
|
||||
|
||||
|
||||
static uchar NEAR sort_order_win1250ch[] = {
|
||||
static uchar sort_order_win1250ch[] = {
|
||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
|
||||
32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
|
||||
|
|
@ -279,7 +279,7 @@ static uchar NEAR sort_order_win1250ch[] = {
|
|||
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255
|
||||
};
|
||||
|
||||
static uchar NEAR _sort_order_win1250ch1[] = {
|
||||
static uchar _sort_order_win1250ch1[] = {
|
||||
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
|
||||
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
|
||||
0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81, 0x81,
|
||||
|
|
@ -339,7 +339,7 @@ static uchar NEAR _sort_order_win1250ch1[] = {
|
|||
0xb8, 0xbd, 0xbd, 0xbd, 0xbd, 0xc1, 0xbc, 0xf5
|
||||
};
|
||||
|
||||
static uchar NEAR _sort_order_win1250ch2[] = {
|
||||
static uchar _sort_order_win1250ch2[] = {
|
||||
0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
|
||||
0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10, 0x11,
|
||||
0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19,
|
||||
|
|
@ -513,7 +513,7 @@ static size_t my_strnxfrm_win1250ch(CHARSET_INFO * cs __attribute__((unused)),
|
|||
|
||||
#ifdef REAL_MYSQL
|
||||
|
||||
static uchar NEAR like_range_prefix_min_win1250ch[]=
|
||||
static uchar like_range_prefix_min_win1250ch[]=
|
||||
{
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
|
||||
|
|
@ -557,7 +557,7 @@ static uchar NEAR like_range_prefix_min_win1250ch[]=
|
|||
For all other characters: prefix_max[i] == i
|
||||
*/
|
||||
|
||||
static uchar NEAR like_range_prefix_max_win1250ch[]=
|
||||
static uchar like_range_prefix_max_win1250ch[]=
|
||||
{
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
|
||||
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
#include <my_sys.h>
|
||||
#include "m_string.h"
|
||||
|
||||
uchar NEAR to_upper[256];
|
||||
uchar NEAR to_lower[256],NEAR sort_order[256];
|
||||
uchar to_upper[256];
|
||||
uchar to_lower[256], sort_order[256];
|
||||
|
||||
static int ascii_output=1;
|
||||
static string tab_names[]={ "to_lower[]={","to_upper[]={","sort_order[]={" };
|
||||
|
|
@ -47,7 +47,7 @@ char *argv[];
|
|||
puts("Tabells for caseconverts and sorttest of characters\n");
|
||||
for (i=0 ; i < 3 ; i++)
|
||||
{
|
||||
printf("uchar NEAR %s\n",tab_names[i]);
|
||||
printf("uchar %s\n",tab_names[i]);
|
||||
for (j=0 ; j <= 255 ; j++)
|
||||
{
|
||||
ch=(int) tabell[i][j];
|
||||
|
|
@ -140,10 +140,6 @@ void init_case_convert()
|
|||
to_upper[i]= sort_order[i]= to_lower[i]= (char) i;
|
||||
#endif
|
||||
|
||||
#ifdef MSDOS
|
||||
higher_pos= (uchar *) "\217\216\231\232\220"; /* Extra chars to konv. */
|
||||
lower_pos= (uchar *) "\206\204\224\201\202";
|
||||
#else
|
||||
#if defined(HPUX10) && ASCII_BITS_USED == 8
|
||||
higher_pos= (uchar *) "\xd0\xd8\xda\xdb\xdc\xd3";
|
||||
lower_pos= (uchar *) "\xd4\xcc\xce\xdf\xc9\xd7";
|
||||
|
|
@ -160,7 +156,6 @@ void init_case_convert()
|
|||
#endif
|
||||
#endif /* USE_INTERNAL_CTYPE */
|
||||
#endif /* HPUX10 */
|
||||
#endif /* MSDOS */
|
||||
|
||||
while (*higher_pos)
|
||||
{
|
||||
|
|
@ -171,10 +166,6 @@ void init_case_convert()
|
|||
/* sets upp sortorder; higer_pos character (upper and lower) is */
|
||||
/* changed to lower_pos character */
|
||||
|
||||
#ifdef MSDOS
|
||||
higher_pos= (uchar *) "\217\216\231\232\220";
|
||||
lower_pos= (uchar *) "\216\217\231YE";
|
||||
#else
|
||||
#if defined(HPUX10) && ASCII_BITS_USED == 8
|
||||
higher_pos= lower_pos= (uchar *) ""; /* Tecknen i r{tt ordning */
|
||||
#else
|
||||
|
|
@ -186,7 +177,6 @@ void init_case_convert()
|
|||
lower_pos= (uchar *) "[\\]YE"; /* Ordning enligt ascii */
|
||||
#endif /* USE_ISO_8859_1 */
|
||||
#endif /* HPUX10 */
|
||||
#endif /* MSDOS */
|
||||
|
||||
while (*higher_pos)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@
|
|||
/*
|
||||
_dig_vec arrays are public because they are used in several outer places.
|
||||
*/
|
||||
char NEAR _dig_vec_upper[] =
|
||||
char _dig_vec_upper[] =
|
||||
"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
char NEAR _dig_vec_lower[] =
|
||||
char _dig_vec_lower[] =
|
||||
"0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,17 +17,6 @@
|
|||
#include <my_sys.h> /* Needed for MY_ERRNO_ERANGE */
|
||||
#include <m_string.h>
|
||||
|
||||
#undef ULONGLONG_MAX
|
||||
/*
|
||||
Needed under MetroWerks Compiler, since MetroWerks compiler does not
|
||||
properly handle a constant expression containing a mod operator
|
||||
*/
|
||||
#if defined(__NETWARE__) && defined(__MWERKS__)
|
||||
static ulonglong ulonglong_max= ~(ulonglong) 0;
|
||||
#define ULONGLONG_MAX ulonglong_max
|
||||
#else
|
||||
#define ULONGLONG_MAX (~(ulonglong) 0)
|
||||
#endif /* __NETWARE__ && __MWERKS__ */
|
||||
#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000))
|
||||
#define INIT_CNT 9
|
||||
#define LFACTOR ULL(1000000000)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,6 @@
|
|||
#include <my_global.h>
|
||||
#include <m_string.h>
|
||||
|
||||
#if !defined(MSDOS) && !defined(HAVE_STRTOL) && !defined(__WIN__)
|
||||
#if !defined(HAVE_STRTOL) && !defined(__WIN__)
|
||||
#include "strto.c"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
#include <my_global.h>
|
||||
#include <m_string.h>
|
||||
|
||||
#if !defined(MSDOS) && !defined(HAVE_STRTOUL)
|
||||
#if !defined(HAVE_STRTOUL)
|
||||
#define USE_UNSIGNED
|
||||
#include "strto.c"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue