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
8bd04bf7
Commit
8bd04bf7
authored
Oct 27, 2005
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf_to_src.c:
Updating to conform the current CHARSET_INFO structure.
parent
dfe94804
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
26 deletions
+40
-26
strings/conf_to_src.c
strings/conf_to_src.c
+40
-26
No files found.
strings/conf_to_src.c
View file @
8bd04bf7
...
@@ -179,40 +179,49 @@ void dispcset(FILE *f,CHARSET_INFO *cs)
...
@@ -179,40 +179,49 @@ void dispcset(FILE *f,CHARSET_INFO *cs)
if
(
cs
->
name
)
if
(
cs
->
name
)
{
{
fprintf
(
f
,
"
\"
%s
\"
,
\n
"
,
cs
->
csname
);
fprintf
(
f
,
"
\"
%s
\"
, /* cset name */
\n
"
,
cs
->
csname
);
fprintf
(
f
,
"
\"
%s
\"
,
\n
"
,
cs
->
name
);
fprintf
(
f
,
"
\"
%s
\"
, /* coll name */
\n
"
,
cs
->
name
);
fprintf
(
f
,
"
\"\"
,
\n
"
);
fprintf
(
f
,
"
\"\"
, /* comment */
\n
"
);
fprintf
(
f
,
" ctype_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" NULL, /* tailoring */
\n
"
);
fprintf
(
f
,
" to_lower_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" ctype_%s, /* ctype */
\n
"
,
cs
->
name
);
fprintf
(
f
,
" to_upper_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" to_lower_%s, /* lower */
\n
"
,
cs
->
name
);
fprintf
(
f
,
" to_upper_%s, /* upper */
\n
"
,
cs
->
name
);
if
(
cs
->
sort_order
)
if
(
cs
->
sort_order
)
fprintf
(
f
,
" sort_order_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" sort_order_%s,
/* sort_order */
\n
"
,
cs
->
name
);
else
else
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* sort_order */
\n
"
);
fprintf
(
f
,
" to_uni_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" NULL, /* contractions */
\n
"
);
fprintf
(
f
,
" from_uni_%s,
\n
"
,
cs
->
name
);
fprintf
(
f
,
" NULL, /* sort_order_big*/
\n
"
);
fprintf
(
f
,
" to_uni_%s, /* to_uni */
\n
"
,
cs
->
name
);
}
}
else
else
{
{
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* cset name */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* coll name */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* comment */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* tailoging */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* ctype */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* lower */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* upper */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* sort order */
\n
"
);
fprintf
(
f
,
" NULL,
\n
"
);
fprintf
(
f
,
" NULL, /* contractions */
\n
"
);
fprintf
(
f
,
" NULL, /* sort_order_big*/
\n
"
);
fprintf
(
f
,
" NULL, /* to_uni */
\n
"
);
}
}
fprintf
(
f
,
"
\"\"
,
\n
"
);
fprintf
(
f
,
" NULL, /* from_uni */
\n
"
);
fprintf
(
f
,
"
\"\"
,
\n
"
);
fprintf
(
f
,
" NULL, /* state map */
\n
"
);
fprintf
(
f
,
" 0,
\n
"
);
fprintf
(
f
,
" NULL, /* ident map */
\n
"
);
fprintf
(
f
,
" 0,
\n
"
);
fprintf
(
f
,
" 1, /* strxfrm_multiply*/
\n
"
);
fprintf
(
f
,
" 0,
\n
"
);
fprintf
(
f
,
" 1, /* mbminlen */
\n
"
);
fprintf
(
f
,
" 1, /* mbmaxlen */
\n
"
);
fprintf
(
f
,
" 0, /* min_sort_char */
\n
"
);
fprintf
(
f
,
" 255, /* max_sort_char */
\n
"
);
fprintf
(
f
,
" 0, /* escape_with_backslash_is_dangerous */
\n
"
);
fprintf
(
f
,
" &my_charset_8bit_handler,
\n
"
);
fprintf
(
f
,
" &my_charset_8bit_handler,
\n
"
);
if
(
cs
->
state
&
MY_CS_BINSORT
)
if
(
cs
->
state
&
MY_CS_BINSORT
)
fprintf
(
f
,
" &my_collation_bin_handler,
\n
"
);
fprintf
(
f
,
" &my_collation_
8bit_
bin_handler,
\n
"
);
else
else
fprintf
(
f
,
" &my_collation_8bit_simple_ci_handler,
\n
"
);
fprintf
(
f
,
" &my_collation_8bit_simple_ci_handler,
\n
"
);
fprintf
(
f
,
"}
\n
"
);
fprintf
(
f
,
"}
\n
"
);
...
@@ -251,6 +260,11 @@ main(int argc, char **argv __attribute__((unused)))
...
@@ -251,6 +260,11 @@ main(int argc, char **argv __attribute__((unused)))
}
}
}
}
fprintf
(
f
,
"#include <my_global.h>
\n
"
);
fprintf
(
f
,
"#include <m_ctype.h>
\n\n
"
);
for
(
cs
=
all_charsets
;
cs
<
all_charsets
+
256
;
cs
++
)
for
(
cs
=
all_charsets
;
cs
<
all_charsets
+
256
;
cs
++
)
{
{
if
(
simple_cs_is_full
(
cs
))
if
(
simple_cs_is_full
(
cs
))
...
...
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