Correezioni per compilazione

git-svn-id: svn://10.65.10.50/trunk@1470 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1995-06-12 16:05:26 +00:00
parent 720e9a0326
commit 182b649bde
2 changed files with 27 additions and 27 deletions

View File

@ -9,7 +9,7 @@
#define BLOCK_SIZE 1024
TMemo_file::TMemo_file(const char* a) :
_fname(a), _fp(NULL), _isnew(NULL)
_fname(a), _fp(NULL), _isnew(NULL)
{
// handles: open file or create
_fname.ext("mem");
@ -64,7 +64,7 @@ bool TMemo_file::_find_id(long id)
if (_current < id)
{
long ofs = dndir ? -_next_ofs-INFO_SIZE-INFO_SIZE :
_next_ofs+INFO_SIZE;
_next_ofs+INFO_SIZE;
ok = fseek(_fp, ofs, SEEK_CUR);
}
@ -118,7 +118,7 @@ bool TMemo_file::get_field(TTextfile& t, long id)
return ok;
}
long TMemo_file::set_field(TTextfile& t, long id)
long TMemo_file::set_field(const TTextfile& t, long id)
{
bool ok = TRUE;
long ret = 0;
@ -146,8 +146,8 @@ long TMemo_file::set_field(TTextfile& t, long id)
fread(&_next_ofs, sizeof(long), 1, _fp);
if (_current < id)
{
long ofs = _next_ofs+INFO_SIZE;
ok = fseek(_fp, ofs, SEEK_CUR);
long ofs = _next_ofs+INFO_SIZE;
ok = fseek(_fp, ofs, SEEK_CUR);
}
else
{