*CloneImages(const Image *,const char *,ExceptionInfo *),
*DestroyImageList(Image *),
*DuplicateImages(Image *,const size_t,const char *,ExceptionInfo *),
- *GetFirstImageInList(const Image *),
- *GetImageFromList(const Image *,const ssize_t),
- *GetLastImageInList(const Image *),
- *GetNextImageInList(const Image *),
- *GetPreviousImageInList(const Image *),
+ *GetFirstImageInList(const Image *) magick_attribute((__pure__)),
+ *GetImageFromList(const Image *,const ssize_t) magick_attribute((__pure__)),
+ *GetLastImageInList(const Image *) magick_attribute((__pure__)),
+ *GetNextImageInList(const Image *) magick_attribute((__pure__)),
+ *GetPreviousImageInList(const Image *) magick_attribute((__pure__)),
**ImageListToArray(const Image *,ExceptionInfo *),
*NewImageList(void),
*RemoveImageFromList(Image **),
*SyncNextImageInList(const Image *);
extern MagickExport size_t
- GetImageListLength(const Image *);
+ GetImageListLength(const Image *) magick_attribute((__pure__));
extern MagickExport ssize_t
- GetImageIndexInList(const Image *);
+ GetImageIndexInList(const Image *) magick_attribute((__pure__));
extern MagickExport void
AppendImageToList(Image **,const Image *),
InterpretLocaleValue(const char *magick_restrict,char **magick_restrict);
extern MagickExport int
- LocaleCompare(const char *,const char *),
- LocaleNCompare(const char *,const char *,const size_t);
+ LocaleCompare(const char *,const char *) magick_attribute((__pure__)),
+ LocaleNCompare(const char *,const char *,const size_t)
+ magick_attribute((__pure__));
extern MagickExport LinkedListInfo
*DestroyLocaleOptions(LinkedListInfo *),
extern MagickExport MagickBooleanType
ConcatenateString(char **,const char *),
- IsStringTrue(const char *),
- IsStringFalse(const char *),
+ IsStringTrue(const char *) magick_attribute((__pure__)),
+ IsStringFalse(const char *) magick_attribute((__pure__)),
SubstituteString(char **,const char *,const char *);
extern MagickExport size_t
#define MaxMultibyteCodes 6
extern MagickPrivate MagickBooleanType
- IsGlob(const char *);
+ IsGlob(const char *) magick_attribute((__pure__));
typedef struct
{
const char *,const char *,const char *,const char,char *,int *,char *);
extern MagickExport MagickBooleanType
- GlobExpression(const char *,const char *,const MagickBooleanType);
+ GlobExpression(const char *,const char *,const MagickBooleanType)
+ magick_attribute((__pure__));
extern MagickExport TokenInfo
*AcquireTokenInfo(void),
IsPathAccessible(const char *);
extern MagickExport size_t
- MultilineCensus(const char *);
+ MultilineCensus(const char *) magick_attribute((__pure__));
extern MagickExport unsigned char
*Base64Decode(const char *, size_t *);
*DrawGetVectorGraphics(DrawingWand *);
extern WandExport ClipPathUnits
- DrawGetClipUnits(const DrawingWand *);
+ DrawGetClipUnits(const DrawingWand *) magick_attribute((__pure__));
extern WandExport DecorationType
- DrawGetTextDecoration(const DrawingWand *);
+ DrawGetTextDecoration(const DrawingWand *) magick_attribute((__pure__));
extern WandExport DirectionType
DrawGetTextDirection(const DrawingWand *);
extern WandExport double
- DrawGetFillOpacity(const DrawingWand *),
- DrawGetFontSize(const DrawingWand *),
- DrawGetOpacity(const DrawingWand *),
+ DrawGetFillOpacity(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetFontSize(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetOpacity(const DrawingWand *) magick_attribute((__pure__)),
*DrawGetStrokeDashArray(const DrawingWand *,size_t *),
- DrawGetStrokeDashOffset(const DrawingWand *),
- DrawGetStrokeOpacity(const DrawingWand *),
- DrawGetStrokeWidth(const DrawingWand *),
- DrawGetTextKerning(DrawingWand *),
- DrawGetTextInterlineSpacing(DrawingWand *),
- DrawGetTextInterwordSpacing(DrawingWand *);
+ DrawGetStrokeDashOffset(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetStrokeOpacity(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetStrokeWidth(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetTextKerning(DrawingWand *) magick_attribute((__pure__)),
+ DrawGetTextInterlineSpacing(DrawingWand *) magick_attribute((__pure__)),
+ DrawGetTextInterwordSpacing(DrawingWand *) magick_attribute((__pure__));
extern WandExport DrawInfo
*PeekDrawingWand(const DrawingWand *);
DrawGetExceptionType(const DrawingWand *);
extern WandExport FillRule
- DrawGetClipRule(const DrawingWand *),
- DrawGetFillRule(const DrawingWand *);
+ DrawGetClipRule(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetFillRule(const DrawingWand *) magick_attribute((__pure__));
extern WandExport GravityType
- DrawGetGravity(const DrawingWand *);
+ DrawGetGravity(const DrawingWand *) magick_attribute((__pure__));
extern WandExport LineCap
- DrawGetStrokeLineCap(const DrawingWand *);
+ DrawGetStrokeLineCap(const DrawingWand *) magick_attribute((__pure__));
extern WandExport LineJoin
- DrawGetStrokeLineJoin(const DrawingWand *);
+ DrawGetStrokeLineJoin(const DrawingWand *) magick_attribute((__pure__));
extern WandExport MagickBooleanType
DrawClearException(DrawingWand *),
DrawComposite(DrawingWand *,const CompositeOperator,const double,
const double,const double,const double,MagickWand *),
DrawGetFontResolution(const DrawingWand *,double *,double *),
- DrawGetStrokeAntialias(const DrawingWand *),
- DrawGetTextAntialias(const DrawingWand *),
+ DrawGetStrokeAntialias(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetTextAntialias(const DrawingWand *) magick_attribute((__pure__)),
DrawGetTypeMetrics(const DrawingWand *,const char *,MagickBooleanType,
TypeMetric *),
DrawPopPattern(DrawingWand *),
DrawGetFontStyle(const DrawingWand *);
extern WandExport size_t
- DrawGetFontWeight(const DrawingWand *),
- DrawGetStrokeMiterLimit(const DrawingWand *);
+ DrawGetFontWeight(const DrawingWand *) magick_attribute((__pure__)),
+ DrawGetStrokeMiterLimit(const DrawingWand *) magick_attribute((__pure__));
extern WandExport void
ClearDrawingWand(DrawingWand *),
#endif
extern WandExport void
- CLIOption(MagickCLI *,const char *,...);
+ CLIOption(MagickCLI *,const char *,...)
+ magick_attribute((__format__ (__printf__,2,0)));
#if defined(__cplusplus) || defined(c_plusplus)
}
*PixelGetException(const PixelWand *,ExceptionType *);
extern WandExport double
- PixelGetAlpha(const PixelWand *),
- PixelGetBlack(const PixelWand *),
- PixelGetBlue(const PixelWand *),
- PixelGetCyan(const PixelWand *),
- PixelGetFuzz(const PixelWand *),
- PixelGetGreen(const PixelWand *),
- PixelGetMagenta(const PixelWand *),
- PixelGetAlpha(const PixelWand *),
- PixelGetRed(const PixelWand *),
- PixelGetYellow(const PixelWand *);
+ PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetBlack(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetBlue(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetCyan(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetFuzz(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetGreen(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetMagenta(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetRed(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetYellow(const PixelWand *) magick_attribute((__pure__));
extern WandExport ExceptionType
PixelGetExceptionType(const PixelWand *);
**NewPixelWands(const size_t);
extern WandExport Quantum
- PixelGetAlphaQuantum(const PixelWand *),
- PixelGetBlackQuantum(const PixelWand *),
- PixelGetBlueQuantum(const PixelWand *),
- PixelGetCyanQuantum(const PixelWand *),
- PixelGetGreenQuantum(const PixelWand *),
- PixelGetIndex(const PixelWand *),
- PixelGetMagentaQuantum(const PixelWand *),
- PixelGetAlphaQuantum(const PixelWand *),
- PixelGetRedQuantum(const PixelWand *),
- PixelGetYellowQuantum(const PixelWand *);
+ PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetBlackQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetBlueQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetCyanQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetGreenQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetIndex(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetMagentaQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetRedQuantum(const PixelWand *) magick_attribute((__pure__)),
+ PixelGetYellowQuantum(const PixelWand *) magick_attribute((__pure__));
extern WandExport size_t
- PixelGetColorCount(const PixelWand *);
+ PixelGetColorCount(const PixelWand *) magick_attribute((__pure__));
extern WandExport void
ClearPixelWand(PixelWand *),
extern WandExport MagickBooleanType
CLICatchException(MagickCLI *,const MagickBooleanType),
CLILogEvent(MagickCLI *,const LogEventType,const char *,const char *,
- const size_t, const char *,...)
+ const size_t,const char *,...)
magick_attribute((__format__ (__printf__,6,7))),
CLIThrowException(MagickCLI *,const char *,const char *,const size_t,
const ExceptionType,const char *,const char *,...)
magick_attribute((__format__ (__printf__,7,8)));
-
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif
#if defined(MAGICKCORE_BZLIB_DELEGATE)
+static void *AcquireBZIPMemory(void *context,int items,int size)
+ magick_attribute((__malloc__));
+
static void *AcquireBZIPMemory(void *context,int items,int size)
{
return(AcquireCompressionMemory(context,(size_t) items,(size_t) size));
#endif
#if defined(MAGICKCORE_LZMA_DELEGATE)
+static void *AcquireLZMAMemory(void *context,size_t items,size_t size)
+ magick_attribute((__malloc__));
+
static void *AcquireLZMAMemory(void *context,size_t items,size_t size)
{
return(AcquireCompressionMemory(context,items,size));
#endif
#if defined(MAGICKCORE_ZLIB_DELEGATE)
+static voidpf AcquireZIPMemory(voidpf context,unsigned int items,
+ unsigned int size) magick_attribute((__malloc__));
+
static voidpf AcquireZIPMemory(voidpf context,unsigned int items,
unsigned int size)
{
(void) msl_info;
}
+static void MSLWarning(void *context,const char *format,...)
+ magick_attribute((__format__ (__printf__,2,3)));
+
static void MSLWarning(void *context,const char *format,...)
{
char
va_end(operands);
}
+static void MSLError(void *context,const char *format,...)
+ magick_attribute((__format__ (__printf__,2,3)));
+
static void MSLError(void *context,const char *format,...)
{
char
--includearch-dir=DIR ARCH specific include directory
--sharearch-dir=DIR ARCH specific config directory
--with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
- --without-threads disable threads support
+ --without-threads disable POSIX threads API support
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]
--with-aix-soname=aix|svr4|both
MAGICK_VERSION=7.0.8-15
-MAGICK_GIT_REVISION=14963:5c91a54d9:20181031
+MAGICK_GIT_REVISION=14965:3a037126f:20181110
# Substitute library versioning
#
-# Enable support for threads
-#
-# Find Posix threads library
+# Enable support for POSIX thread APIs
#
# Check whether --with-threads was given.
DEF_THREAD="$PTHREAD_CFLAGS"
CFLAGS="$CFLAGS $DEF_THREAD"
CXXFLAGS="$CXXFLAGS $DEF_THREAD"
- THREAD_LIBS="$PTHREAD_LIBS"
+ THREAD_LIBS="$PTHREAD_LIBS"
if test "$CC" != "$PTHREAD_CC"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
AC_SUBST([pkgconfigdir])
#
-# Enable support for threads
-#
-# Find Posix threads library
+# Enable support for POSIX thread APIs
#
AC_ARG_WITH([threads],
- [AC_HELP_STRING([--without-threads], [disable threads support])],
+ [AC_HELP_STRING([--without-threads], [disable POSIX threads API support])],
[with_threads=$withval],
[with_threads='yes'])
DEF_THREAD="$PTHREAD_CFLAGS"
CFLAGS="$CFLAGS $DEF_THREAD"
CXXFLAGS="$CXXFLAGS $DEF_THREAD"
- THREAD_LIBS="$PTHREAD_LIBS"
+ THREAD_LIBS="$PTHREAD_LIBS"
if test "$CC" != "$PTHREAD_CC"; then
AC_MSG_WARN([Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads.])
CC="$PTHREAD_CC"