gemhome/rmagick — pull request #112 by u338steven (2014-08-23 07:48:38+00:00)
Title: Fixed: build error with ImageMagick 6.8.9 (when deprecated functions are excluded)

Replaced deprecated functions

- RadialBlurImage -> RotationalBlurImage
- RadialBlurImageChannel -> RotationalBlurImageChannel
- ConstituteComponentTerminus(DestroyConstitute) -> (removed)
- GetExceptionInfo -> AcquireExceptionInfo

[deprecate.c in ImageMagick/branches/ImageMagick-6/magick – ImageMagick](http://trac.imagemagick.org/browser/ImageMagick/branches/ImageMagick-6/magick/deprecate.c)

```
MagickExport void DestroyConstitute(void)
{
}
```
```
MagickExport void ConstituteComponentTerminus(void)
{
}
```
```
MagickExport Image *RadialBlurImage(const Image *image,const double angle,
ExceptionInfo *exception)
{
return(RotationalBlurImage(image,angle,exception));
}
```
```
MagickExport Image *RadialBlurImageChannel(const Image *image,
const ChannelType channel,const double angle,ExceptionInfo *exception)
{
return(RotationalBlurImageChannel(image,channel,angle,exception));
}
```
```
MagickExport void GetExceptionInfo(ExceptionInfo *exception)
{
assert(exception != (ExceptionInfo *) NULL);
(void) ResetMagickMemory(exception,0,sizeof(*exception));
exception->severity=UndefinedException;
exception->exceptions=(void *) NewLinkedList(0);
exception->semaphore=AllocateSemaphoreInfo();
exception->signature=MagickSignature;
}
```

[exception.c in ImageMagick/branches/ImageMagick-6/magick – ImageMagick](http://trac.imagemagick.org/browser/ImageMagick/branches/ImageMagick-6/magick/exception.c)

```
MagickExport ExceptionInfo *AcquireExceptionInfo(void)
{
ExceptionInfo
*exception;

exception=(ExceptionInfo *) AcquireMagickMemory(sizeof(*exception));
if (exception == (ExceptionInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
InitializeExceptionInfo(exception);
exception->relinquish=MagickTrue;
return(exception);
}
```
```
MagickPrivate void InitializeExceptionInfo(ExceptionInfo *exception)
{
assert(exception != (ExceptionInfo *) NULL);
(void) ResetMagickMemory(exception,0,sizeof(*exception));
exception->severity=UndefinedException;
exception->exceptions=(void *) NewLinkedList(0);
exception->semaphore=AllocateSemaphoreInfo();
exception->signature=MagickSignature;
}
```