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
0ee744dc
Commit
0ee744dc
authored
Nov 10, 2004
by
Administrator@w2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wl1744 - ndb windoze port
parent
7c98d151
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
ndb/include/ndb_types.h
ndb/include/ndb_types.h
+5
-3
ndb/src/common/util/version.c
ndb/src/common/util/version.c
+3
-2
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+1
-0
ndb/src/ndbapi/ndberror.c
ndb/src/ndbapi/ndberror.c
+2
-1
No files found.
ndb/include/ndb_types.h
View file @
0ee744dc
...
...
@@ -40,15 +40,17 @@ typedef __SIZE_TYPE__ UintPtr;
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
typedef
uintptr_t
UintPtr
;
#endif
#if defined(WIN32) || defined(NDB_WIN32)
typedef
unsigned
__int64
Uint64
;
typedef
signed
__int64
Int64
;
typedef
Uint32
UintPtr
;
typedef
UintPtr
ssize_t
;
#else
typedef
unsigned
long
long
Uint64
;
typedef
signed
long
long
Int64
;
typedef
uintptr_t
UintPtr
;
#endif
#endif
#endif
ndb/src/common/util/version.c
View file @
0ee744dc
...
...
@@ -17,6 +17,7 @@
#include <ndb_global.h>
#include <ndb_version.h>
#include <version.h>
#include <basestring_vsnprintf.h>
Uint32
getMajor
(
Uint32
version
)
{
return
(
version
>>
16
)
&
0xFF
;
...
...
@@ -38,14 +39,14 @@ Uint32 makeVersion(Uint32 major, Uint32 minor, Uint32 build) {
const
char
*
getVersionString
(
Uint32
version
,
const
char
*
status
)
{
char
buff
[
100
];
if
(
status
&&
status
[
0
]
!=
0
)
snprintf
(
buff
,
sizeof
(
buff
),
basestring_
snprintf
(
buff
,
sizeof
(
buff
),
"Version %d.%d.%d (%s)"
,
getMajor
(
version
),
getMinor
(
version
),
getBuild
(
version
),
status
);
else
snprintf
(
buff
,
sizeof
(
buff
),
basestring_
snprintf
(
buff
,
sizeof
(
buff
),
"Version %d.%d.%d"
,
getMajor
(
version
),
getMinor
(
version
),
...
...
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
0ee744dc
...
...
@@ -21,6 +21,7 @@
#include <mgmapi_config_parameters.h>
#include <ndb_limits.h>
#include "InitConfigFileParser.hpp"
#include <m_string.h>
#define MAX_LINE_LENGTH 255
#define KEY_INTERNAL 0
...
...
ndb/src/ndbapi/ndberror.c
View file @
0ee744dc
...
...
@@ -17,6 +17,7 @@
#include <ndb_global.h>
#include <ndberror.h>
#include <basestring_vsnprintf.h>
typedef
struct
ErrorBundle
{
int
code
;
...
...
@@ -594,7 +595,7 @@ int ndb_error_string(int err_no, char *str, unsigned int size)
ndberror_update
(
&
error
);
len
=
snprintf
(
str
,
size
-
1
,
"%s: %s: %s"
,
error
.
message
,
basestring_
snprintf
(
str
,
size
-
1
,
"%s: %s: %s"
,
error
.
message
,
ndberror_status_message
(
error
.
status
),
ndberror_classification_message
(
error
.
classification
));
str
[
size
-
1
]
=
'\0'
;
...
...
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