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
7a57a16a
Commit
7a57a16a
authored
Sep 06, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.0
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0
parents
9e7a1bb2
87544d67
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
mysys/my_getopt.c
mysys/my_getopt.c
+15
-3
No files found.
mysys/my_getopt.c
View file @
7a57a16a
...
...
@@ -342,11 +342,23 @@ int handle_options(int *argc, char ***argv,
--enable-'option-name'.
*optend was set to '0' if one used --disable-option
*/
my_bool
tmp
=
(
my_bool
)
(
!
optend
||
*
optend
==
'1'
);
*
((
my_bool
*
)
value
)
=
tmp
;
(
*
argc
)
--
;
if
(
!
optend
||
*
optend
==
'1'
||
!
my_strcasecmp
(
&
my_charset_latin1
,
optend
,
"true"
))
*
((
my_bool
*
)
value
)
=
(
my_bool
)
1
;
else
if
(
*
optend
==
'0'
||
!
my_strcasecmp
(
&
my_charset_latin1
,
optend
,
"false"
))
*
((
my_bool
*
)
value
)
=
(
my_bool
)
0
;
else
{
my_getopt_error_reporter
(
WARNING_LEVEL
,
"%s: ignoring option '--%s' due to \
invalid value '%s'
\n
"
,
my_progname
,
optp
->
name
,
optend
);
continue
;
}
get_one_option
(
optp
->
id
,
optp
,
tmp
?
(
char
*
)
"1"
:
disabled_my_option
);
value
?
(
char
*
)
"1"
:
disabled_my_option
);
continue
;
}
argument
=
optend
;
...
...
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