channel_mask=UndefinedChannel;
pixel=0.0;
p=(char *) expression;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
channel_op=ExtractChannelOp;
for (channels=0; *token != '\0'; )
{
{
case ',':
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
break;
}
case '|':
source_image=GetNextImageInList(source_image);
else
source_image=GetFirstImageInList(source_image);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
break;
}
case ';':
destination_image=GetLastImageInList(destination_image);
return((Image *) NULL);
}
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
channels=0;
destination_channel=RedPixelChannel;
channel_mask=UndefinedChannel;
}
source_channel=(PixelChannel) i;
channel_op=ExtractChannelOp;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == '<')
{
channel_op=ExchangeChannelOp;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
if (*token == '=')
{
if (channel_op != ExchangeChannelOp)
channel_op=AssignChannelOp;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
if (*token == '>')
{
if (channel_op != ExchangeChannelOp)
channel_op=TransferChannelOp;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
switch (channel_op)
{
if (((channels >= 1) || (destination_channel >= 1)) &&
(IsGrayColorspace(destination_image->colorspace) != MagickFalse))
(void) SetImageColorspace(destination_image,sRGBColorspace,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
break;
}
default:
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
color_info=(ColorInfo *) NULL;
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'C':
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
/*
Parse configure element.
*/
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'N':
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
delegate_info=(DelegateInfo *) NULL;
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'C':
extent=strlen(token)+MagickPathExtent;
for (q=primitive; *q != '\0'; )
{
- GetNextToken(q,&q,extent,token);
+ if (GetNextToken(q,&q,extent,token) < 1)
+ break;
if (*token == '\0')
break;
if (LocaleCompare("push",token) == 0)
*end,
*start;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*q == '"')
{
char
/*
Named macro (e.g. push graphic-context "wheel").
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
start=q;
end=q;
(void) CopyMagickString(name,token,MagickPathExtent);
n=1;
for (p=q; *p != '\0'; )
{
- GetNextToken(p,&p,extent,token);
+ (void) GetNextToken(p,&p,extent,token);
if (*token == '\0')
break;
if (LocaleCompare(token,"pop") == 0)
/*
Extract macro.
*/
- GetNextToken(p,&p,extent,token);
+ (void) GetNextToken(p,&p,extent,token);
(void) CopyMagickString(macro,start,(size_t) (end-start));
(void) AddValueToSplayTree(macros,ConstantString(name),
ConstantString(macro));
/*
Interpret graphic primitive.
*/
- GetNextToken(q,&q,MagickPathExtent,keyword);
+ if (GetNextToken(q,&q,MagickPathExtent,keyword) < 1)
+ break;
if (*keyword == '\0')
break;
if (*keyword == '#')
{
if (LocaleCompare("affine",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.rx=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ry=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
}
if (LocaleCompare("border-color",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
status&=QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->border_color,exception);
break;
const char
*mvg_class;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
{
status=MagickFalse;
/*
Take a node from within the MVG document, and duplicate it here.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
{
status=MagickFalse;
ssize_t
fill_rule;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
fill_rule=ParseCommandOption(MagickFillRuleOptions,MagickFalse,
token);
if (fill_rule == -1)
ssize_t
clip_units;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
clip_units=ParseCommandOption(MagickClipPathOptions,MagickFalse,
token);
if (clip_units == -1)
MVG compliance associates a clipping mask with an image; SVG
compliance associates a clipping mask with a graphics context.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->compliance=(ComplianceType) ParseCommandOption(
MagickComplianceOptions,MagickFalse,token);
break;
ssize_t
decorate;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
decorate=ParseCommandOption(MagickDecorateOptions,MagickFalse,
token);
if (decorate == -1)
}
if (LocaleCompare("density",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->density,token);
break;
}
ssize_t
direction;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
direction=ParseCommandOption(MagickDirectionOptions,MagickFalse,
token);
if (direction == -1)
}
if (LocaleCompare("encoding",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->encoding,token);
break;
}
{
if (LocaleCompare("fill",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
(void) FormatLocaleString(pattern,MagickPathExtent,"%s",token);
double
opacity;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
ssize_t
fill_rule;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
fill_rule=ParseCommandOption(MagickFillRuleOptions,MagickFalse,
token);
if (fill_rule == -1)
}
if (LocaleCompare("font",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->font,token);
if (LocaleCompare("none",token) == 0)
graphic_context[n]->font=(char *) RelinquishMagickMemory(
}
if (LocaleCompare("font-family",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->family,token);
break;
}
if (LocaleCompare("font-size",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->pointsize=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
ssize_t
stretch;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
stretch=ParseCommandOption(MagickStretchOptions,MagickFalse,token);
if (stretch == -1)
{
ssize_t
style;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
style=ParseCommandOption(MagickStyleOptions,MagickFalse,token);
if (style == -1)
{
ssize_t
weight;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
weight=ParseCommandOption(MagickWeightOptions,MagickFalse,token);
if (weight == -1)
weight=(ssize_t) StringToUnsignedLong(token);
{
if (LocaleCompare("gradient-units",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("gravity",keyword) == 0)
ssize_t
gravity;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
gravity=ParseCommandOption(MagickGravityOptions,MagickFalse,token);
if (gravity == -1)
{
compose;
primitive_type=ImagePrimitive;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
compose=ParseCommandOption(MagickComposeOptions,MagickFalse,token);
if (compose == -1)
{
}
if (LocaleCompare("interline-spacing",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->interline_spacing=StringToDouble(token,
&next_token);
if (token == next_token)
}
if (LocaleCompare("interword-spacing",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->interword_spacing=StringToDouble(token,
&next_token);
if (token == next_token)
{
if (LocaleCompare("kerning",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->kerning=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
{
if (LocaleCompare("letter-spacing",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
clone_info=CloneDrawInfo((ImageInfo *) NULL,graphic_context[n]);
clone_info->text=AcquireString(" ");
status&=GetTypeMetrics(image,clone_info,&metrics,exception);
/*
Take a node from within the MVG document, and duplicate it here.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
mask_path=(const char *) GetValueFromSplayTree(macros,token);
if (mask_path != (const char *) NULL)
{
{
if (LocaleCompare("offset",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("opacity",keyword) == 0)
double
opacity;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
}
if (LocaleCompare("pop",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare("class",token) == 0)
break;
if (LocaleCompare("clip-path",token) == 0)
}
if (LocaleCompare("push",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare("class",token) == 0)
{
/*
*/
for (p=q; *q != '\0'; )
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"class") != 0)
continue;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("clip-path",token) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
for (p=q; *q != '\0'; )
{
GetNextToken(q,&q,extent,token);
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("defs",token) == 0)
SegmentInfo
segment;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(type,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
segment.x1=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
segment.y1=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
segment.x2=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
segment.y2=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
if (LocaleCompare(type,"radial") == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
}
for (p=q; *q != '\0'; )
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"gradient") != 0)
continue;
break;
MagickMax(fabs(bounds.y2-bounds.y1+1.0),1.0),
bounds.x1,bounds.y1);
(void) SetImageArtifact(image,key,geometry);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("graphic-context",token) == 0)
graphic_context[n]=CloneDrawInfo((ImageInfo *) NULL,
graphic_context[n-1]);
if (*q == '"')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("mask",token) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("pattern",token) == 0)
RectangleInfo
bounds;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
bounds.x=(ssize_t) ceil(StringToDouble(token,&next_token)-0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
bounds.y=(ssize_t) ceil(StringToDouble(token,&next_token)-0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
bounds.width=(size_t) floor(StringToDouble(token,&next_token)+
0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
bounds.height=(size_t) floor(StringToDouble(token,&next_token)+
0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
for (p=q; *q != '\0'; )
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"pattern") != 0)
continue;
break;
"%.20gx%.20g%+.20g%+.20g",(double) bounds.width,(double)
bounds.height,(double) bounds.x,(double) bounds.y);
(void) SetImageArtifact(image,key,geometry);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("symbol",token) == 0)
}
if (LocaleCompare("rotate",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
{
if (LocaleCompare("scale",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
}
if (LocaleCompare("skewX",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
}
if (LocaleCompare("skewY",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
image->filename);
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
status&=QueryColorCompliance(token,AllCompliance,&stop_color,
exception);
stops[number_stops-1].color=stop_color;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
stops[number_stops-1].offset=factor*StringToDouble(token,
&next_token);
}
if (LocaleCompare("stroke",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
(void) FormatLocaleString(pattern,MagickPathExtent,"%s",token);
}
if (LocaleCompare("stroke-antialias",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->stroke_antialias=StringToLong(token) != 0 ?
MagickTrue : MagickFalse;
break;
*r;
r=q;
- GetNextToken(r,&r,extent,token);
+ (void) GetNextToken(r,&r,extent,token);
if (*token == ',')
- GetNextToken(r,&r,extent,token);
+ (void) GetNextToken(r,&r,extent,token);
for (x=0; IsPoint(token) != MagickFalse; x++)
{
- GetNextToken(r,&r,extent,token);
+ (void) GetNextToken(r,&r,extent,token);
if (*token == ',')
- GetNextToken(r,&r,extent,token);
+ (void) GetNextToken(r,&r,extent,token);
}
graphic_context[n]->dash_pattern=(double *)
AcquireQuantumMemory((size_t) (2*x+2),
(2*x+2)*sizeof(*graphic_context[n]->dash_pattern));
for (j=0; j < x; j++)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->dash_pattern[j]=StringToDouble(token,
&next_token);
if (token == next_token)
graphic_context[n]->dash_pattern[j]=0.0;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("stroke-dashoffset",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->dash_offset=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
ssize_t
linecap;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
linecap=ParseCommandOption(MagickLineCapOptions,MagickFalse,token);
if (linecap == -1)
{
ssize_t
linejoin;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
linejoin=ParseCommandOption(MagickLineJoinOptions,MagickFalse,
token);
if (linejoin == -1)
}
if (LocaleCompare("stroke-miterlimit",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->miterlimit=StringToUnsignedLong(token);
break;
}
double
opacity;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
}
if (LocaleCompare("stroke-width",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (graphic_context[n]->clip_path != MagickFalse)
break;
graphic_context[n]->stroke_width=StringToDouble(token,&next_token);
ssize_t
align;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
align=ParseCommandOption(MagickAlignOptions,MagickFalse,token);
if (align == -1)
{
ssize_t
align;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
align=ParseCommandOption(MagickAlignOptions,MagickFalse,token);
if (align == -1)
{
}
if (LocaleCompare("text-antialias",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->text_antialias=StringToLong(token) != 0 ?
MagickTrue : MagickFalse;
break;
}
if (LocaleCompare("text-undercolor",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
status&=QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->undercolor,exception);
break;
}
if (LocaleCompare("translate",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
/*
Get a macro from the MVG document, and "use" it here.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
use=(const char *) GetValueFromSplayTree(macros,token);
if (use != (const char *) NULL)
{
{
if (LocaleCompare("viewbox",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.x=(ssize_t) ceil(StringToDouble(token,
&next_token)-0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.y=(ssize_t) ceil(StringToDouble(token,
&next_token)-0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.width=(size_t) floor(StringToDouble(
token,&next_token)+0.5);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.height=(size_t) floor(StringToDouble(
token,&next_token)+0.5);
if (token == next_token)
{
if (LocaleCompare("word-spacing",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
graphic_context[n]->interword_spacing=StringToDouble(token,
&next_token);
if (token == next_token)
*/
if (IsPoint(q) == MagickFalse)
break;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
point.x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
point.y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
primitive_info[i].primitive=primitive_type;
primitive_info[i].point=point;
primitive_info[i].coordinates=0;
*s,
*t;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
coordinates=1.0;
t=token;
for (s=token; *s != '\0'; s=t)
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
method=ParseCommandOption(MagickMethodOptions,MagickFalse,token);
if (method == -1)
{
break;
}
if (*token != ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&primitive_info[j].text,token);
/*
Compute text cursor offset.
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CloneString(&primitive_info[j].text,token);
break;
}
*/
do
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
arc.x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
arc.y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
angle=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
large_arc=StringToLong(token) != 0 ? MagickTrue : MagickFalse;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
sweep=StringToLong(token) != 0 ? MagickTrue : MagickFalse;
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
points[0]=point;
for (i=1; i < 4; i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
{
do
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
*/
do
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
i=0;
do
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
points[0]=point;
for (i=1; i < 3; i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
points[1].y=2.0*points[3].y-points[2].y;
for (i=2; i < 4; i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
points[1].y=2.0*points[2].y-points[1].y;
for (i=2; i < 3; i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
*/
do
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
if (token == next_token)
ThrowPointExpectedException(token,exception);
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
{
content=GetXMLTreeContent(saturation);
p=(const char *) content;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
color_correction.saturation=StringToDouble(token,(char **) NULL);
}
}
p=(char *) geometry;
for (i=0; (*p != '\0') && (i < 6); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
while (isspace((int) ((unsigned char) *q)) != 0)
q++;
}
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
while (isspace((int) ((unsigned char) *q)) != 0)
q++;
}
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"locale") == 0)
{
if (LocaleCompare(locale,token) != 0)
while ((*token != '>') && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
}
continue;
}
while ((*token != '>') && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"name") == 0)
{
(void) ConcatenateMagickString(tag,token,MagickLocaleExtent);
(void) ConcatenateMagickString(tag,"/",MagickLocaleExtent);
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
}
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
log_info=(LogInfo *) NULL;
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'E':
p++; /* ignore "'" chars for convolve filter usage - Cristy */
for (i=0; p < end; i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
/* set the size of the kernel - old sized square */
kernel->width = kernel->height= (size_t) sqrt((double) i+1.0);
kernel->negative_range = kernel->positive_range = 0.0;
for (i=0; (i < (ssize_t) (kernel->width*kernel->height)) && (p < end); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ( LocaleCompare("nan",token) == 0
|| LocaleCompare("-",token) == 0 ) {
kernel->values[i] = nan; /* this value is not part of neighbourhood */
}
/* sanity check -- no more values in kernel definition */
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ( *token != '\0' && *token != ';' && *token != '\'' )
return(DestroyKernelInfo(kernel));
type;
/* Parse special 'named' kernel */
- GetNextToken(kernel_string,&p,MagickPathExtent,token);
+ (void) GetNextToken(kernel_string,&p,MagickPathExtent,token);
type=ParseCommandOption(MagickKernelOptions,MagickFalse,token);
if ( type < 0 || type == UserDefinedKernel )
return((KernelInfo *) NULL); /* not a valid named kernel */
for (q=value_name; *q != '\0'; )
{
- GetNextToken(q,(const char **) &q,MagickPathExtent,token);
+ (void) GetNextToken(q,(const char **) &q,MagickPathExtent,token);
if (*token == '\0')
break;
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<device") == 0)
device_benchmark);
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'M':
ssize_t
channel;
- GetNextToken(channels,(const char **) NULL,MagickPathExtent,token);
+ (void) GetNextToken(channels,(const char **) NULL,MagickPathExtent,token);
if ((*token == ';') || (*token == '|'))
return(RedPixelChannel);
channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Docdomain element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
policy_info=(PolicyInfo *) NULL;
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'D':
p=strchr((char *) threshold_map,',');
if ((p != (char *) NULL) && (isdigit((int) ((unsigned char) *(++p))) != 0))
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
for (i=0; (i < MaxPixelChannels); i++)
levels[i]=StringToDouble(token,(char **) NULL);
for (i=0; (*p != '\0') && (i < MaxPixelChannels); i++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
levels[i]=StringToDouble(token,(char **) NULL);
}
}
% a sequence of characters delimited by whitespace (e.g. clip-path), a
% sequence delimited with quotes (.e.g "Quote me"), or a sequence enclosed in
% parenthesis (e.g. rgb(0,0,0)). GetNextToken() also recognizes these
-% separator characters: ':', '=', ',', and ';'.
+% separator characters: ':', '=', ',', and ';'. GetNextToken() returns the
+% length of the consumed token.
%
% The format of the GetNextToken method is:
%
-% void GetNextToken(const char *start,const char **end,
+% size_t GetNextToken(const char *start,const char **end,
% const size_t extent,char *token)
%
% A description of each parameter follows:
% o token: copy the token to this buffer.
%
*/
-MagickExport void GetNextToken(const char *start,const char **end,
+MagickExport size_t GetNextToken(const char *start,const char **end,
const size_t extent,char *token)
{
double
}
}
token[i]='\0';
- q=strrchr(token,')');
- if ((LocaleNCompare(token,"url(#",5) == 0) && (q != (char *) NULL))
+ if (LocaleNCompare(token,"url(#",5) == 0)
{
- *q='\0';
- (void) memmove(token,token+5,(size_t) (q-token-4));
+ q=strrchr(token,')');
+ if (q != (char *) NULL)
+ {
+ *q='\0';
+ (void) memmove(token,token+5,(size_t) (q-token-4));
+ }
}
while (isspace((int) ((unsigned char) *p)) != 0)
p++;
if (end != (const char **) NULL)
*end=(const char *) p;
+ return(p-start+1);
}
\f
/*
GlobExpression(const char *,const char *,const MagickBooleanType)
magick_attribute((__pure__));
+extern MagickExport size_t
+ GetNextToken(const char *,const char **,const size_t,char *);
+
extern MagickExport TokenInfo
*AcquireTokenInfo(void),
*DestroyTokenInfo(TokenInfo *);
-extern MagickExport void
- GetNextToken(const char *,const char **,const size_t,char *);
-
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
/*
Interpret XML.
*/
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > MagickMaxRecursionDepth)
type_info=(TypeInfo *) NULL;
continue;
}
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'E':
i++;
if (i == (ssize_t) argc)
ThrowConvertException(OptionError,"MissingArgument",option);
- GetNextToken(argv[i],(const char **) NULL,MagickPathExtent,token);
+ (void) GetNextToken(argv[i],(const char **) NULL,MagickPathExtent,token);
op=ParseCommandOption(MagickMorphologyOptions,MagickFalse,token);
if (op < 0)
ThrowConvertException(OptionError,"UnrecognizedMorphologyMethod",
*p;
p=q;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
for (x=0; IsPoint(token) != MagickFalse; x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
CurrentContext->dash_pattern=(double *) AcquireQuantumMemory(
(size_t) (2UL*x)+1UL,sizeof(*CurrentContext->dash_pattern));
"MemoryAllocationFailed",wand->name);
for (j=0; j < x; j++)
{
- GetNextToken(q,&q,MagickPathExtent,token);
+ (void) GetNextToken(q,&q,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(q,&q,MagickPathExtent,token);
+ (void) GetNextToken(q,&q,MagickPathExtent,token);
CurrentContext->dash_pattern[j]=StringToDouble(token,
(char **) NULL);
}
x=0;
while( *p != '\0' )
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ( token[0] == ',' ) continue;
if ( isalpha((int) token[0]) || token[0] == '#' ) {
if ( color_from_image ) {
p=(char *) args;
for (x=0; *p != '\0'; x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
number_arguments=(size_t) x;
arguments=(double *) AcquireQuantumMemory(number_arguments,
p=(char *) args;
for (x=0; (x < (ssize_t) number_arguments) && (*p != '\0'); x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
arguments[x]=StringToDouble(token,(char **) NULL);
}
args=DestroyString(args);
p=(char *) arguments;
for (x=0; *p != '\0'; x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
number_parameters=(size_t) x;
parameters=(double *) AcquireQuantumMemory(number_parameters,
p=(char *) arguments;
for (x=0; (x < (ssize_t) number_parameters) && (*p != '\0'); x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
parameters[x]=StringToDouble(token,(char **) NULL);
}
arguments=DestroyString(arguments);
white_point;
p=(const char *) argv[i+1];
- GetNextToken(p,&p,MagickPathExtent,token); /* get black point color */
+ (void) GetNextToken(p,&p,MagickPathExtent,token); /* get black point color */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
(void) QueryColorCompliance(token,AllCompliance,
&black_point,exception);
(void) QueryColorCompliance("#000000",AllCompliance,
&black_point,exception);
if (isalpha((int) token[0]) || (token[0] == '#'))
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == '\0')
white_point=black_point; /* set everything to that color */
else
{
if ((isalpha((int) *token) == 0) && ((*token == '#') == 0))
- GetNextToken(p,&p,MagickPathExtent,token); /* Get white point color. */
+ (void) GetNextToken(p,&p,MagickPathExtent,token); /* Get white point color. */
if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
(void) QueryColorCompliance(token,AllCompliance,
&white_point,exception);
*/
(void) SyncImageSettings(mogrify_info,*image,exception);
p=argv[i+1];
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
method=(MorphologyMethod) ParseCommandOption(
MagickMorphologyOptions,MagickFalse,token);
iterations=1L;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ((*p == ':') || (*p == ','))
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ((*p != '\0'))
iterations=(ssize_t) StringToLong(p);
kernel=AcquireKernelInfo(argv[i+2],exception);
i++;
if (i == (ssize_t) argc)
ThrowMogrifyException(OptionError,"MissingArgument",option);
- GetNextToken(argv[i],(const char **) NULL,MagickPathExtent,token);
+ (void) GetNextToken(argv[i],(const char **) NULL,MagickPathExtent,token);
op=ParseCommandOption(MagickMorphologyOptions,MagickFalse,token);
if (op < 0)
ThrowMogrifyException(OptionError,"UnrecognizedMorphologyMethod",
p=(char *) args;
for (x=0; *p != '\0'; x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
}
number_arguments=(size_t) x;
arguments=(double *) AcquireQuantumMemory(number_arguments,
p=(char *) args;
for (x=0; (x < (ssize_t) number_arguments) && (*p != '\0'); x++)
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
arguments[x]=StringToDouble(token,(char **) NULL);
}
args=DestroyString(args);
x=0;
while( *p != '\0' )
{
- GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == ',' ) continue;
- if ( isalpha((int) token[0]) || token[0] == '#' )
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
+ if (*token == ',') continue;
+ if ( isalpha((int) ((unsigned char) *token)) || *token == '#' )
x += number_colors; /* color argument found */
else
x++; /* floating point argument */
x=0;
while( *p != '\0' && x < number_arguments ) {
/* X coordinate */
- token[0]=','; while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' ) break;
- if ( isalpha((int) token[0]) || token[0] == '#' ) {
+ *token=','; while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if (*token == '\0') break;
+ if ( isalpha((int) ((unsigned char) *token)) || *token == '#' ) {
(void) ThrowMagickException(exception,GetMagickModule(),
OptionError, "InvalidArgument", "'%s': %s", "sparse-color",
"Color found, instead of X-coord");
}
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
/* Y coordinate */
- token[0]=','; while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' ) break;
- if ( isalpha((int) token[0]) || token[0] == '#' ) {
+ *token=','; while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ( *token == '\0' ) break;
+ if ( isalpha((int) ((unsigned char) *token)) || *token == '#' ) {
(void) ThrowMagickException(exception,GetMagickModule(),
OptionError, "InvalidArgument", "'%s': %s", "sparse-color",
"Color found, instead of Y-coord");
}
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
/* color name or function given in string argument */
- token[0]=','; while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' ) break;
- if ( isalpha((int) token[0]) || token[0] == '#' ) {
+ *token=','; while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ( *token == '\0' ) break;
+ if ( isalpha((int) ((unsigned char) *token)) || *token == '#' ) {
/* Color string given */
(void) QueryColorCompliance(token,AllCompliance,&color,
exception);
/* NB: token contains the first floating point value to use! */
if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0)
{
- while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
+ while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ((*token == '\0') || isalpha((int)*token) || *token == '#' )
break;
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
- token[0] = ','; /* used this token - get another */
+ *token=','; /* used this token - get another */
}
if ((GetPixelGreenTraits(image) & UpdatePixelTrait) != 0)
{
- while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
+ while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ((*token == '\0') || isalpha((int)*token) || *token == '#' )
break;
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
- token[0] = ','; /* used this token - get another */
+ *token=','; /* used this token - get another */
}
if ((GetPixelBlueTraits(image) & UpdatePixelTrait) != 0)
{
- while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
+ while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ((*token == '\0') || isalpha((int)*token) || *token == '#' )
break;
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
- token[0] = ','; /* used this token - get another */
+ *token = ','; /* used this token - get another */
}
if (((GetPixelBlackTraits(image) & UpdatePixelTrait) != 0) &&
(image->colorspace == CMYKColorspace))
{
- while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
+ while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ((*token == '\0') || isalpha((int)*token) || *token == '#' )
break;
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
- token[0] = ','; /* used this token - get another */
+ *token=','; /* used this token - get another */
}
if (((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0) &&
image->alpha_trait != UndefinedPixelTrait)
{
- while ( token[0] == ',' ) GetNextToken(p,&p,MagickPathExtent,token);
- if ( token[0] == '\0' || isalpha((int)token[0]) || token[0] == '#' )
+ while (*token == ',') GetNextToken(p,&p,MagickPathExtent,token);
+ if ( *token == '\0' || isalpha((int)*token) || *token == '#' )
break;
sparse_arguments[x++]=StringToDouble(token,(char **) NULL);
- token[0] = ','; /* used this token - get another */
+ *token = ','; /* used this token - get another */
}
}
}
white_point;
p=(const char *) arg1;
- GetNextToken(p,&p,MagickPathExtent,token); /* get black point color */
- if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
+ (void) GetNextToken(p,&p,MagickPathExtent,token); /* get black point color */
+ if ((isalpha((int) ((unsigned char) *token)) != 0) || ((*token == '#') != 0))
(void) QueryColorCompliance(token,AllCompliance,
&black_point,_exception);
else
(void) QueryColorCompliance("#000000",AllCompliance,
&black_point,_exception);
- if (isalpha((int) token[0]) || (token[0] == '#'))
- GetNextToken(p,&p,MagickPathExtent,token);
+ if (isalpha((int) ((unsigned char) *token)) || (*token == '#'))
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == '\0')
white_point=black_point; /* set everything to that color */
else
{
- if ((isalpha((int) *token) == 0) && ((*token == '#') == 0))
- GetNextToken(p,&p,MagickPathExtent,token); /* Get white point color. */
- if ((isalpha((int) *token) != 0) || ((*token == '#') != 0))
+ if ((isalpha((int) ((unsigned char) *token)) == 0) && ((*token == '#') == 0))
+ (void) GetNextToken(p,&p,MagickPathExtent,token); /* Get white point color. */
+ if ((isalpha((int) ((unsigned char) *token)) != 0) || ((*token == '#') != 0))
(void) QueryColorCompliance(token,AllCompliance,
&white_point,_exception);
else
iterations;
p=arg1;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
parse=ParseCommandOption(MagickMorphologyOptions,MagickFalse,token);
if ( parse < 0 )
CLIWandExceptArgBreak(OptionError,"UnrecognizedFunction",option,
arg1);
iterations=1L;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ((*p == ':') || (*p == ','))
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if ((*p != '\0'))
iterations=(ssize_t) StringToLong(p);
kernel=AcquireKernelInfo(arg2,exception);
*q;
q=p;
- GetNextToken(q,&q,MagickPathExtent,token);
+ (void) GetNextToken(q,&q,MagickPathExtent,token);
if ((*token == '#') || (*token == '\0'))
continue;
if ((LocaleCompare(token,"LUT_1D_SIZE") == 0) ||
{
if (cube_info != (MemoryInfo *) NULL)
cube_info=RelinquishVirtualMemory(cube_info);
- GetNextToken(q,&q,MagickPathExtent,value);
+ (void) GetNextToken(q,&q,MagickPathExtent,value);
cube_level=(size_t) StringToLong(value);
if (LocaleCompare(token,"LUT_1D_SIZE") == 0)
cube_level=(size_t) ceil(pow((double) cube_level,1.0/3.0));
else
if (LocaleCompare(token,"TITLE ") == 0)
{
- GetNextToken(q,&q,MagickPathExtent,value);
+ (void) GetNextToken(q,&q,MagickPathExtent,value);
(void) SetImageProperty(image,"title",value,exception);
}
else
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",string);
assert(string != (const char *) NULL);
p=(const char *) string;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
value=StringToDouble(token,&next_token);
if (strchr(token,'%') != (char *) NULL)
{
beta=value-svg_info->view_box.height;
return(hypot(alpha,beta)/sqrt(2.0)/100.0);
}
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (LocaleNCompare(token,"cm",2) == 0)
return(DefaultSVGDensity*svg_info->scale[0]/2.54*value);
if (LocaleNCompare(token,"em",2) == 0)
for (p=value; ; )
{
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token != '\0')
{
(void) FormatLocaleFile(svg_info->file,"class \"%s\"\n",
if (LocaleCompare(keyword,"matrix") == 0)
{
p=(const char *) value;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.sx=StringToDouble(value,(char **) NULL);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.rx=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.ry=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.sy=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.tx=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.ty=StringToDouble(token,&next_token);
break;
}
if (LocaleCompare(keyword,"matrix") == 0)
{
p=(const char *) value;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.sx=StringToDouble(value,(char **) NULL);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.rx=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.ry=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.sy=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.tx=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
affine.ty=StringToDouble(token,&next_token);
break;
}
y;
p=(const char *) value;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
angle=StringToDouble(value,(char **) NULL);
affine.sx=cos(DegreesToRadians(fmod(angle,360.0)));
affine.rx=sin(DegreesToRadians(fmod(angle,360.0)));
affine.ry=(-sin(DegreesToRadians(fmod(angle,360.0))));
affine.sy=cos(DegreesToRadians(fmod(angle,360.0)));
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,&next_token);
affine.tx=svg_info->bounds.x+x*
cos(DegreesToRadians(fmod(angle,360.0)))+y*
if (LocaleCompare(keyword,"viewBox") == 0)
{
p=(const char *) value;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
svg_info->view_box.x=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
svg_info->view_box.y=StringToDouble(token,&next_token);
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
svg_info->view_box.width=StringToDouble(token,
(char **) NULL);
if (svg_info->bounds.width == 0)
svg_info->bounds.width=svg_info->view_box.width;
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetNextToken(p,&p,MagickPathExtent,token);
+ (void) GetNextToken(p,&p,MagickPathExtent,token);
svg_info->view_box.height=StringToDouble(token,
(char **) NULL);
if (svg_info->bounds.height == 0)
/*
Interpret graphic primitive.
*/
- GetNextToken(q,&q,MagickPathExtent,keyword);
+ (void) GetNextToken(q,&q,MagickPathExtent,keyword);
if (*keyword == '\0')
break;
if (*keyword == '#')
{
if (LocaleCompare("affine",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.rx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ry=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,&next_token);
break;
}
}
if (LocaleCompare("angle",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.rx=StringToDouble(token,&next_token);
affine.ry=StringToDouble(token,&next_token);
break;
{
if (LocaleCompare("clip-path",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"clip-path:url(#%s);",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("clip-rule",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"clip-rule:%s;",
token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("clip-units",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"clipPathUnits=%s;",token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("decorate",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"text-decoration:%s;",token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("fill",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"fill:%s;",
token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("fill-rule",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"fill-rule:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("fill-opacity",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"fill-opacity:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("font-family",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"font-family:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("font-stretch",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"font-stretch:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("font-style",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"font-style:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("font-size",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"font-size:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("font-weight",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"font-weight:%s;",token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("gradient-units",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("text-align",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"text-align %s ",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("text-anchor",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"text-anchor %s ",token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("image",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
primitive_type=ImagePrimitive;
break;
}
{
if (LocaleCompare("kerning",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"kerning:%s;",
token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("letter-spacing",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"letter-spacing:%s;",token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("opacity",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"opacity %s ",
token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("pop",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare("clip-path",token) == 0)
{
(void) WriteBlobString(image,"</clipPath>\n");
}
if (LocaleCompare("push",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare("clip-path",token) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"<clipPath id=\"%s\">\n",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("gradient",token) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(type,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.segment.x1=StringToDouble(token,&next_token);
svg_info.element.cx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.segment.y1=StringToDouble(token,&next_token);
svg_info.element.cy=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.segment.x2=StringToDouble(token,&next_token);
svg_info.element.major=StringToDouble(token,
(char **) NULL);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.segment.y2=StringToDouble(token,&next_token);
svg_info.element.minor=StringToDouble(token,
(char **) NULL);
svg_info.segment.y1,svg_info.segment.x2,svg_info.segment.y2);
if (LocaleCompare(type,"radial") == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.element.angle=StringToDouble(token,
(char **) NULL);
(void) FormatLocaleString(message,MagickPathExtent,
}
if (LocaleCompare("pattern",token) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.bounds.x=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.bounds.y=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.bounds.width=StringToDouble(token,
(char **) NULL);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
svg_info.bounds.height=StringToDouble(token,(char **) NULL);
(void) FormatLocaleString(message,MagickPathExtent,
"<pattern id=\"%s\" x=\"%g\" y=\"%g\" width=\"%g\" "
}
if (LocaleCompare("rotate",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"rotate(%s) ",
token);
(void) WriteBlobString(image,message);
{
if (LocaleCompare("scale",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,&next_token);
break;
}
if (LocaleCompare("skewX",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"skewX(%s) ",
token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("skewY",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"skewY(%s) ",
token);
(void) WriteBlobString(image,message);
char
color[MagickPathExtent];
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) CopyMagickString(color,token,MagickPathExtent);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
" <stop offset=\"%s\" stop-color=\"%s\" />\n",token,color);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"stroke:%s;",
token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-antialias",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-antialias:%s;",token);
(void) WriteBlobString(image,message);
k;
p=q;
- GetNextToken(p,&p,extent,token);
+ (void) GetNextToken(p,&p,extent,token);
for (k=0; IsPoint(token); k++)
- GetNextToken(p,&p,extent,token);
+ (void) GetNextToken(p,&p,extent,token);
(void) WriteBlobString(image,"stroke-dasharray:");
for (j=0; j < k; j++)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,"%s ",
token);
(void) WriteBlobString(image,message);
(void) WriteBlobString(image,";");
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-dasharray:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-dashoffset",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-dashoffset:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-linecap",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-linecap:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-linejoin",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-linejoin:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-miterlimit",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-miterlimit:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-opacity",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-opacity:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("stroke-width",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"stroke-width:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("text-antialias",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
"text-antialias:%s;",token);
(void) WriteBlobString(image,message);
}
if (LocaleCompare("translate",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,&next_token);
break;
}
{
if (LocaleCompare("viewbox",keyword) == 0)
{
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
break;
}
status=MagickFalse;
*/
if (IsPoint(q) == MagickFalse)
break;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
point.x=StringToDouble(token,&next_token);
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
point.y=StringToDouble(token,&next_token);
- GetNextToken(q,(const char **) NULL,extent,token);
+ (void) GetNextToken(q,(const char **) NULL,extent,token);
if (*token == ',')
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
primitive_info[i].primitive=primitive_type;
primitive_info[i].point=point;
primitive_info[i].coordinates=0;
int
number_attributes;
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
number_attributes=1;
for (p=token; *p != '\0'; p++)
if (isalpha((int) *p))
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
if (LocaleCompare("point",token) == 0)
primitive_info[j].method=PointMethod;
if (LocaleCompare("replace",token) == 0)
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
" <text x=\"%g\" y=\"%g\">",primitive_info[j].point.x,
primitive_info[j].point.y);
status=MagickFalse;
break;
}
- GetNextToken(q,&q,extent,token);
+ (void) GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(message,MagickPathExtent,
" <image x=\"%g\" y=\"%g\" width=\"%g\" height=\"%g\" "
"href=\"%s\"/>\n",primitive_info[j].point.x,