Corretta moltiplicazione e divisione delle espressioni
Linkrecinst dei Localisamfiles e' finalmente FALSE per default (chissa' se riesco a togliere questo infausto parametro prima o poi!) git-svn-id: svn://10.65.10.50/trunk@1430 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
77a12a3641
commit
0ff15c10fa
@ -768,7 +768,7 @@ TCodesym TExpression::__term(TCodesym startsym)
|
||||
{
|
||||
TCodesym savedsym = sym;
|
||||
sym = __gettoken();
|
||||
sym = __factor(startsym);
|
||||
sym = __factor(sym);
|
||||
_code.add(savedsym);
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ public:
|
||||
void zero(char c) { curr().zero(c);}
|
||||
TRectype& operator =(const TRectype& rec) { return curr() = rec;}
|
||||
|
||||
TBaseisamfile(int logicnum, bool linkrecinst = TRUE);
|
||||
TBaseisamfile(int logicnum, bool linkrecinst = FALSE);
|
||||
virtual ~TBaseisamfile();
|
||||
};
|
||||
|
||||
@ -342,7 +342,7 @@ public:
|
||||
// @DES Esporta VERSO un file ascii.
|
||||
int dump(const char* to, int nkey = 1, char fs = '|', char fd = '\0', char rs = '\n', bool vis = TRUE, bool withdeleted = FALSE);
|
||||
|
||||
TSystemisamfile(int logicnum, bool linkrecinst = TRUE)
|
||||
TSystemisamfile(int logicnum, bool linkrecinst = FALSE)
|
||||
: TIsamfile(logicnum, linkrecinst) {}
|
||||
virtual ~TSystemisamfile() {}
|
||||
};
|
||||
@ -371,7 +371,7 @@ public:
|
||||
virtual bool tab() const { return FALSE;} // Ritorna vero se tabella
|
||||
|
||||
// Costruttore. linkrecinst dice se il file deve utilizzare un area record separata oppure la stessa.
|
||||
TLocalisamfile(int logicnum, bool linkrecinst = TRUE);
|
||||
TLocalisamfile(int logicnum, bool linkrecinst = FALSE);
|
||||
virtual ~TLocalisamfile();
|
||||
};
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// $Id: relation.cpp,v 1.44 1995-06-01 09:09:18 guy Exp $
|
||||
// $Id: relation.cpp,v 1.45 1995-06-01 15:25:25 guy Exp $
|
||||
// relation.cpp
|
||||
// fv 12/8/93
|
||||
// relation class for isam files
|
||||
@ -249,21 +249,21 @@ const char* TRelationdef::evaluate_expr(int j, const TLocalisamfile& to)
|
||||
///////////////////////////////////////////////////////////
|
||||
|
||||
TRelation::TRelation(int logicnum)
|
||||
: _files(4) , _reldefs(4), _errors(NOERR)
|
||||
: _files(4), _reldefs(4), _errors(NOERR)
|
||||
{
|
||||
TLocalisamfile* f = new TLocalisamfile(logicnum);
|
||||
TLocalisamfile* f = new TLocalisamfile(logicnum, FALSE);
|
||||
_files.add(f);
|
||||
}
|
||||
|
||||
TRelation::TRelation(const char* tabname)
|
||||
: _files(4) , _reldefs(4), _errors(NOERR)
|
||||
: _files(4), _reldefs(4), _errors(NOERR)
|
||||
{
|
||||
TTable* t = new TTable(tabname);
|
||||
TTable* t = new TTable(tabname, FALSE);
|
||||
_files.add(t);
|
||||
}
|
||||
|
||||
TRelation::TRelation(TLocalisamfile* l)
|
||||
: _files(4) , _reldefs(4), _errors(NOERR)
|
||||
: _files(4), _reldefs(4), _errors(NOERR)
|
||||
{
|
||||
_files.add(l);
|
||||
}
|
||||
@ -418,14 +418,14 @@ bool TRelation::add(TLocalisamfile* f, const char* relexprs, int key,
|
||||
bool TRelation::add(int logicnum, const char* relexprs, int key,
|
||||
int linkto, int alias, bool allow_lock)
|
||||
{
|
||||
TLocalisamfile* f = new TLocalisamfile(logicnum);
|
||||
TLocalisamfile* f = new TLocalisamfile(logicnum, FALSE);
|
||||
return add(f, relexprs, key, linkto, alias, allow_lock);
|
||||
}
|
||||
|
||||
bool TRelation::add(const char* tabname, const char* relexprs, int key,
|
||||
int linkto, int alias, bool allow_lock)
|
||||
{
|
||||
TTable* t = new TTable(tabname);
|
||||
TTable* t = new TTable(tabname, FALSE);
|
||||
return add(t, relexprs, key, linkto, alias, allow_lock);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user