summaryrefslogtreecommitdiff
path: root/lib/Handle.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-03 18:28:52 +0000
committerPixel <Pixel>2001-12-03 18:28:52 +0000
commit596b5398b1d3b04ddfbebdba6d5e3919a2c921f7 (patch)
tree3bd917b484ec17d68cce2e7cb0cb8e0bb0114fbf /lib/Handle.cc
parent0fd3b447119000a3b29fd46fed6b955198e5d7de (diff)
Get rid of debugging output.
Diffstat (limited to 'lib/Handle.cc')
-rw-r--r--lib/Handle.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 7b56df4..0221e71 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -7,19 +7,19 @@
#include "config.h"
Handle::Handle(const Handle & nh) : h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(false), nonblock(false), zfile(0), z(0) {
- cerr << "Duplication of handle " << nh.h << " to " << h << endl;
+// cerr << "Duplication of handle " << nh.h << " to " << h << endl;
if ((h >= 0) && (nh.z)) {
SetZ(nh.z);
}
}
Handle::~Handle() {
- cerr << "Destroying handle " << h << endl;
+// cerr << "Destroying handle " << h << endl;
close();
}
Handle::Handle(int nh) : h(nh), closed(false), zfile(0), z(0) {
- cerr << "Initialising handle " << h << endl;
+// cerr << "Initialising handle " << h << endl;
}
int Handle::GetHandle() {
@@ -139,9 +139,9 @@ void Handle::close() throw (GeneralException) {
if (h >= 0) {
if (z) {
- cerr << "Performing gzclose on handle " << h << endl;
+// cerr << "Performing gzclose on handle " << h << endl;
int err = gzclose(zfile);
- cerr << "gzclose returned " << err << endl;
+// cerr << "gzclose returned " << err << endl;
if (err) {
if (err == Z_ERRNO) {
throw GeneralException(String(_("Error during close: ")) + strerror(errno));
@@ -212,7 +212,7 @@ void Handle::SetZ(int az) throw (GeneralException) {
}
format[index++] = (char) (z + '0');
format[index] = 0;
- cerr << "Performing gzdopen on handle " << h << " with mode \"" << format << "\"\n";
+// cerr << "Performing gzdopen on handle " << h << " with mode \"" << format << "\"\n";
if (!(zfile = gzdopen(h, format))) {
throw GeneralException(_("Was not able to gzdopen."));
}
@@ -221,9 +221,9 @@ void Handle::SetZ(int az) throw (GeneralException) {
ssize_t Handle::uwrite(const void * buf, size_t count) throw (GeneralException) {
if (z) {
- cerr << "Performing gzwrite of " << count << " byte for handle " << h << endl;
+// cerr << "Performing gzwrite of " << count << " byte for handle " << h << endl;
int err = gzwrite(zfile, buf, count);
- cerr << "gzwrite returned " << err << endl;
+// cerr << "gzwrite returned " << err << endl;
if (err == 0) {
const char * m = gzerror(zfile, &err);
if (err == Z_ERRNO) {
@@ -240,9 +240,9 @@ ssize_t Handle::uwrite(const void * buf, size_t count) throw (GeneralException)
ssize_t Handle::uread(void * buf, size_t count) {
if (z) {
- cerr << "Performing gzread of " << count << " byte for handle " << h << endl;
+// cerr << "Performing gzread of " << count << " byte for handle " << h << endl;
int err = gzread(zfile, buf, count);
- cerr << "gzwrite returned " << err << endl;
+// cerr << "gzwrite returned " << err << endl;
if (err == -1) {
gzerror(zfile, &err);
if (err == Z_ERRNO) {