----- Forwarded message from Przemyslaw Czerpak <dru...@acn.waw.pl> -----

From: Przemyslaw Czerpak <dru...@acn.waw.pl>
Subject: Re: [Harbour] hbzlib and NO_GZCOMPRESS
To: "Harbour Project Main Developer List." <harbour@harbour-project.org>
Date: Tue, 12 May 2009 15:43:05 +0200
Lines: 26

On Tue, 12 May 2009, Petr Chornyj wrote:

Hi,

> It is possible to change our rtl/hbzlib.c to respect a NO_GZCOMPRESS
> definition (see gzio.c)?

Can you explain what you want to do and what does it mean for you
"respect a NO_GZCOMPRESS definition"?
If you use zlib compiled with this macro then it does not contain
any functions used for compression like gzwrite() or gzflush() so
you cannot even link final binaries if code use such functions.
Do you want to remove HB_GZWRITE()/HB_GZFLUSH()/... from rtl/hbzlib.c
when this macro is set?
Why do you want to make it?

> And second question: can we add a wrapper for gputc also?

I guess you ask about gzputc(). Yes we can, I'll add it.
Meanwhile you can use:

   FUNCTION HB_GZPUTC( gz, nChar )
   RETURN IIF( HB_GZWRITE( gz, Chr( nChar ) ) <= 0, -1, nChar )

best regards,
Przemek

----- End forwarded message -----
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to