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
85c57e70
Commit
85c57e70
authored
Jul 08, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Bug#4451. According to C/C++ standards, enums should not be used
out of their range.
parent
1a22b760
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
include/my_getopt.h
include/my_getopt.h
+12
-3
No files found.
include/my_getopt.h
View file @
85c57e70
...
@@ -16,8 +16,17 @@
...
@@ -16,8 +16,17 @@
C_MODE_START
C_MODE_START
enum
get_opt_var_type
{
GET_NO_ARG
,
GET_BOOL
,
GET_INT
,
GET_UINT
,
GET_LONG
,
#define GET_NO_ARG 1
GET_ULONG
,
GET_LL
,
GET_ULL
,
GET_STR
,
GET_STR_ALLOC
};
#define GET_BOOL 2
#define GET_INT 3
#define GET_UINT 4
#define GET_LONG 5
#define GET_ULONG 6
#define GET_LL 7
#define GET_ULL 8
#define GET_STR 9
#define GET_STR_ALLOC 10
enum
get_opt_arg_type
{
NO_ARG
,
OPT_ARG
,
REQUIRED_ARG
};
enum
get_opt_arg_type
{
NO_ARG
,
OPT_ARG
,
REQUIRED_ARG
};
struct
my_option
struct
my_option
...
@@ -28,7 +37,7 @@ struct my_option
...
@@ -28,7 +37,7 @@ struct my_option
gptr
*
value
;
/* The variable value */
gptr
*
value
;
/* The variable value */
gptr
*
u_max_value
;
/* The user def. max variable value */
gptr
*
u_max_value
;
/* The user def. max variable value */
const
char
**
str_values
;
/* Pointer to possible values */
const
char
**
str_values
;
/* Pointer to possible values */
enum
get_opt_var_type
var_type
;
ulong
var_type
;
enum
get_opt_arg_type
arg_type
;
enum
get_opt_arg_type
arg_type
;
longlong
def_value
;
/* Default value */
longlong
def_value
;
/* Default value */
longlong
min_value
;
/* Min allowed value */
longlong
min_value
;
/* Min allowed value */
...
...
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