MagickBooleanType
relinquish;
+ size_t
+ index;
+
// Just return if there is no reported error
if (exception_.severity == UndefinedException)
return;
LockSemaphoreInfo(exception_.semaphore);
if (exception_.exceptions != (void *) NULL)
{
- ResetLinkedListIterator((LinkedListInfo *) exception_.exceptions);
- p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
+ index=GetNumberOfElementsInLinkedList((LinkedListInfo *)
exception_.exceptions);
- while (p != (const ExceptionInfo *) NULL)
+ while(index > 0)
{
+ p=(const ExceptionInfo *) GetValueFromLinkedList((LinkedListInfo *)
+ exception_.exceptions,--index);
if ((p->severity != exception_.severity) || (LocaleCompare(p->reason,
exception_.reason) != 0) || (LocaleCompare(p->description,
exception_.description) != 0))
nestedException=q;
}
}
- p=(const ExceptionInfo *) GetNextValueInLinkedList((LinkedListInfo *)
- exception_.exceptions);
}
}
UnlockSemaphoreInfo(exception_.semaphore);
using MagickCore::GetMagickInfo;
using MagickCore::GetMultilineTypeMetrics;
using MagickCore::GetNextValueInLinkedList;
+ using MagickCore::GetNumberOfElementsInLinkedList;
using MagickCore::GetPixelBlue;
using MagickCore::GetPixelGreen;
using MagickCore::GetPixelInfo;
using MagickCore::GetStringInfoDatum;
using MagickCore::GetStringInfoLength;
using MagickCore::GetTypeMetrics;
+ using MagickCore::GetValueFromLinkedList;
using MagickCore::GetVirtualMetacontent;
using MagickCore::GetVirtualPixels;
using MagickCore::GetImageVirtualPixelMethod;