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
4f62e8b9
Commit
4f62e8b9
authored
Nov 06, 2004
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
few more fixes - fix makefile and get rid of strncasecmp in favour of
my_strnncoll
parent
b2e3626e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
server-tools/instance-manager/Makefile.am
server-tools/instance-manager/Makefile.am
+1
-1
server-tools/instance-manager/parse.cc
server-tools/instance-manager/parse.cc
+17
-10
No files found.
server-tools/instance-manager/Makefile.am
View file @
4f62e8b9
...
@@ -42,7 +42,7 @@ liboptions_a_SOURCES= options.h options.cc priv.h priv.cc
...
@@ -42,7 +42,7 @@ liboptions_a_SOURCES= options.h options.cc priv.h priv.cc
# MySQL sometimes uses symlinks to reuse code
# MySQL sometimes uses symlinks to reuse code
# All symlinked files are grouped in libnet.a
# All symlinked files are grouped in libnet.a
nodist_libnet_a_SOURCES
=
net_serv.cc client.c errmsg.c
nodist_libnet_a_SOURCES
=
net_serv.cc client
_settings.h client
.c errmsg.c
libnet_a_LIBADD
=
$(top_builddir)
/sql/password.
$(OBJEXT)
\
libnet_a_LIBADD
=
$(top_builddir)
/sql/password.
$(OBJEXT)
\
$(top_builddir)
/sql/pack.
$(OBJEXT)
\
$(top_builddir)
/sql/pack.
$(OBJEXT)
\
$(top_builddir)
/sql/sql_state.
$(OBJEXT)
$(top_builddir)
/sql/sql_state.
$(OBJEXT)
...
...
server-tools/instance-manager/parse.cc
View file @
4f62e8b9
...
@@ -31,15 +31,21 @@ enum Token
...
@@ -31,15 +31,21 @@ enum Token
TOK_END
TOK_END
};
};
static
const
char
*
tokens
[]
=
{
struct
tokens_st
"FLUSH"
,
{
"INSTANCE"
,
uint
length
;
"INSTANCES"
,
const
char
*
tok_name
;
"OPTIONS"
,
};
"START"
,
"STATUS"
,
static
struct
tokens_st
tokens
[]
=
{
"STOP"
,
{
5
,
"FLUSH"
},
"SHOW"
,
{
8
,
"INSTANCE"
},
{
9
,
"INSTANCES"
},
{
7
,
"OPTIONS"
},
{
5
,
"START"
},
{
6
,
"STATUS"
},
{
4
,
"STOP"
},
{
4
,
"SHOW"
}
};
};
...
@@ -76,7 +82,8 @@ inline Token find_token(const char *word, uint word_len)
...
@@ -76,7 +82,8 @@ inline Token find_token(const char *word, uint word_len)
int
i
=
0
;
int
i
=
0
;
do
do
{
{
if
(
strncasecmp
(
tokens
[
i
],
word
,
word_len
)
==
0
)
if
(
my_strnncoll
(
default_charset_info
,
(
const
uchar
*
)
tokens
[
i
].
tok_name
,
tokens
[
i
].
length
,
(
const
uchar
*
)
word
,
word_len
)
==
0
)
break
;
break
;
}
}
while
(
++
i
<
TOK_NOT_FOUND
);
while
(
++
i
<
TOK_NOT_FOUND
);
...
...
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