% August 2003 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
assert(wand->signature == WandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- clone_wand=(MagickWand *) AcquireAlignedMemory(1,sizeof(*clone_wand));
+ clone_wand=(MagickWand *) AcquireMagickMemory(sizeof(*clone_wand));
if (clone_wand == (MagickWand *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
wand->name);
(void) ResetMagickMemory(clone_wand,0,sizeof(*clone_wand));
clone_wand->id=AcquireWandId();
- (void) FormatMagickString(clone_wand->name,MaxTextExtent,"%s-%lu",
- MagickWandId,clone_wand->id);
+ (void) FormatMagickString(clone_wand->name,MaxTextExtent,"%s-%.20g",
+ MagickWandId,(double) clone_wand->id);
clone_wand->exception=AcquireExceptionInfo();
InheritException(clone_wand->exception,wand->exception);
clone_wand->image_info=CloneImageInfo(wand->image_info);
%
% The format of the MagickGetIteratorIndex method is:
%
-% long MagickGetIteratorIndex(MagickWand *wand)
+% ssize_t MagickGetIteratorIndex(MagickWand *wand)
%
% A description of each parameter follows:
%
% o wand: the magick wand.
%
*/
-WandExport long MagickGetIteratorIndex(MagickWand *wand)
+WandExport ssize_t MagickGetIteratorIndex(MagickWand *wand)
{
assert(wand != (MagickWand *) NULL);
assert(wand->signature == WandSignature);
ExceptionInfo
*exception;
- unsigned long
+ size_t
number_options;
exception=AcquireExceptionInfo();
% The format of the MagickQueryConfigureOptions function is:
%
% char **MagickQueryConfigureOptions(const char *pattern,
-% unsigned long *number_options)
+% size_t *number_options)
%
% A description of each parameter follows:
%
%
*/
WandExport char **MagickQueryConfigureOptions(const char *pattern,
- unsigned long *number_options)
+ size_t *number_options)
{
char
**options;
%
% The format of the MagickQueryFonts function is:
%
-% char **MagickQueryFonts(const char *pattern,unsigned long *number_fonts)
+% char **MagickQueryFonts(const char *pattern,size_t *number_fonts)
%
% A description of each parameter follows:
%
%
*/
WandExport char **MagickQueryFonts(const char *pattern,
- unsigned long *number_fonts)
+ size_t *number_fonts)
{
char
**fonts;
% The format of the MagickQueryFonts function is:
%
% char **MagickQueryFonts(const char *pattern,
-% unsigned long *number_formats)
+% size_t *number_formats)
%
% A description of each parameter follows:
%
%
*/
WandExport char **MagickQueryFormats(const char *pattern,
- unsigned long *number_formats)
+ size_t *number_formats)
{
char
**formats;
% The format of the MagickSetIteratorIndex method is:
%
% MagickBooleanType MagickSetIteratorIndex(MagickWand *wand,
-% const long index)
+% const ssize_t index)
%
% A description of each parameter follows:
%
%
*/
WandExport MagickBooleanType MagickSetIteratorIndex(MagickWand *wand,
- const long index)
+ const ssize_t index)
{
Image
*image;
MagickWand
*wand;
- unsigned long
+ size_t
depth;
depth=MAGICKCORE_QUANTUM_DEPTH;
quantum=GetMagickQuantumDepth(&depth);
if (depth != MAGICKCORE_QUANTUM_DEPTH)
ThrowWandFatalException(WandError,"QuantumDepthMismatch",quantum);
- wand=(MagickWand *) AcquireAlignedMemory(1,sizeof(*wand));
+ wand=(MagickWand *) AcquireMagickMemory(sizeof(*wand));
if (wand == (MagickWand *) NULL)
ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed",
GetExceptionMessage(errno));
(void) ResetMagickMemory(wand,0,sizeof(*wand));
wand->id=AcquireWandId();
- (void) FormatMagickString(wand->name,MaxTextExtent,"%s-%lu",MagickWandId,
- wand->id);
+ (void) FormatMagickString(wand->name,MaxTextExtent,"%s-%.20g",MagickWandId,
+ (double) wand->id);
wand->exception=AcquireExceptionInfo();
wand->image_info=AcquireImageInfo();
wand->quantize_info=CloneQuantizeInfo((QuantizeInfo *) NULL);