AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.10.15 12:43 "Small bug report, and error handler parameter issue", by Joris Van Damme
2005.10.15 16:06 "Re: Small bug report, and error handler parameter issue", by Frank Warmerdam
2005.10.15 16:24 "Re: Small bug report, and error handler parameter issue", by Joris Van Damme
2005.10.15 16:26 "Re: Small bug report, and error handler parameter issue", by Frank Warmerdam
2005.10.15 16:28 "Re: Small bug report, and error handler parameter issue", by Joris Van Damme

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

Joris 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