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
041c8a82
Commit
041c8a82
authored
Apr 18, 2007
by
tsmith@siva.hindu.god
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move WEXITSTATUS #define from mysqltest.c to client_priv.h, and
include client_priv.h in mysqltest.c. Portability fix.
parent
68f2cc29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
client/client_priv.h
client/client_priv.h
+10
-1
client/mysqltest.c
client/mysqltest.c
+3
-13
No files found.
client/client_priv.h
View file @
041c8a82
...
...
@@ -23,6 +23,14 @@
#include <errmsg.h>
#include <my_getopt.h>
#ifndef WEXITSTATUS
# ifdef __WIN__
# define WEXITSTATUS(stat_val) (stat_val)
# else
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
# endif
#endif
enum
options_client
{
OPT_CHARSETS_DIR
=
256
,
OPT_DEFAULT_CHARSET
,
...
...
@@ -67,5 +75,6 @@ enum options_client
OPT_SLAP_POST_QUERY
,
OPT_MYSQL_REPLACE_INTO
,
OPT_BASE64_OUTPUT
,
OPT_SERVER_ID
,
OPT_FIX_TABLE_NAMES
,
OPT_FIX_DB_NAMES
,
OPT_SSL_VERIFY_SERVER_CERT
,
OPT_DEBUG_INFO
,
OPT_COLUMN_TYPES
,
OPT_ERROR_LOG_FILE
,
OPT_WRITE_BINLOG
OPT_DEBUG_INFO
,
OPT_COLUMN_TYPES
,
OPT_ERROR_LOG_FILE
,
OPT_WRITE_BINLOG
,
OPT_MAX_CLIENT_OPTION
};
client/mysqltest.c
View file @
041c8a82
...
...
@@ -52,14 +52,6 @@
#include <sys/wait.h>
#endif
#ifndef WEXITSTATUS
# ifdef __WIN__
# define WEXITSTATUS(stat_val) (stat_val)
# else
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
# endif
#endif
/* Use cygwin for --exec and --system before 5.0 */
#if MYSQL_VERSION_ID < 50000
#define USE_CYGWIN
...
...
@@ -81,11 +73,9 @@
};
enum
{
OPT_SKIP_SAFEMALLOC
=
256
,
OPT_SSL_SSL
,
OPT_SSL_KEY
,
OPT_SSL_CERT
,
OPT_SSL_CA
,
OPT_SSL_CAPATH
,
OPT_SSL_CIPHER
,
OPT_PS_PROTOCOL
,
OPT_SP_PROTOCOL
,
OPT_CURSOR_PROTOCOL
,
OPT_VIEW_PROTOCOL
,
OPT_SSL_VERIFY_SERVER_CERT
,
OPT_MAX_CONNECT_RETRIES
,
OPT_MARK_PROGRESS
,
OPT_CHARSETS_DIR
,
OPT_LOG_DIR
OPT_SKIP_SAFEMALLOC
=
OPT_MAX_CLIENT_OPTION
,
OPT_PS_PROTOCOL
,
OPT_SP_PROTOCOL
,
OPT_CURSOR_PROTOCOL
,
OPT_VIEW_PROTOCOL
,
OPT_MAX_CONNECT_RETRIES
,
OPT_MARK_PROGRESS
,
OPT_LOG_DIR
};
static
int
record
=
0
,
opt_sleep
=
-
1
;
...
...
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