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
8a1488cd
Commit
8a1488cd
authored
Oct 21, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-ndb
parents
6357bc75
5f8337fc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
31 deletions
+44
-31
cmd-line-utils/libedit/np/vis.c
cmd-line-utils/libedit/np/vis.c
+42
-29
ndb/src/ndbapi/NdbConnection.cpp
ndb/src/ndbapi/NdbConnection.cpp
+1
-1
ndb/src/ndbapi/NdbDictionaryImpl.cpp
ndb/src/ndbapi/NdbDictionaryImpl.cpp
+1
-1
No files found.
cmd-line-utils/libedit/np/vis.c
View file @
8a1488cd
...
@@ -63,7 +63,7 @@ __weak_alias(vis,_vis)
...
@@ -63,7 +63,7 @@ __weak_alias(vis,_vis)
#include <limits.h>
#include <limits.h>
#include <stdio.h>
#include <stdio.h>
#include <string.h>
#include <string.h>
#include <assert.h>
#undef BELL
#undef BELL
#if defined(__STDC__)
#if defined(__STDC__)
#define BELL '\a'
#define BELL '\a'
...
@@ -79,22 +79,24 @@ __weak_alias(vis,_vis)
...
@@ -79,22 +79,24 @@ __weak_alias(vis,_vis)
#define MAXEXTRAS 5
#define MAXEXTRAS 5
#define MAKEEXTRALIST(flag, extra, orig) \
char
*
MAKEEXTRALIST
(
uint
flag
,
const
char
*
orig
)
do { \
{
const char *o = orig; \
const
char
*
o
=
orig
;
char *e; \
char
*
e
,
*
extra
;
while (*o++) \
while
(
*
o
++
)
continue; \
continue
;
extra = alloca((size_t)((o - orig) + MAXEXTRAS)); \
extra
=
(
char
*
)
malloc
((
size_t
)((
o
-
orig
)
+
MAXEXTRAS
));
for (o = orig, e = extra; (*e++ = *o++) != '\0';) \
assert
(
extra
);
continue; \
for
(
o
=
orig
,
e
=
extra
;
(
*
e
++
=
*
o
++
)
!=
'\0'
;)
e--; \
continue
;
if (flag & VIS_SP) *e++ = ' '; \
e
--
;
if (flag & VIS_TAB) *e++ = '\t'; \
if
(
flag
&
VIS_SP
)
*
e
++
=
' '
;
if (flag & VIS_NL) *e++ = '\n'; \
if
(
flag
&
VIS_TAB
)
*
e
++
=
'\t'
;
if ((flag & VIS_NOSLASH) == 0) *e++ = '\\'; \
if
(
flag
&
VIS_NL
)
*
e
++
=
'\n'
;
*e = '\0'; \
if
((
flag
&
VIS_NOSLASH
)
==
0
)
*
e
++
=
'\\'
;
} while (
/*CONSTCOND*/
0)
*
e
=
'\0'
;
return
extra
;
}
/*
/*
...
@@ -198,15 +200,16 @@ svis(dst, c, flag, nextc, extra)
...
@@ -198,15 +200,16 @@ svis(dst, c, flag, nextc, extra)
int
c
,
flag
,
nextc
;
int
c
,
flag
,
nextc
;
const
char
*
extra
;
const
char
*
extra
;
{
{
char
*
nextra
;
char
*
nextra
,
*
to_be_freed
;
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
MAKEEXTRALIST
(
flag
,
nextra
,
extra
);
nextra
=
to_be_freed
=
MAKEEXTRALIST
(
flag
,
extra
);
if
(
flag
&
VIS_HTTPSTYLE
)
if
(
flag
&
VIS_HTTPSTYLE
)
HVIS
(
dst
,
c
,
flag
,
nextc
,
nextra
);
HVIS
(
dst
,
c
,
flag
,
nextc
,
nextra
);
else
else
SVIS
(
dst
,
c
,
flag
,
nextc
,
nextra
);
SVIS
(
dst
,
c
,
flag
,
nextc
,
nextra
);
*
dst
=
'\0'
;
*
dst
=
'\0'
;
free
(
to_be_freed
);
return
(
dst
);
return
(
dst
);
}
}
...
@@ -235,12 +238,12 @@ strsvis(dst, src, flag, extra)
...
@@ -235,12 +238,12 @@ strsvis(dst, src, flag, extra)
{
{
char
c
;
char
c
;
char
*
start
;
char
*
start
;
char
*
nextra
;
char
*
nextra
,
*
to_be_freed
;
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
src
!=
NULL
);
_DIAGASSERT
(
src
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
MAKEEXTRALIST
(
flag
,
nextra
,
extra
);
nextra
=
to_be_freed
=
MAKEEXTRALIST
(
flag
,
extra
);
if
(
flag
&
VIS_HTTPSTYLE
)
{
if
(
flag
&
VIS_HTTPSTYLE
)
{
for
(
start
=
dst
;
(
c
=
*
src
++
)
!=
'\0'
;
/* empty */
)
for
(
start
=
dst
;
(
c
=
*
src
++
)
!=
'\0'
;
/* empty */
)
HVIS
(
dst
,
c
,
flag
,
*
src
,
nextra
);
HVIS
(
dst
,
c
,
flag
,
*
src
,
nextra
);
...
@@ -249,6 +252,7 @@ strsvis(dst, src, flag, extra)
...
@@ -249,6 +252,7 @@ strsvis(dst, src, flag, extra)
SVIS
(
dst
,
c
,
flag
,
*
src
,
nextra
);
SVIS
(
dst
,
c
,
flag
,
*
src
,
nextra
);
}
}
*
dst
=
'\0'
;
*
dst
=
'\0'
;
free
(
to_be_freed
);
return
(
dst
-
start
);
return
(
dst
-
start
);
}
}
...
@@ -263,12 +267,12 @@ strsvisx(dst, src, len, flag, extra)
...
@@ -263,12 +267,12 @@ strsvisx(dst, src, len, flag, extra)
{
{
char
c
;
char
c
;
char
*
start
;
char
*
start
;
char
*
nextra
;
char
*
nextra
,
*
to_be_freed
;
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
src
!=
NULL
);
_DIAGASSERT
(
src
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
_DIAGASSERT
(
extra
!=
NULL
);
MAKEEXTRALIST
(
flag
,
nextra
,
extra
);
nextra
=
to_be_freed
=
MAKEEXTRALIST
(
flag
,
extra
);
if
(
flag
&
VIS_HTTPSTYLE
)
{
if
(
flag
&
VIS_HTTPSTYLE
)
{
for
(
start
=
dst
;
len
>
0
;
len
--
)
{
for
(
start
=
dst
;
len
>
0
;
len
--
)
{
...
@@ -282,6 +286,7 @@ strsvisx(dst, src, len, flag, extra)
...
@@ -282,6 +286,7 @@ strsvisx(dst, src, len, flag, extra)
}
}
}
}
*
dst
=
'\0'
;
*
dst
=
'\0'
;
free
(
to_be_freed
);
return
(
dst
-
start
);
return
(
dst
-
start
);
}
}
...
@@ -295,16 +300,18 @@ vis(dst, c, flag, nextc)
...
@@ -295,16 +300,18 @@ vis(dst, c, flag, nextc)
int
c
,
flag
,
nextc
;
int
c
,
flag
,
nextc
;
{
{
char
*
extra
;
char
*
extra
,
*
to_be_freed
;
_DIAGASSERT
(
dst
!=
NULL
);
_DIAGASSERT
(
dst
!=
NULL
);
MAKEEXTRALIST
(
flag
,
extra
,
""
);
extra
=
to_be_freed
=
MAKEEXTRALIST
(
flag
,
""
);
if
(
flag
&
VIS_HTTPSTYLE
)
if
(
flag
&
VIS_HTTPSTYLE
)
HVIS
(
dst
,
c
,
flag
,
nextc
,
extra
);
HVIS
(
dst
,
c
,
flag
,
nextc
,
extra
);
else
else
SVIS
(
dst
,
c
,
flag
,
nextc
,
extra
);
SVIS
(
dst
,
c
,
flag
,
nextc
,
extra
);
*
dst
=
'\0'
;
*
dst
=
'\0'
;
free
(
to_be_freed
);
return
(
dst
);
return
(
dst
);
}
}
...
@@ -326,9 +333,12 @@ strvis(dst, src, flag)
...
@@ -326,9 +333,12 @@ strvis(dst, src, flag)
int
flag
;
int
flag
;
{
{
char
*
extra
;
char
*
extra
;
int
tmp
;
MAKEEXTRALIST
(
flag
,
extra
,
""
);
extra
=
MAKEEXTRALIST
(
flag
,
""
);
return
(
strsvis
(
dst
,
src
,
flag
,
extra
));
tmp
=
strsvis
(
dst
,
src
,
flag
,
extra
);
free
(
extra
);
return
tmp
;
}
}
...
@@ -340,8 +350,11 @@ strvisx(dst, src, len, flag)
...
@@ -340,8 +350,11 @@ strvisx(dst, src, len, flag)
int
flag
;
int
flag
;
{
{
char
*
extra
;
char
*
extra
;
int
tmp
;
MAKEEXTRALIST
(
flag
,
extra
,
""
);
extra
=
MAKEEXTRALIST
(
flag
,
""
);
return
(
strsvisx
(
dst
,
src
,
len
,
flag
,
extra
));
tmp
=
strsvisx
(
dst
,
src
,
len
,
flag
,
extra
);
free
(
extra
);
return
tmp
;
}
}
#endif
#endif
ndb/src/ndbapi/NdbConnection.cpp
View file @
8a1488cd
...
@@ -1646,7 +1646,7 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf)
...
@@ -1646,7 +1646,7 @@ NdbConnection::receiveTCKEY_FAILCONF(const TcKeyFailConf * failConf)
break
;
break
;
case
NdbOperation
:
:
NotDefined
:
case
NdbOperation
:
:
NotDefined
:
case
NdbOperation
:
:
NotDefined2
:
case
NdbOperation
:
:
NotDefined2
:
assert
();
assert
(
false
);
break
;
break
;
}
//if
}
//if
}
//while
}
//while
...
...
ndb/src/ndbapi/NdbDictionaryImpl.cpp
View file @
8a1488cd
...
@@ -149,7 +149,7 @@ NdbColumnImpl::init(Type t)
...
@@ -149,7 +149,7 @@ NdbColumnImpl::init(Type t)
m_cs
=
default_cs
;
m_cs
=
default_cs
;
break
;
break
;
case
Undefined
:
case
Undefined
:
assert
();
assert
(
false
);
break
;
break
;
}
}
m_pk
=
false
;
m_pk
=
false
;
...
...
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