Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b9f5e18b
Commit
b9f5e18b
authored
Oct 23, 2002
by
bar@bar.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing to use my_charset_bin instead of binary_flag
parent
cd032e04
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
include/m_ctype.h
include/m_ctype.h
+2
-0
strings/ctype-bin.c
strings/ctype-bin.c
+4
-2
strings/ctype.c
strings/ctype.c
+1
-2
No files found.
include/m_ctype.h
View file @
b9f5e18b
...
...
@@ -48,6 +48,7 @@ typedef struct unicase_info_st {
#define MY_CS_CONFIG 2
/* sets that have a *.conf file */
#define MY_CS_INDEX 4
/* sets listed in the Index file */
#define MY_CS_LOADED 8
/* sets that are currently loaded */
#define MY_CS_BINSORT 16
/* if binary sort order */
#define MY_CHARSET_UNDEFINED 0
#define MY_CHARSET_CURRENT (default_charset_info->number)
...
...
@@ -116,6 +117,7 @@ typedef struct charset_info_st
}
CHARSET_INFO
;
extern
CHARSET_INFO
*
my_charset_bin
;
extern
CHARSET_INFO
*
default_charset_info
;
extern
CHARSET_INFO
*
system_charset_info
;
extern
CHARSET_INFO
*
all_charsets
[
256
];
...
...
strings/ctype-bin.c
View file @
b9f5e18b
...
...
@@ -146,10 +146,10 @@ void my_hash_sort_bin(CHARSET_INFO *cs __attribute__((unused)),
CHARSET_INFO
my_charset_bin
=
static
CHARSET_INFO
my_charset_bin_st
=
{
63
,
/* number */
MY_CS_COMPILED
,
/* state */
MY_CS_COMPILED
|
MY_CS_BINSORT
,
/* state */
"binary"
,
/* name */
""
,
/* comment */
NULL
,
/* ctype */
...
...
@@ -180,3 +180,5 @@ CHARSET_INFO my_charset_bin =
255
/* max_sort_char */
};
CHARSET_INFO
*
my_charset_bin
=
&
my_charset_bin_st
;
strings/ctype.c
View file @
b9f5e18b
...
...
@@ -3658,7 +3658,6 @@ CHARSET_INFO *system_charset_info = &compiled_charsets[0];
#define MY_ADD_CHARSET(x) all_charsets[(x)->number]=(x)
extern
CHARSET_INFO
my_charset_bin
;
extern
CHARSET_INFO
my_charset_big5
;
extern
CHARSET_INFO
my_charset_czech
;
extern
CHARSET_INFO
my_charset_euc_kr
;
...
...
@@ -3677,7 +3676,7 @@ my_bool init_compiled_charsets(myf flags __attribute__((unused)))
{
CHARSET_INFO
*
cs
;
MY_ADD_CHARSET
(
&
my_charset_bin
);
MY_ADD_CHARSET
(
my_charset_bin
);
#ifdef HAVE_CHARSET_big5
MY_ADD_CHARSET
(
&
my_charset_big5
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment