Commit eb302303 authored by Sergei Golubchik's avatar Sergei Golubchik

compilation warnings in Connect

parent 6dcc3789
...@@ -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->Prints(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->Prints(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::Printf(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->Printf(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::Prints(PGLOBAL, char *ps, uint z)
{ {
if (z < 16) if (z < 16)
return; return;
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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);
......
...@@ -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::Printf(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::Prints(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::Printf(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::Prints(PGLOBAL g, char *ps, UINT z)
{ {
strncat(ps, "BlockIndex(es)", z); strncat(ps, "BlockIndex(es)", z);
} // end of Print } // end of Print
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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 Printf(PGLOBAL g, FILE *f, UINT n);
virtual void Print(PGLOBAL g, char *ps, UINT z); virtual void Prints(PGLOBAL g, char *ps, UINT z);
protected: protected:
BLOCKINDEX(void) {} // Standard constructor not to be used BLOCKINDEX(void) {} // Standard constructor not to be used
......
...@@ -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 Printf(PGLOBAL, FILE *, uint) {} // Produce file desc
virtual void Print(PGLOBAL, char *, uint) {} // Produce string desc virtual void Prints(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
......
...@@ -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::Printf(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::Prints(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
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
virtual void Print(PGLOBAL g, char *, uint); virtual void Prints(PGLOBAL g, char *, uint);
virtual bool VarSize(void) {return false;} virtual bool VarSize(void) {return false;}
bool InitValue(PGLOBAL g); bool InitValue(PGLOBAL g);
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
//virtual void Print(PGLOBAL g, char *ps, uint z); //virtual void Prints(PGLOBAL g, char *ps, uint z);
#ifdef DEBTRACE #ifdef DEBTRACE
int GetNcmp(void) {return num_comp;} int GetNcmp(void) {return num_comp;}
#endif #endif
......
...@@ -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.
......
...@@ -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::Printf(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)->Printf(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::Prints(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)->Prints(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)->Prints(g, p, n);
} else } else
if (!bcp) { if (!bcp) {
strncat(ps, "???", z); strncat(ps, "???", z);
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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);
......
...@@ -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++;
......
...@@ -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)->Printf(g, f, n-2);
break; break;
default: default:
......
...@@ -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::Printf(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::Prints(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::Printf(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::Prints(PGLOBAL, char *ps, uint z)
{ {
char buf[80]; char buf[80];
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
void Print(PGLOBAL g, char *ps, uint z); void Prints(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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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;}
......
...@@ -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::Printf(PGLOBAL g, FILE *f, uint n)
{ {
COLBLK::Print(g, f, n); COLBLK::Printf(g, f, n);
} // end of Print } // end of Print
/* ------------------------------------------------------------------- */ /* ------------------------------------------------------------------- */
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
protected: protected:
virtual bool SetMinMax(PGLOBAL g); virtual bool SetMinMax(PGLOBAL g);
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
protected: protected:
// Members // Members
......
...@@ -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::Printf(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->Printf(g, f, n);
} /* endfor tp */ } /* endfor tp */
} // end of Print } // end of Print
void TDB::Print(PGLOBAL, char *ps, uint) void TDB::Prints(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
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
protected: protected:
// Members // Members
......
...@@ -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, PCSZ 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
......
...@@ -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, PCSZ 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);
......
...@@ -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::Printf(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::Prints(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>::Prints(PGLOBAL g, char *ps, uint z)
{ {
if (Null) if (Null)
strncpy(ps, "null", z); strncpy(ps, "null", z);
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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 Prints(PGLOBAL g, char *ps, uint z);
protected: protected:
// Members // Members
......
...@@ -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::Printf(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::Prints(PGLOBAL, char *ps, uint z)
{ {
*ps = '\0'; *ps = '\0';
strncat(ps, "Xindex", z); strncat(ps, "Xindex", z);
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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)
......
...@@ -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::Printf(PGLOBAL g, FILE *f, uint n)
{ {
Value->Print(g, f, n); Value->Printf(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::Prints(PGLOBAL g, char *ps, uint z)
{ {
Value->Print(g, ps, z); Value->Prints(g, ps, z);
} /* end of Print */ } /* end of Print */
/* -------------------------- Class STRING --------------------------- */ /* -------------------------- Class STRING --------------------------- */
......
...@@ -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 Printf(PGLOBAL g, FILE *, uint);
virtual void Print(PGLOBAL g, char *, uint); virtual void Prints(PGLOBAL g, char *, uint);
}; // end of class CONSTANT }; // end of class CONSTANT
/***********************************************************************/ /***********************************************************************/
......
...@@ -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 Printf(PGLOBAL g, FILE *f, uint n);
virtual void Print(PGLOBAL g, char *ps, uint z); virtual void Prints(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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment