| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2005.10.15 16:28 "Re: Small bug report, and error handler parameter issue", by Joris Van DammeJoris wrote:
> void
> TIFFWarning(TIFF* tif, const char* module, const char* fmt, ...)
> {
> if (_TIFFwarningHandler) {
> va_list ap;
> va_start(ap, fmt);
> (*_TIFFwarningHandler)(module, fmt, ap);
> (*_TIFFwarningHandlerExt)(tif,module, fmt, ap);
> va_end(ap);
> }
> }
Sorry, typed too fast. Make that:
void
TIFFWarning(TIFF* tif, const char* module, const char* fmt, ...)
{
va_list ap;
va_start(ap, fmt);
if (_TIFFwarningHandler)
(*_TIFFwarningHandler)(module, fmt, ap);
if (_TIFFwarningHandlerExt)
(*_TIFFwarningHandlerExt)(tif,module, fmt, ap);
va_end(ap);
}
That is, assuming you can use the ap multiple times in between those
va_start and va_end C things that are alien to me.
Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html
|
|||||||