http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=18132).
* Avoid seg fault in AppendImages() when one image is in the RGB colorspace
but the other is in the CMYK colorspace.
+ * Get rid of ''respect_parenthesis' defined but not used warnings (reference
+ http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=18173).
2011-02-22 6.6.7-10 Glenn Randers-Pehrson <glennrp@image...>
* Write sub-8-bit grayscale PNG images as palette-indexed PNG images. This
*/
MagickExport double GetPseudoRandomValue(RandomInfo *random_info)
{
- register size_t
+ register unsigned long
*seed;
- size_t
+ unsigned long
alpha;
seed=random_info->seed;
do
{
- alpha=(size_t) (seed[1] ^ (seed[1] << 11));
+ alpha=(unsigned long) (seed[1] ^ (seed[1] << 11));
seed[1]=seed[2];
seed[2]=seed[3];
seed[3]=seed[0];
%
% The format of the SeedPseudoRandomGenerator method is:
%
-% void SeedPseudoRandomGenerator(const size_t seed)
+% void SeedPseudoRandomGenerator(const unsigned long seed)
%
% A description of each parameter follows:
%
extern MagickExport void
RandomComponentTerminus(void),
- SeedPseudoRandomGenerator(const size_t),
+ SeedPseudoRandomGenerator(const unsigned long),
SetRandomKey(RandomInfo *,const size_t,unsigned char *),
SetRandomTrueRandom(const MagickBooleanType);
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
resource_database=(XrmDatabase) NULL;
(void) ResetMagickMemory(&resource_info,0,sizeof(XResourceInfo));
server_name=(char *) NULL;
MagickBooleanType
fire,
pend,
+ respect_parenthesis,
subimage_search;
MagickStatusType
option=(char *) NULL;
pend=MagickFalse;
reconstruct_image=NewImageList();
+ respect_parenthesis=MagickFalse;
status=MagickTrue;
subimage_search=MagickFalse;
/*
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
status=MagickTrue;
/*
Check command syntax.
image=NewImageList();
number_images=0;
option=(char *) NULL;
- (void) respect_parenthesis;
/*
Conjure an image.
*/
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
status=MagickTrue;
/*
Parse command-line arguments.
l;
MagickBooleanType
- fire;
+ fire,
+ pend,
+ respect_parenthesis;
MagickStatusType
- pend,
status;
QuantizeInfo
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
resource_database=(XrmDatabase) NULL;
(void) ResetMagickMemory(&resource_info,0,sizeof(resource_info));
server_name=(char *) NULL;
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
status=MagickTrue;
/*
Identify an image.
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
option=(char *) NULL;
pend=MagickFalse;
resource_database=(XrmDatabase) NULL;
+ respect_parenthesis=MagickFalse;
(void) ResetMagickMemory(&resource_info,0,sizeof(resource_info));
server_name=(char *) NULL;
status=MagickTrue;
*image;
} ImageStack;
-static MagickBooleanType
- respect_parenthesis = MagickFalse;
-
static inline MagickRealType MagickPixelIntensity(
const MagickPixelPacket *pixel)
{
ImageInfo
*mogrify_info;
- ssize_t
- count;
-
- MagickBooleanType
+ MagickStatusType
status;
MagickPixelPacket
register ssize_t
i;
+ ssize_t
+ count;
+
/*
Initialize method variables.
*/
*image=resize_image;
break;
}
- if (LocaleNCompare("respect-parentheses",option+1,17) == 0)
- {
- respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse;
- break;
- }
if (LocaleCompare("roll",option+1) == 0)
{
Image
ImageStack
image_stack[MaxImageStackDepth+1];
- ssize_t
- j,
- k;
-
- register ssize_t
- i;
-
MagickBooleanType
global_colormap;
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
+ register ssize_t
+ i;
+
+ ssize_t
+ j,
+ k;
+
/*
Set defaults.
*/
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
status=MagickTrue;
/*
Parse command line.
ThrowMogrifyInvalidArgumentException(option,argv[i]);
break;
}
+ if (LocaleNCompare("respect-parentheses",option+1,17) == 0)
+ {
+ respect_parenthesis=(*option == '-') ? MagickTrue : MagickFalse;
+ break;
+ }
if (LocaleCompare("reverse",option+1) == 0)
break;
if (LocaleCompare("roll",option+1) == 0)
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
scene=0;
status=MagickFalse;
transparent_color=(char *) NULL;
MagickBooleanType
fire,
- pend;
+ pend,
+ respect_parenthesis;
MagickStatusType
status;
NewImageStack();
option=(char *) NULL;
pend=MagickFalse;
+ respect_parenthesis=MagickFalse;
stream_info=AcquireStreamInfo(image_info);
status=MagickTrue;
/*