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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
97423189
Commit
97423189
authored
Sep 06, 2005
by
jani@ua141d10.elisa.omakaista.fi
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
0cf9ca58
28a8f6cd
Changes
1
Hide 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 @
97423189
...
...
@@ -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