2005.09.28 00:49 "[Tiff] PSP libtiff hack?", by Frank Warmerdam

2005.10.15 16:28 "[Tiff] Re: Small bug report, and error handler parameter issue", by Joris Van Damme

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