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
eb302303
Commit
eb302303
authored
May 19, 2017
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation warnings in Connect
parent
6dcc3789
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
71 additions
and
72 deletions
+71
-72
storage/connect/array.cpp
storage/connect/array.cpp
+5
-5
storage/connect/array.h
storage/connect/array.h
+2
-2
storage/connect/blkfil.cpp
storage/connect/blkfil.cpp
+4
-4
storage/connect/blkfil.h
storage/connect/blkfil.h
+4
-4
storage/connect/block.h
storage/connect/block.h
+2
-2
storage/connect/colblk.cpp
storage/connect/colblk.cpp
+2
-2
storage/connect/colblk.h
storage/connect/colblk.h
+2
-2
storage/connect/csort.h
storage/connect/csort.h
+2
-2
storage/connect/filamvct.cpp
storage/connect/filamvct.cpp
+0
-1
storage/connect/filter.cpp
storage/connect/filter.cpp
+5
-5
storage/connect/filter.h
storage/connect/filter.h
+2
-2
storage/connect/ha_connect.cc
storage/connect/ha_connect.cc
+1
-1
storage/connect/plgdbutl.cpp
storage/connect/plgdbutl.cpp
+1
-1
storage/connect/tabcol.cpp
storage/connect/tabcol.cpp
+4
-4
storage/connect/tabcol.h
storage/connect/tabcol.h
+4
-4
storage/connect/tabdos.cpp
storage/connect/tabdos.cpp
+2
-2
storage/connect/tabdos.h
storage/connect/tabdos.h
+2
-2
storage/connect/tabjdbc.h
storage/connect/tabjdbc.h
+1
-1
storage/connect/table.cpp
storage/connect/table.cpp
+3
-3
storage/connect/tabodbc.h
storage/connect/tabodbc.h
+1
-1
storage/connect/tabsys.h
storage/connect/tabsys.h
+2
-2
storage/connect/tabxml.h
storage/connect/tabxml.h
+1
-1
storage/connect/value.cpp
storage/connect/value.cpp
+4
-4
storage/connect/value.h
storage/connect/value.h
+3
-3
storage/connect/xindex.cpp
storage/connect/xindex.cpp
+2
-2
storage/connect/xindex.h
storage/connect/xindex.h
+2
-2
storage/connect/xobject.cpp
storage/connect/xobject.cpp
+4
-4
storage/connect/xobject.h
storage/connect/xobject.h
+2
-2
storage/connect/xtable.h
storage/connect/xtable.h
+2
-2
No files found.
storage/connect/array.cpp
View file @
eb302303
...
@@ -986,7 +986,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
...
@@ -986,7 +986,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
for
(
i
=
0
;
i
<
Nval
;
i
++
)
{
for
(
i
=
0
;
i
<
Nval
;
i
++
)
{
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
Print
(
g
,
tp
,
z
);
Value
->
Print
s
(
g
,
tp
,
z
);
len
+=
strlen
(
tp
);
len
+=
strlen
(
tp
);
}
// enfor i
}
// enfor i
...
@@ -998,7 +998,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
...
@@ -998,7 +998,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
for
(
i
=
0
;
i
<
Nval
;)
{
for
(
i
=
0
;
i
<
Nval
;)
{
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
Print
(
g
,
tp
,
z
);
Value
->
Print
s
(
g
,
tp
,
z
);
strcat
(
p
,
tp
);
strcat
(
p
,
tp
);
strcat
(
p
,
(
++
i
==
Nval
)
?
")"
:
","
);
strcat
(
p
,
(
++
i
==
Nval
)
?
")"
:
","
);
}
// enfor i
}
// enfor i
...
@@ -1012,7 +1012,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
...
@@ -1012,7 +1012,7 @@ PSZ ARRAY::MakeArrayList(PGLOBAL g)
/***********************************************************************/
/***********************************************************************/
/* Make file output of ARRAY contents. */
/* Make file output of ARRAY contents. */
/***********************************************************************/
/***********************************************************************/
void
ARRAY
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
ARRAY
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
int
lim
=
MY_MIN
(
Nval
,
10
);
int
lim
=
MY_MIN
(
Nval
,
10
);
...
@@ -1029,7 +1029,7 @@ void ARRAY::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -1029,7 +1029,7 @@ void ARRAY::Print(PGLOBAL g, FILE *f, uint n)
if
(
Vblp
)
if
(
Vblp
)
for
(
int
i
=
0
;
i
<
lim
;
i
++
)
{
for
(
int
i
=
0
;
i
<
lim
;
i
++
)
{
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
SetValue_pvblk
(
Vblp
,
i
);
Value
->
Print
(
g
,
f
,
n
+
4
);
Value
->
Print
f
(
g
,
f
,
n
+
4
);
}
// endfor i
}
// endfor i
}
else
}
else
...
@@ -1040,7 +1040,7 @@ void ARRAY::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -1040,7 +1040,7 @@ void ARRAY::Print(PGLOBAL g, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of ARRAY contents. */
/* Make string output of ARRAY contents. */
/***********************************************************************/
/***********************************************************************/
void
ARRAY
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
z
)
void
ARRAY
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
z
)
{
{
if
(
z
<
16
)
if
(
z
<
16
)
return
;
return
;
...
...
storage/connect/array.h
View file @
eb302303
...
@@ -56,8 +56,8 @@ class DllExport ARRAY : public XOBJECT, public CSORT { // Array descblock
...
@@ -56,8 +56,8 @@ class DllExport ARRAY : public XOBJECT, public CSORT { // Array descblock
virtual
bool
Compare
(
PXOB
)
{
assert
(
false
);
return
false
;}
virtual
bool
Compare
(
PXOB
)
{
assert
(
false
);
return
false
;}
virtual
bool
SetFormat
(
PGLOBAL
,
FORMAT
&
)
{
assert
(
false
);
return
false
;}
virtual
bool
SetFormat
(
PGLOBAL
,
FORMAT
&
)
{
assert
(
false
);
return
false
;}
//virtual int CheckSpcCol(PTDB, int) {return 0;}
//virtual int CheckSpcCol(PTDB, int) {return 0;}
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
// void Empty(void);
// void Empty(void);
void
SetPrecision
(
PGLOBAL
g
,
int
p
);
void
SetPrecision
(
PGLOBAL
g
,
int
p
);
bool
AddValue
(
PGLOBAL
g
,
PSZ
sp
);
bool
AddValue
(
PGLOBAL
g
,
PSZ
sp
);
...
...
storage/connect/blkfil.cpp
View file @
eb302303
...
@@ -56,7 +56,7 @@ BLOCKFILTER::BLOCKFILTER(PTDBDOS tdbp, int op)
...
@@ -56,7 +56,7 @@ BLOCKFILTER::BLOCKFILTER(PTDBDOS tdbp, int op)
/***********************************************************************/
/***********************************************************************/
/* Make file output of BLOCKFILTER contents. */
/* Make file output of BLOCKFILTER contents. */
/***********************************************************************/
/***********************************************************************/
void
BLOCKFILTER
::
Print
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
void
BLOCKFILTER
::
Print
f
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
...
@@ -70,7 +70,7 @@ void BLOCKFILTER::Print(PGLOBAL, FILE *f, uint n)
...
@@ -70,7 +70,7 @@ void BLOCKFILTER::Print(PGLOBAL, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of BLOCKFILTER contents. */
/* Make string output of BLOCKFILTER contents. */
/***********************************************************************/
/***********************************************************************/
void
BLOCKFILTER
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
z
)
void
BLOCKFILTER
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
z
)
{
{
strncat
(
ps
,
"BlockFilter(s)"
,
z
);
strncat
(
ps
,
"BlockFilter(s)"
,
z
);
}
// end of Print
}
// end of Print
...
@@ -995,7 +995,7 @@ int BLOCKINDEX::BlockEval(PGLOBAL g)
...
@@ -995,7 +995,7 @@ int BLOCKINDEX::BlockEval(PGLOBAL g)
/***********************************************************************/
/***********************************************************************/
/* Make file output of BLOCKINDEX contents. */
/* Make file output of BLOCKINDEX contents. */
/***********************************************************************/
/***********************************************************************/
void BLOCKINDEX::Print(PGLOBAL g, FILE *f, UINT n)
void BLOCKINDEX::Print
f
(PGLOBAL g, FILE *f, UINT n)
{
{
char m[64];
char m[64];
...
@@ -1013,7 +1013,7 @@ void BLOCKINDEX::Print(PGLOBAL g, FILE *f, UINT n)
...
@@ -1013,7 +1013,7 @@ void BLOCKINDEX::Print(PGLOBAL g, FILE *f, UINT n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of BLOCKINDEX contents. */
/* Make string output of BLOCKINDEX contents. */
/***********************************************************************/
/***********************************************************************/
void BLOCKINDEX::Print(PGLOBAL g, char *ps, UINT z)
void BLOCKINDEX::Print
s
(PGLOBAL g, char *ps, UINT z)
{
{
strncat(ps, "BlockIndex(es)", z);
strncat(ps, "BlockIndex(es)", z);
} // end of Print
} // end of Print
...
...
storage/connect/blkfil.h
View file @
eb302303
...
@@ -27,8 +27,8 @@ class DllExport BLOCKFILTER : public BLOCK { /* Block Filter */
...
@@ -27,8 +27,8 @@ class DllExport BLOCKFILTER : public BLOCK { /* Block Filter */
// Methods
// Methods
virtual
void
Reset
(
PGLOBAL
)
=
0
;
virtual
void
Reset
(
PGLOBAL
)
=
0
;
virtual
int
BlockEval
(
PGLOBAL
)
=
0
;
virtual
int
BlockEval
(
PGLOBAL
)
=
0
;
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
protected:
protected:
BLOCKFILTER
(
void
)
{}
// Standard constructor not to be used
BLOCKFILTER
(
void
)
{}
// Standard constructor not to be used
...
@@ -234,8 +234,8 @@ class DllExport BLOCKINDEX : public BLOCK { /* Indexing Test Block */
...
@@ -234,8 +234,8 @@ class DllExport BLOCKINDEX : public BLOCK { /* Indexing Test Block */
// Methods
// Methods
void Reset(void);
void Reset(void);
virtual int BlockEval(PGLOBAL);
virtual int BlockEval(PGLOBAL);
virtual void Print(PGLOBAL g, FILE *f, UINT n);
virtual void Print
f
(PGLOBAL g, FILE *f, UINT n);
virtual void Print(PGLOBAL g, char *ps, UINT z);
virtual void Print
s
(PGLOBAL g, char *ps, UINT z);
protected:
protected:
BLOCKINDEX(void) {} // Standard constructor not to be used
BLOCKINDEX(void) {} // Standard constructor not to be used
...
...
storage/connect/block.h
View file @
eb302303
...
@@ -44,8 +44,8 @@ class DllExport BLOCK {
...
@@ -44,8 +44,8 @@ class DllExport BLOCK {
return
(
PlugSubAlloc
(
g
,
p
,
size
));
return
(
PlugSubAlloc
(
g
,
p
,
size
));
}
// end of new
}
// end of new
virtual
void
Print
(
PGLOBAL
,
FILE
*
,
uint
)
{}
// Produce file desc
virtual
void
Print
f
(
PGLOBAL
,
FILE
*
,
uint
)
{}
// Produce file desc
virtual
void
Print
(
PGLOBAL
,
char
*
,
uint
)
{}
// Produce string desc
virtual
void
Print
s
(
PGLOBAL
,
char
*
,
uint
)
{}
// Produce string desc
#if !defined(__BORLANDC__)
#if !defined(__BORLANDC__)
// Avoid warning C4291 by defining a matching dummy delete operator
// Avoid warning C4291 by defining a matching dummy delete operator
...
...
storage/connect/colblk.cpp
View file @
eb302303
...
@@ -214,7 +214,7 @@ void COLBLK::WriteColumn(PGLOBAL g)
...
@@ -214,7 +214,7 @@ void COLBLK::WriteColumn(PGLOBAL g)
/***********************************************************************/
/***********************************************************************/
/* Make file output of a column descriptor block. */
/* Make file output of a column descriptor block. */
/***********************************************************************/
/***********************************************************************/
void
COLBLK
::
Print
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
void
COLBLK
::
Print
f
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
int
i
;
int
i
;
...
@@ -237,7 +237,7 @@ void COLBLK::Print(PGLOBAL, FILE *f, uint n)
...
@@ -237,7 +237,7 @@ void COLBLK::Print(PGLOBAL, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of a column descriptor block. */
/* Make string output of a column descriptor block. */
/***********************************************************************/
/***********************************************************************/
void
COLBLK
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
)
void
COLBLK
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
)
{
{
sprintf
(
ps
,
"R%d.%s"
,
To_Tdb
->
GetTdb_No
(),
Name
);
sprintf
(
ps
,
"R%d.%s"
,
To_Tdb
->
GetTdb_No
(),
Name
);
}
// end of Print
}
// end of Print
...
...
storage/connect/colblk.h
View file @
eb302303
...
@@ -72,8 +72,8 @@ class DllExport COLBLK : public XOBJECT {
...
@@ -72,8 +72,8 @@ class DllExport COLBLK : public XOBJECT {
virtual
void
SetTo_Val
(
PVAL
)
{}
virtual
void
SetTo_Val
(
PVAL
)
{}
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
,
uint
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
,
uint
);
virtual
bool
VarSize
(
void
)
{
return
false
;}
virtual
bool
VarSize
(
void
)
{
return
false
;}
bool
InitValue
(
PGLOBAL
g
);
bool
InitValue
(
PGLOBAL
g
);
...
...
storage/connect/csort.h
View file @
eb302303
...
@@ -49,8 +49,8 @@ class DllExport CSORT {
...
@@ -49,8 +49,8 @@ class DllExport CSORT {
public:
public:
// Methods
// Methods
int
Qsort
(
PGLOBAL
g
,
int
n
);
/* Sort calling routine */
int
Qsort
(
PGLOBAL
g
,
int
n
);
/* Sort calling routine */
//virtual void Print(PGLOBAL g, FILE *f, uint n);
//virtual void Print
f
(PGLOBAL g, FILE *f, uint n);
//virtual void Print(PGLOBAL g, char *ps, uint z);
//virtual void Print
s
(PGLOBAL g, char *ps, uint z);
#ifdef DEBTRACE
#ifdef DEBTRACE
int
GetNcmp
(
void
)
{
return
num_comp
;}
int
GetNcmp
(
void
)
{
return
num_comp
;}
#endif
#endif
...
...
storage/connect/filamvct.cpp
View file @
eb302303
...
@@ -569,7 +569,6 @@ bool VCTFAM::InitInsert(PGLOBAL g)
...
@@ -569,7 +569,6 @@ bool VCTFAM::InitInsert(PGLOBAL g)
CurNum
=
0
;
CurNum
=
0
;
AddBlock
=
!
MaxBlk
;
AddBlock
=
!
MaxBlk
;
}
else
{
}
else
{
int
rc
;
PVCTCOL
cp
=
(
PVCTCOL
)
Tdbp
->
GetColumns
();
PVCTCOL
cp
=
(
PVCTCOL
)
Tdbp
->
GetColumns
();
// The starting point must be at the end of file as for append.
// The starting point must be at the end of file as for append.
...
...
storage/connect/filter.cpp
View file @
eb302303
...
@@ -1409,7 +1409,7 @@ PFIL FILTER::Copy(PTABS t)
...
@@ -1409,7 +1409,7 @@ PFIL FILTER::Copy(PTABS t)
/*********************************************************************/
/*********************************************************************/
/* Make file output of FILTER contents. */
/* Make file output of FILTER contents. */
/*********************************************************************/
/*********************************************************************/
void
FILTER
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
FILTER
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
...
@@ -1431,7 +1431,7 @@ void FILTER::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -1431,7 +1431,7 @@ void FILTER::Print(PGLOBAL g, FILE *f, uint n)
if
(
lin
&&
fp
->
GetArgType
(
i
)
==
TYPE_FILTER
)
if
(
lin
&&
fp
->
GetArgType
(
i
)
==
TYPE_FILTER
)
fprintf
(
f
,
"%s Filter at %p
\n
"
,
m
,
fp
->
Arg
(
i
));
fprintf
(
f
,
"%s Filter at %p
\n
"
,
m
,
fp
->
Arg
(
i
));
else
else
fp
->
Arg
(
i
)
->
Print
(
g
,
f
,
n
+
2
);
fp
->
Arg
(
i
)
->
Print
f
(
g
,
f
,
n
+
2
);
}
// endfor i
}
// endfor i
...
@@ -1442,7 +1442,7 @@ void FILTER::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -1442,7 +1442,7 @@ void FILTER::Print(PGLOBAL g, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of TABLE contents (z should be checked). */
/* Make string output of TABLE contents (z should be checked). */
/***********************************************************************/
/***********************************************************************/
void
FILTER
::
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
void
FILTER
::
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
{
{
#define FLEN 100
#define FLEN 100
...
@@ -1470,7 +1470,7 @@ void FILTER::Print(PGLOBAL g, char *ps, uint z)
...
@@ -1470,7 +1470,7 @@ void FILTER::Print(PGLOBAL g, char *ps, uint z)
bcp
=
bxp
;
bcp
=
bxp
;
p
=
bcp
->
Cold
;
p
=
bcp
->
Cold
;
n
=
FLEN
;
n
=
FLEN
;
fp
->
Arg
(
0
)
->
Print
(
g
,
p
,
n
);
fp
->
Arg
(
0
)
->
Print
s
(
g
,
p
,
n
);
n
=
FLEN
-
strlen
(
p
);
n
=
FLEN
-
strlen
(
p
);
switch
(
fp
->
Opc
)
{
switch
(
fp
->
Opc
)
{
...
@@ -1516,7 +1516,7 @@ void FILTER::Print(PGLOBAL g, char *ps, uint z)
...
@@ -1516,7 +1516,7 @@ void FILTER::Print(PGLOBAL g, char *ps, uint z)
n
=
FLEN
-
strlen
(
p
);
n
=
FLEN
-
strlen
(
p
);
p
+=
strlen
(
p
);
p
+=
strlen
(
p
);
fp
->
Arg
(
1
)
->
Print
(
g
,
p
,
n
);
fp
->
Arg
(
1
)
->
Print
s
(
g
,
p
,
n
);
}
else
}
else
if
(
!
bcp
)
{
if
(
!
bcp
)
{
strncat
(
ps
,
"???"
,
z
);
strncat
(
ps
,
"???"
,
z
);
...
...
storage/connect/filter.h
View file @
eb302303
...
@@ -61,8 +61,8 @@ class DllExport FILTER : public XOBJECT { /* Filter description block */
...
@@ -61,8 +61,8 @@ class DllExport FILTER : public XOBJECT { /* Filter description block */
//virtual PXOB CheckSubQuery(PGLOBAL, PSQL);
//virtual PXOB CheckSubQuery(PGLOBAL, PSQL);
//virtual bool CheckLocal(PTDB);
//virtual bool CheckLocal(PTDB);
//virtual int CheckSpcCol(PTDB tdbp, int n);
//virtual int CheckSpcCol(PTDB tdbp, int n);
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
// PFIL Linearize(bool nosep);
// PFIL Linearize(bool nosep);
// PFIL Link(PGLOBAL g, PFIL fil2);
// PFIL Link(PGLOBAL g, PFIL fil2);
// PFIL RemoveLastSep(void);
// PFIL RemoveLastSep(void);
...
...
storage/connect/ha_connect.cc
View file @
eb302303
...
@@ -1034,7 +1034,7 @@ PCSZ GetListOption(PGLOBAL g, PCSZ opname, PCSZ oplist, PCSZ def)
...
@@ -1034,7 +1034,7 @@ PCSZ GetListOption(PGLOBAL g, PCSZ opname, PCSZ oplist, PCSZ def)
pv
=
strchr
(
pk
,
'='
);
pv
=
strchr
(
pk
,
'='
);
if
(
pv
&&
(
!
pn
||
pv
<
pn
))
{
if
(
pv
&&
(
!
pn
||
pv
<
pn
))
{
n
=
MY_MIN
(
pv
-
pk
,
sizeof
(
key
)
-
1
);
n
=
MY_MIN
(
pv
-
pk
,
(
int
)
sizeof
(
key
)
-
1
);
memcpy
(
key
,
pk
,
n
);
memcpy
(
key
,
pk
,
n
);
key
[
n
]
=
0
;
key
[
n
]
=
0
;
pv
++
;
pv
++
;
...
...
storage/connect/plgdbutl.cpp
View file @
eb302303
...
@@ -1492,7 +1492,7 @@ void PlugPutOut(PGLOBAL g, FILE *f, short t, void *v, uint n)
...
@@ -1492,7 +1492,7 @@ void PlugPutOut(PGLOBAL g, FILE *f, short t, void *v, uint n)
case
TYPE_TABLE
:
case
TYPE_TABLE
:
case
TYPE_TDB
:
case
TYPE_TDB
:
case
TYPE_XOBJECT
:
case
TYPE_XOBJECT
:
((
PBLOCK
)
v
)
->
Print
(
g
,
f
,
n
-
2
);
((
PBLOCK
)
v
)
->
Print
f
(
g
,
f
,
n
-
2
);
break
;
break
;
default:
default:
...
...
storage/connect/tabcol.cpp
View file @
eb302303
...
@@ -73,7 +73,7 @@ PTABLE XTAB::Link(PTABLE tab2)
...
@@ -73,7 +73,7 @@ PTABLE XTAB::Link(PTABLE tab2)
/***********************************************************************/
/***********************************************************************/
/* Make file output of XTAB contents. */
/* Make file output of XTAB contents. */
/***********************************************************************/
/***********************************************************************/
void
XTAB
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
XTAB
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
...
@@ -91,7 +91,7 @@ void XTAB::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -91,7 +91,7 @@ void XTAB::Print(PGLOBAL g, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of XTAB contents. */
/* Make string output of XTAB contents. */
/***********************************************************************/
/***********************************************************************/
void
XTAB
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
z
)
void
XTAB
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
z
)
{
{
char
buf
[
128
];
char
buf
[
128
];
int
i
,
n
=
(
int
)
z
-
1
;
int
i
,
n
=
(
int
)
z
-
1
;
...
@@ -134,7 +134,7 @@ bool COLUMN::SetFormat(PGLOBAL g, FORMAT&)
...
@@ -134,7 +134,7 @@ bool COLUMN::SetFormat(PGLOBAL g, FORMAT&)
/***********************************************************************/
/***********************************************************************/
/* Make file output of COLUMN contents. */
/* Make file output of COLUMN contents. */
/***********************************************************************/
/***********************************************************************/
void
COLUMN
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
COLUMN
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
...
@@ -154,7 +154,7 @@ void COLUMN::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -154,7 +154,7 @@ void COLUMN::Print(PGLOBAL g, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of COLUMN contents. */
/* Make string output of COLUMN contents. */
/***********************************************************************/
/***********************************************************************/
void
COLUMN
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
z
)
void
COLUMN
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
z
)
{
{
char
buf
[
80
];
char
buf
[
80
];
...
...
storage/connect/tabcol.h
View file @
eb302303
...
@@ -38,8 +38,8 @@ class DllExport XTAB: public BLOCK { // Table Name-Schema-Srcdef block.
...
@@ -38,8 +38,8 @@ class DllExport XTAB: public BLOCK { // Table Name-Schema-Srcdef block.
// Methods
// Methods
PTABLE
Link
(
PTABLE
);
PTABLE
Link
(
PTABLE
);
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
protected:
protected:
// Members
// Members
...
@@ -78,8 +78,8 @@ class DllExport COLUMN: public XOBJECT { // Column Name/Qualifier block.
...
@@ -78,8 +78,8 @@ class DllExport COLUMN: public XOBJECT { // Column Name/Qualifier block.
void
SetTo_Col
(
PCOL
colp
)
{
To_Col
=
colp
;}
void
SetTo_Col
(
PCOL
colp
)
{
To_Col
=
colp
;}
// Methods
// Methods
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
// All methods below should never be used for COLUMN's
// All methods below should never be used for COLUMN's
virtual
void
Reset
(
void
)
{
assert
(
false
);}
virtual
void
Reset
(
void
)
{
assert
(
false
);}
virtual
bool
Compare
(
PXOB
)
{
assert
(
false
);
return
false
;}
virtual
bool
Compare
(
PXOB
)
{
assert
(
false
);
return
false
;}
...
...
storage/connect/tabdos.cpp
View file @
eb302303
...
@@ -2871,9 +2871,9 @@ bool DOSCOL::AddDistinctValue(PGLOBAL g)
...
@@ -2871,9 +2871,9 @@ bool DOSCOL::AddDistinctValue(PGLOBAL g)
/***********************************************************************/
/***********************************************************************/
/* Make file output of a Dos column descriptor block. */
/* Make file output of a Dos column descriptor block. */
/***********************************************************************/
/***********************************************************************/
void
DOSCOL
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
DOSCOL
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
COLBLK
::
Print
(
g
,
f
,
n
);
COLBLK
::
Print
f
(
g
,
f
,
n
);
}
// end of Print
}
// end of Print
/* ------------------------------------------------------------------- */
/* ------------------------------------------------------------------- */
...
...
storage/connect/tabdos.h
View file @
eb302303
...
@@ -232,12 +232,12 @@ class DllExport DOSCOL : public COLBLK {
...
@@ -232,12 +232,12 @@ class DllExport DOSCOL : public COLBLK {
virtual
PVBLK
GetDval
(
void
)
{
return
Dval
;}
virtual
PVBLK
GetDval
(
void
)
{
return
Dval
;}
// Methods
// Methods
using
COLBLK
::
Print
;
//
using COLBLK::Print;
virtual
bool
VarSize
(
void
);
virtual
bool
VarSize
(
void
);
virtual
bool
SetBuffer
(
PGLOBAL
g
,
PVAL
value
,
bool
ok
,
bool
check
);
virtual
bool
SetBuffer
(
PGLOBAL
g
,
PVAL
value
,
bool
ok
,
bool
check
);
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
,
uint
);
protected:
protected:
virtual
bool
SetMinMax
(
PGLOBAL
g
);
virtual
bool
SetMinMax
(
PGLOBAL
g
);
...
...
storage/connect/tabjdbc.h
View file @
eb302303
...
@@ -173,7 +173,7 @@ class JSRCCOL : public JDBCCOL {
...
@@ -173,7 +173,7 @@ class JSRCCOL : public JDBCCOL {
// Methods
// Methods
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
// void Print(PGLOBAL g, FILE *, uint);
// void Print
f
(PGLOBAL g, FILE *, uint);
protected:
protected:
// Members
// Members
...
...
storage/connect/table.cpp
View file @
eb302303
...
@@ -299,7 +299,7 @@ bool TDB::SetRecpos(PGLOBAL g, int)
...
@@ -299,7 +299,7 @@ bool TDB::SetRecpos(PGLOBAL g, int)
return
true
;
return
true
;
}
// end of SetRecpos
}
// end of SetRecpos
void
TDB
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
TDB
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
PCOL
cp
;
PCOL
cp
;
char
m
[
64
];
char
m
[
64
];
...
@@ -315,13 +315,13 @@ void TDB::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -315,13 +315,13 @@ void TDB::Print(PGLOBAL g, FILE *f, uint n)
fprintf
(
f
,
"%s Columns (deg=%d):
\n
"
,
m
,
tp
->
Degree
);
fprintf
(
f
,
"%s Columns (deg=%d):
\n
"
,
m
,
tp
->
Degree
);
for
(
cp
=
tp
->
Columns
;
cp
;
cp
=
cp
->
GetNext
())
for
(
cp
=
tp
->
Columns
;
cp
;
cp
=
cp
->
GetNext
())
cp
->
Print
(
g
,
f
,
n
);
cp
->
Print
f
(
g
,
f
,
n
);
}
/* endfor tp */
}
/* endfor tp */
}
// end of Print
}
// end of Print
void
TDB
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
)
void
TDB
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
)
{
{
sprintf
(
ps
,
"R%d.%s"
,
Tdb_No
,
Name
);
sprintf
(
ps
,
"R%d.%s"
,
Tdb_No
,
Name
);
}
// end of Print
}
// end of Print
...
...
storage/connect/tabodbc.h
View file @
eb302303
...
@@ -187,7 +187,7 @@ class XSRCCOL : public ODBCCOL {
...
@@ -187,7 +187,7 @@ class XSRCCOL : public ODBCCOL {
// Methods
// Methods
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
ReadColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
virtual
void
WriteColumn
(
PGLOBAL
g
);
// void Print(PGLOBAL g, FILE *, uint);
// void Print
f
(PGLOBAL g, FILE *, uint);
protected:
protected:
// Members
// Members
...
...
storage/connect/tabsys.h
View file @
eb302303
...
@@ -62,7 +62,7 @@ class TDBINI : public TDBASE {
...
@@ -62,7 +62,7 @@ class TDBINI : public TDBASE {
virtual
int
GetProgCur
(
void
)
{
return
N
;}
virtual
int
GetProgCur
(
void
)
{
return
N
;}
//virtual int GetAffectedRows(void) {return 0;}
//virtual int GetAffectedRows(void) {return 0;}
virtual
PCSZ
GetFile
(
PGLOBAL
g
)
{
return
Ifile
;}
virtual
PCSZ
GetFile
(
PGLOBAL
g
)
{
return
Ifile
;}
virtual
void
SetFile
(
PGLOBAL
g
,
PSZ
fn
)
{
Ifile
=
fn
;}
virtual
void
SetFile
(
PGLOBAL
g
,
P
C
SZ
fn
)
{
Ifile
=
fn
;}
virtual
void
ResetDB
(
void
)
{
Seclist
=
Section
=
NULL
;
N
=
0
;}
virtual
void
ResetDB
(
void
)
{
Seclist
=
Section
=
NULL
;
N
=
0
;}
virtual
void
ResetSize
(
void
)
{
MaxSize
=
-
1
;
Seclist
=
NULL
;}
virtual
void
ResetSize
(
void
)
{
MaxSize
=
-
1
;
Seclist
=
NULL
;}
virtual
int
RowNumber
(
PGLOBAL
g
,
bool
b
=
false
)
{
return
N
;}
virtual
int
RowNumber
(
PGLOBAL
g
,
bool
b
=
false
)
{
return
N
;}
...
@@ -80,7 +80,7 @@ class TDBINI : public TDBASE {
...
@@ -80,7 +80,7 @@ class TDBINI : public TDBASE {
protected:
protected:
// Members
// Members
char
*
Ifile
;
// The INI file
PCSZ
Ifile
;
// The INI file
char
*
Seclist
;
// The section list
char
*
Seclist
;
// The section list
char
*
Section
;
// The current section
char
*
Section
;
// The current section
int
Seclen
;
// Length of seclist buffer
int
Seclen
;
// Length of seclist buffer
...
...
storage/connect/tabxml.h
View file @
eb302303
...
@@ -75,7 +75,7 @@ class DllExport TDBXML : public TDBASE {
...
@@ -75,7 +75,7 @@ class DllExport TDBXML : public TDBASE {
virtual
int
GetRecpos
(
void
);
virtual
int
GetRecpos
(
void
);
virtual
int
GetProgCur
(
void
)
{
return
N
;}
virtual
int
GetProgCur
(
void
)
{
return
N
;}
virtual
PCSZ
GetFile
(
PGLOBAL
g
)
{
return
Xfile
;}
virtual
PCSZ
GetFile
(
PGLOBAL
g
)
{
return
Xfile
;}
virtual
void
SetFile
(
PGLOBAL
g
,
PSZ
fn
)
{
Xfile
=
fn
;}
virtual
void
SetFile
(
PGLOBAL
g
,
P
C
SZ
fn
)
{
Xfile
=
fn
;}
virtual
void
ResetDB
(
void
)
{
N
=
0
;}
virtual
void
ResetDB
(
void
)
{
N
=
0
;}
virtual
void
ResetSize
(
void
)
{
MaxSize
=
-
1
;}
virtual
void
ResetSize
(
void
)
{
MaxSize
=
-
1
;}
virtual
int
RowNumber
(
PGLOBAL
g
,
bool
b
=
false
);
virtual
int
RowNumber
(
PGLOBAL
g
,
bool
b
=
false
);
...
...
storage/connect/value.cpp
View file @
eb302303
...
@@ -561,7 +561,7 @@ bool VALUE::Compute(PGLOBAL g, PVAL *, int, OPVAL)
...
@@ -561,7 +561,7 @@ bool VALUE::Compute(PGLOBAL g, PVAL *, int, OPVAL)
/***********************************************************************/
/***********************************************************************/
/* Make file output of an object value. */
/* Make file output of an object value. */
/***********************************************************************/
/***********************************************************************/
void
VALUE
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
VALUE
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
],
buf
[
64
];
char
m
[
64
],
buf
[
64
];
...
@@ -571,14 +571,14 @@ void VALUE::Print(PGLOBAL g, FILE *f, uint n)
...
@@ -571,14 +571,14 @@ void VALUE::Print(PGLOBAL g, FILE *f, uint n)
if
(
Null
)
if
(
Null
)
fprintf
(
f
,
"%s<null>
\n
"
,
m
);
fprintf
(
f
,
"%s<null>
\n
"
,
m
);
else
else
fprintf
(
f
,
strcat
(
strcat
(
GetCharString
(
buf
),
"
\n
"
),
m
)
);
fprintf
(
f
,
"%s%s%s"
,
GetCharString
(
buf
),
"
\n
"
,
m
);
}
/* end of Print */
}
/* end of Print */
/***********************************************************************/
/***********************************************************************/
/* Make string output of an object value. */
/* Make string output of an object value. */
/***********************************************************************/
/***********************************************************************/
void
VALUE
::
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
void
VALUE
::
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
{
{
char
*
p
,
buf
[
64
];
char
*
p
,
buf
[
64
];
...
@@ -1712,7 +1712,7 @@ bool TYPVAL<PSZ>::SetConstFormat(PGLOBAL, FORMAT& fmt)
...
@@ -1712,7 +1712,7 @@ bool TYPVAL<PSZ>::SetConstFormat(PGLOBAL, FORMAT& fmt)
/***********************************************************************/
/***********************************************************************/
/* Make string output of an object value. */
/* Make string output of an object value. */
/***********************************************************************/
/***********************************************************************/
void
TYPVAL
<
PSZ
>::
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
void
TYPVAL
<
PSZ
>::
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
{
{
if
(
Null
)
if
(
Null
)
strncpy
(
ps
,
"null"
,
z
);
strncpy
(
ps
,
"null"
,
z
);
...
...
storage/connect/value.h
View file @
eb302303
...
@@ -122,8 +122,8 @@ class DllExport VALUE : public BLOCK {
...
@@ -122,8 +122,8 @@ class DllExport VALUE : public BLOCK {
virtual
bool
IsEqual
(
PVAL
vp
,
bool
chktype
)
=
0
;
virtual
bool
IsEqual
(
PVAL
vp
,
bool
chktype
)
=
0
;
virtual
bool
Compute
(
PGLOBAL
g
,
PVAL
*
vp
,
int
np
,
OPVAL
op
);
virtual
bool
Compute
(
PGLOBAL
g
,
PVAL
*
vp
,
int
np
,
OPVAL
op
);
virtual
bool
FormatValue
(
PVAL
vp
,
PCSZ
fmt
)
=
0
;
virtual
bool
FormatValue
(
PVAL
vp
,
PCSZ
fmt
)
=
0
;
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
/**
/**
Set value from a non-aligned in-memory value in the machine byte order.
Set value from a non-aligned in-memory value in the machine byte order.
...
@@ -308,7 +308,7 @@ class DllExport TYPVAL<PSZ>: public VALUE {
...
@@ -308,7 +308,7 @@ class DllExport TYPVAL<PSZ>: public VALUE {
virtual
bool
Compute
(
PGLOBAL
g
,
PVAL
*
vp
,
int
np
,
OPVAL
op
);
virtual
bool
Compute
(
PGLOBAL
g
,
PVAL
*
vp
,
int
np
,
OPVAL
op
);
virtual
bool
FormatValue
(
PVAL
vp
,
PCSZ
fmt
);
virtual
bool
FormatValue
(
PVAL
vp
,
PCSZ
fmt
);
virtual
bool
SetConstFormat
(
PGLOBAL
,
FORMAT
&
);
virtual
bool
SetConstFormat
(
PGLOBAL
,
FORMAT
&
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
protected:
protected:
// Members
// Members
...
...
storage/connect/xindex.cpp
View file @
eb302303
...
@@ -181,7 +181,7 @@ XXBASE::XXBASE(PTDBDOS tbxp, bool b) : CSORT(b),
...
@@ -181,7 +181,7 @@ XXBASE::XXBASE(PTDBDOS tbxp, bool b) : CSORT(b),
/***********************************************************************/
/***********************************************************************/
/* Make file output of XINDEX contents. */
/* Make file output of XINDEX contents. */
/***********************************************************************/
/***********************************************************************/
void
XXBASE
::
Print
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
void
XXBASE
::
Print
f
(
PGLOBAL
,
FILE
*
f
,
uint
n
)
{
{
char
m
[
64
];
char
m
[
64
];
...
@@ -193,7 +193,7 @@ void XXBASE::Print(PGLOBAL, FILE *f, uint n)
...
@@ -193,7 +193,7 @@ void XXBASE::Print(PGLOBAL, FILE *f, uint n)
/***********************************************************************/
/***********************************************************************/
/* Make string output of XINDEX contents. */
/* Make string output of XINDEX contents. */
/***********************************************************************/
/***********************************************************************/
void
XXBASE
::
Print
(
PGLOBAL
,
char
*
ps
,
uint
z
)
void
XXBASE
::
Print
s
(
PGLOBAL
,
char
*
ps
,
uint
z
)
{
{
*
ps
=
'\0'
;
*
ps
=
'\0'
;
strncat
(
ps
,
"Xindex"
,
z
);
strncat
(
ps
,
"Xindex"
,
z
);
...
...
storage/connect/xindex.h
View file @
eb302303
...
@@ -200,8 +200,8 @@ class DllExport XXBASE : public CSORT, public BLOCK {
...
@@ -200,8 +200,8 @@ class DllExport XXBASE : public CSORT, public BLOCK {
void
FreeIndex
(
void
)
{
PlgDBfree
(
Index
);}
void
FreeIndex
(
void
)
{
PlgDBfree
(
Index
);}
// Methods
// Methods
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
bool
Init
(
PGLOBAL
g
)
=
0
;
virtual
bool
Init
(
PGLOBAL
g
)
=
0
;
virtual
bool
Make
(
PGLOBAL
g
,
PIXDEF
sxp
)
=
0
;
virtual
bool
Make
(
PGLOBAL
g
,
PIXDEF
sxp
)
=
0
;
#if defined(XMAP)
#if defined(XMAP)
...
...
storage/connect/xobject.cpp
View file @
eb302303
...
@@ -173,17 +173,17 @@ bool CONSTANT::Rephrase(PGLOBAL g, PSZ work)
...
@@ -173,17 +173,17 @@ bool CONSTANT::Rephrase(PGLOBAL g, PSZ work)
/***********************************************************************/
/***********************************************************************/
/* Make file output of a constant object. */
/* Make file output of a constant object. */
/***********************************************************************/
/***********************************************************************/
void
CONSTANT
::
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
void
CONSTANT
::
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
)
{
{
Value
->
Print
(
g
,
f
,
n
);
Value
->
Print
f
(
g
,
f
,
n
);
}
/* end of Print */
}
/* end of Print */
/***********************************************************************/
/***********************************************************************/
/* Make string output of a constant object. */
/* Make string output of a constant object. */
/***********************************************************************/
/***********************************************************************/
void
CONSTANT
::
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
void
CONSTANT
::
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
)
{
{
Value
->
Print
(
g
,
ps
,
z
);
Value
->
Print
s
(
g
,
ps
,
z
);
}
/* end of Print */
}
/* end of Print */
/* -------------------------- Class STRING --------------------------- */
/* -------------------------- Class STRING --------------------------- */
...
...
storage/connect/xobject.h
View file @
eb302303
...
@@ -112,8 +112,8 @@ class DllExport CONSTANT : public XOBJECT {
...
@@ -112,8 +112,8 @@ class DllExport CONSTANT : public XOBJECT {
{
return
Value
->
SetConstFormat
(
g
,
fmt
);}
{
return
Value
->
SetConstFormat
(
g
,
fmt
);}
void
Convert
(
PGLOBAL
g
,
int
newtype
);
void
Convert
(
PGLOBAL
g
,
int
newtype
);
void
SetValue
(
PVAL
vp
)
{
Value
=
vp
;}
void
SetValue
(
PVAL
vp
)
{
Value
=
vp
;}
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
,
uint
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
,
uint
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
,
uint
);
};
// end of class CONSTANT
};
// end of class CONSTANT
/***********************************************************************/
/***********************************************************************/
...
...
storage/connect/xtable.h
View file @
eb302303
...
@@ -109,8 +109,8 @@ class DllExport TDB: public BLOCK { // Table Descriptor Block.
...
@@ -109,8 +109,8 @@ class DllExport TDB: public BLOCK { // Table Descriptor Block.
virtual
PTDB
Copy
(
PTABS
t
);
virtual
PTDB
Copy
(
PTABS
t
);
virtual
void
PrintAM
(
FILE
*
f
,
char
*
m
)
virtual
void
PrintAM
(
FILE
*
f
,
char
*
m
)
{
fprintf
(
f
,
"%s AM(%d)
\n
"
,
m
,
GetAmType
());}
{
fprintf
(
f
,
"%s AM(%d)
\n
"
,
m
,
GetAmType
());}
virtual
void
Print
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
f
(
PGLOBAL
g
,
FILE
*
f
,
uint
n
);
virtual
void
Print
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
void
Print
s
(
PGLOBAL
g
,
char
*
ps
,
uint
z
);
virtual
PCSZ
GetServer
(
void
)
=
0
;
virtual
PCSZ
GetServer
(
void
)
=
0
;
virtual
int
GetBadLines
(
void
)
{
return
0
;}
virtual
int
GetBadLines
(
void
)
{
return
0
;}
virtual
CHARSET_INFO
*
data_charset
(
void
);
virtual
CHARSET_INFO
*
data_charset
(
void
);
...
...
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