Clarified some comments.
committer: mfx <mfx> 975421093 +0000
This commit is contained in:
parent
632a66eb7c
commit
084cc89a41
@ -196,7 +196,7 @@ static void print0(FILE *f, const char *ss)
|
|||||||
|
|
||||||
// Note:
|
// Note:
|
||||||
// We use 2 passes to avoid unnecessary system calls because
|
// We use 2 passes to avoid unnecessary system calls because
|
||||||
// scrollUp() under Win32 is *extremely* slow.
|
// scrollUp() under Win95/98 is *extremely* slow.
|
||||||
UNUSED(f);
|
UNUSED(f);
|
||||||
|
|
||||||
screen->getCursor(screen,&old_cx,&old_cy);
|
screen->getCursor(screen,&old_cx,&old_cy);
|
||||||
|
|||||||
@ -66,7 +66,7 @@ void File::unlink(const char *name)
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
FileBase::FileBase() :
|
FileBase::FileBase() :
|
||||||
_fd(-1), _flags(0), _shflags(0), _mode(0), _name(0)
|
_fd(-1), _flags(0), _shflags(0), _mode(0), _name(NULL)
|
||||||
{
|
{
|
||||||
memset(&st,0,sizeof(st));
|
memset(&st,0,sizeof(st));
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ bool FileBase::close()
|
|||||||
_fd = -1;
|
_fd = -1;
|
||||||
_flags = 0;
|
_flags = 0;
|
||||||
_mode = 0;
|
_mode = 0;
|
||||||
_name = 0;
|
_name = NULL;
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -290,7 +290,7 @@ void OutputFile::sopen(const char *name, int flags, int shflags, int mode)
|
|||||||
if (!isOpen())
|
if (!isOpen())
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
// don't throw FileNotFound here - confusing
|
// don't throw FileNotFound here -- this is confusing
|
||||||
if (errno == ENOENT)
|
if (errno == ENOENT)
|
||||||
throw FileNotFoundException(_name,errno);
|
throw FileNotFoundException(_name,errno);
|
||||||
else
|
else
|
||||||
|
|||||||
@ -70,8 +70,9 @@ unsigned MemBuffer::getSize() const
|
|||||||
void MemBuffer::alloc(unsigned size, unsigned base_offset)
|
void MemBuffer::alloc(unsigned size, unsigned base_offset)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
// don't automaticlly free a used buffer
|
|
||||||
this->free();
|
this->free();
|
||||||
|
#else
|
||||||
|
// don't automaticlly free a used buffer
|
||||||
#endif
|
#endif
|
||||||
assert(alloc_ptr == NULL);
|
assert(alloc_ptr == NULL);
|
||||||
assert((int)size > 0);
|
assert((int)size > 0);
|
||||||
@ -109,8 +110,8 @@ void MemBuffer::allocForCompression(unsigned uncompressed_size)
|
|||||||
|
|
||||||
void MemBuffer::allocForUncompression(unsigned uncompressed_size)
|
void MemBuffer::allocForUncompression(unsigned uncompressed_size)
|
||||||
{
|
{
|
||||||
//alloc(uncompressed_size + 512, 0); // 512 safety bytes
|
//alloc(uncompressed_size + 3 + 512, 0); // 512 safety bytes
|
||||||
alloc(uncompressed_size + 3, 0); // 3 safety bytes for asm_fast
|
alloc(uncompressed_size + 3, 0); // 3 bytes for asm_fast decompresion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user