Change GetTokenLexeme() to GetNextToken()
diff --git a/MagickCore/channel.c b/MagickCore/channel.c
index e7db65a..1c64db9 100644
--- a/MagickCore/channel.c
+++ b/MagickCore/channel.c
@@ -243,7 +243,7 @@
channel_mask=UndefinedChannel;
pixel=0.0;
p=(char *) expression;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
channel_op=ExtractChannelOp;
for (channels=0; *token != '\0'; )
{
@@ -257,7 +257,7 @@
{
case ',':
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
break;
}
case '|':
@@ -266,7 +266,7 @@
source_image=GetNextImageInList(source_image);
else
source_image=GetFirstImageInList(source_image);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
break;
}
case ';':
@@ -291,7 +291,7 @@
}
AppendImageToList(&destination_image,canvas);
destination_image=GetLastImageInList(destination_image);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
channels=0;
destination_channel=RedPixelChannel;
channel_mask=UndefinedChannel;
@@ -310,30 +310,30 @@
}
source_channel=(PixelChannel) i;
channel_op=ExtractChannelOp;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == '<')
{
channel_op=ExchangeChannelOp;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
}
if (*token == '=')
{
if (channel_op != ExchangeChannelOp)
channel_op=AssignChannelOp;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
}
if (*token == '>')
{
if (channel_op != ExchangeChannelOp)
channel_op=TransferChannelOp;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
}
switch (channel_op)
{
case AssignChannelOp:
{
pixel=StringToDoubleInterval(token,(double) QuantumRange+1.0);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
break;
}
case ExchangeChannelOp:
@@ -383,7 +383,7 @@
if (((channels >= 1) || (destination_channel >= 1)) &&
(IsGrayColorspace(destination_image->colorspace) != MagickFalse))
(void) SetImageColorspace(destination_image,sRGBColorspace,exception);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
break;
}
default:
diff --git a/MagickCore/coder.c b/MagickCore/coder.c
index e04c5c6..ccfbf48 100644
--- a/MagickCore/coder.c
+++ b/MagickCore/coder.c
@@ -838,7 +838,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -848,7 +848,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -857,7 +857,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -868,10 +868,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -930,11 +930,11 @@
coder_info=(CoderInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'M':
diff --git a/MagickCore/color.c b/MagickCore/color.c
index f9f7ca6..717f7c5 100644
--- a/MagickCore/color.c
+++ b/MagickCore/color.c
@@ -2012,7 +2012,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -2022,7 +2022,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -2031,7 +2031,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -2042,10 +2042,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -2103,11 +2103,11 @@
color_info=(ColorInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'C':
diff --git a/MagickCore/configure.c b/MagickCore/configure.c
index cd64e3d..9c7cc3f 100644
--- a/MagickCore/configure.c
+++ b/MagickCore/configure.c
@@ -1169,7 +1169,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -1179,7 +1179,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -1188,7 +1188,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -1199,10 +1199,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -1264,11 +1264,11 @@
/*
Parse configure element.
*/
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'N':
diff --git a/MagickCore/delegate.c b/MagickCore/delegate.c
index bea0555..78a6747 100644
--- a/MagickCore/delegate.c
+++ b/MagickCore/delegate.c
@@ -1523,7 +1523,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -1533,7 +1533,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -1542,7 +1542,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -1553,10 +1553,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -1615,11 +1615,11 @@
delegate_info=(DelegateInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'C':
diff --git a/MagickCore/draw.c b/MagickCore/draw.c
index 11eb84a..014d3ce 100644
--- a/MagickCore/draw.c
+++ b/MagickCore/draw.c
@@ -1794,7 +1794,7 @@
/*
Interpret graphic primitive.
*/
- GetMagickToken(q,&q,extent,keyword);
+ GetNextToken(q,&q,extent,keyword);
if (*keyword == '\0')
break;
if (*keyword == '#')
@@ -1819,27 +1819,27 @@
{
if (LocaleCompare("affine",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.rx=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.ry=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,(char **) NULL);
break;
}
@@ -1866,7 +1866,7 @@
}
if (LocaleCompare("border-color",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->border_color,exception);
break;
@@ -1882,7 +1882,7 @@
/*
Create clip mask.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->clip_mask,token);
(void) DrawClipPath(image,graphic_context[n],
graphic_context[n]->clip_mask,exception);
@@ -1893,7 +1893,7 @@
ssize_t
fill_rule;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
fill_rule=ParseCommandOption(MagickFillRuleOptions,MagickFalse,
token);
if (fill_rule == -1)
@@ -1907,7 +1907,7 @@
ssize_t
clip_units;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
clip_units=ParseCommandOption(MagickClipPathOptions,MagickFalse,
token);
if (clip_units == -1)
@@ -1948,7 +1948,7 @@
ssize_t
decorate;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
decorate=ParseCommandOption(MagickDecorateOptions,MagickFalse,
token);
if (decorate == -1)
@@ -1959,7 +1959,7 @@
}
if (LocaleCompare("density",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->density,token);
break;
}
@@ -1968,7 +1968,7 @@
ssize_t
direction;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
direction=ParseCommandOption(MagickDirectionOptions,MagickFalse,
token);
if (direction == -1)
@@ -1990,7 +1990,7 @@
}
if (LocaleCompare("encoding",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->encoding,token);
break;
}
@@ -2002,7 +2002,7 @@
{
if (LocaleCompare("fill",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(pattern,MagickPathExtent,"%s",token);
if (GetImageArtifact(image,pattern) != (const char *) NULL)
(void) DrawPatternPath(image,draw_info,token,
@@ -2029,7 +2029,7 @@
}
if (LocaleCompare("fill-opacity",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
graphic_context[n]->fill.alpha=(double) QuantumRange*
factor*StringToDouble(token,(char **) NULL);
@@ -2040,7 +2040,7 @@
ssize_t
fill_rule;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
fill_rule=ParseCommandOption(MagickFillRuleOptions,MagickFalse,
token);
if (fill_rule == -1)
@@ -2051,7 +2051,7 @@
}
if (LocaleCompare("font",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->font,token);
if (LocaleCompare("none",token) == 0)
graphic_context[n]->font=(char *)
@@ -2060,13 +2060,13 @@
}
if (LocaleCompare("font-family",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CloneString(&graphic_context[n]->family,token);
break;
}
if (LocaleCompare("font-size",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->pointsize=StringToDouble(token,(char **) NULL);
break;
}
@@ -2075,7 +2075,7 @@
ssize_t
stretch;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
stretch=ParseCommandOption(MagickStretchOptions,MagickFalse,token);
if (stretch == -1)
status=MagickFalse;
@@ -2088,7 +2088,7 @@
ssize_t
style;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
style=ParseCommandOption(MagickStyleOptions,MagickFalse,token);
if (style == -1)
status=MagickFalse;
@@ -2101,7 +2101,7 @@
ssize_t
weight;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
weight=ParseCommandOption(MagickWeightOptions,MagickFalse,
token);
if (weight == -1)
@@ -2117,7 +2117,7 @@
{
if (LocaleCompare("gradient-units",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("gravity",keyword) == 0)
@@ -2125,7 +2125,7 @@
ssize_t
gravity;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
gravity=ParseCommandOption(MagickGravityOptions,MagickFalse,token);
if (gravity == -1)
status=MagickFalse;
@@ -2145,7 +2145,7 @@
compose;
primitive_type=ImagePrimitive;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
compose=ParseCommandOption(MagickComposeOptions,MagickFalse,token);
if (compose == -1)
status=MagickFalse;
@@ -2155,14 +2155,14 @@
}
if (LocaleCompare("interline-spacing",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->interline_spacing=StringToDouble(token,
(char **) NULL);
break;
}
if (LocaleCompare("interword-spacing",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->interword_spacing=StringToDouble(token,
(char **) NULL);
break;
@@ -2175,7 +2175,7 @@
{
if (LocaleCompare("kerning",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->kerning=StringToDouble(token,(char **) NULL);
break;
}
@@ -2196,12 +2196,12 @@
{
if (LocaleCompare("offset",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("opacity",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
graphic_context[n]->alpha=ClampToQuantum(QuantumRange*(1.0-((1.0-
QuantumScale*graphic_context[n]->alpha)*factor*
@@ -2238,7 +2238,7 @@
}
if (LocaleCompare("pop",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare("clip-path",token) == 0)
break;
if (LocaleCompare("defs",token) == 0)
@@ -2270,27 +2270,27 @@
}
if (LocaleCompare("push",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare("clip-path",token) == 0)
{
char
name[MagickPathExtent];
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(name,MagickPathExtent,"%s",token);
for (p=q; *q != '\0'; )
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"clip-path") != 0)
continue;
break;
}
(void) CopyMagickString(token,p,(size_t) (q-p-4+1));
(void) SetImageArtifact(image,name,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("gradient",token) == 0)
@@ -2303,36 +2303,36 @@
SegmentInfo
segment;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CopyMagickString(type,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
segment.x1=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
segment.y1=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
segment.x2=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
segment.y2=StringToDouble(token,(char **) NULL);
if (LocaleCompare(type,"radial") == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
}
for (p=q; *q != '\0'; )
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"gradient") != 0)
continue;
break;
@@ -2361,7 +2361,7 @@
MagickMax(fabs(bounds.y2-bounds.y1+1.0),1.0),
bounds.x1,bounds.y1);
(void) SetImageArtifact(image,key,geometry);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("pattern",token) == 0)
@@ -2373,32 +2373,32 @@
RectangleInfo
pattern_bounds;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) CopyMagickString(name,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
pattern_bounds.x=(ssize_t) ceil(StringToDouble(token,
(char **) NULL)-0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
pattern_bounds.y=(ssize_t) ceil(StringToDouble(token,
(char **) NULL)-0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
pattern_bounds.width=(size_t) floor(StringToDouble(token,
(char **) NULL)+0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
pattern_bounds.height=(size_t) floor(StringToDouble(token,
(char **) NULL)+0.5);
for (p=q; *q != '\0'; )
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(token,"pop") != 0)
continue;
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (LocaleCompare(token,"pattern") != 0)
continue;
break;
@@ -2413,7 +2413,7 @@
(double)pattern_bounds.height,(double)pattern_bounds.x,
(double)pattern_bounds.y);
(void) SetImageArtifact(image,key,geometry);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("graphic-context",token) == 0)
@@ -2450,7 +2450,7 @@
}
if (LocaleCompare("rotate",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,(char **) NULL);
affine.sx=cos(DegreesToRadians(fmod((double) angle,360.0)));
affine.rx=sin(DegreesToRadians(fmod((double) angle,360.0)));
@@ -2471,24 +2471,24 @@
{
if (LocaleCompare("scale",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.sx=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.sy=StringToDouble(token,(char **) NULL);
break;
}
if (LocaleCompare("skewX",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,(char **) NULL);
affine.ry=sin(DegreesToRadians(angle));
break;
}
if (LocaleCompare("skewY",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
angle=StringToDouble(token,(char **) NULL);
affine.rx=(-tan(DegreesToRadians(angle)/2.0));
break;
@@ -2511,17 +2511,17 @@
image->filename);
break;
}
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) QueryColorCompliance(token,AllCompliance,&stop_color,
exception);
stops[number_stops-1].color=stop_color;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
stops[number_stops-1].offset=StringToDouble(token,(char **) NULL);
break;
}
if (LocaleCompare("stroke",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) FormatLocaleString(pattern,MagickPathExtent,"%s",token);
if (GetImageArtifact(image,pattern) != (const char *) NULL)
(void) DrawPatternPath(image,draw_info,token,
@@ -2548,7 +2548,7 @@
}
if (LocaleCompare("stroke-antialias",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->stroke_antialias=
StringToLong(token) != 0 ? MagickTrue : MagickFalse;
break;
@@ -2564,14 +2564,14 @@
*r;
r=q;
- GetMagickToken(r,&r,extent,token);
+ GetNextToken(r,&r,extent,token);
if (*token == ',')
- GetMagickToken(r,&r,extent,token);
+ GetNextToken(r,&r,extent,token);
for (x=0; IsPoint(token) != MagickFalse; x++)
{
- GetMagickToken(r,&r,extent,token);
+ GetNextToken(r,&r,extent,token);
if (*token == ',')
- GetMagickToken(r,&r,extent,token);
+ GetNextToken(r,&r,extent,token);
}
graphic_context[n]->dash_pattern=(double *)
AcquireQuantumMemory((size_t) (2UL*x+1UL),
@@ -2585,9 +2585,9 @@
}
for (j=0; j < x; j++)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->dash_pattern[j]=StringToDouble(token,
(char **) NULL);
}
@@ -2598,12 +2598,12 @@
graphic_context[n]->dash_pattern[j]=0.0;
break;
}
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
break;
}
if (LocaleCompare("stroke-dashoffset",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->dash_offset=StringToDouble(token,
(char **) NULL);
break;
@@ -2613,7 +2613,7 @@
ssize_t
linecap;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
linecap=ParseCommandOption(MagickLineCapOptions,MagickFalse,token);
if (linecap == -1)
status=MagickFalse;
@@ -2626,7 +2626,7 @@
ssize_t
linejoin;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
linejoin=ParseCommandOption(MagickLineJoinOptions,MagickFalse,
token);
if (linejoin == -1)
@@ -2637,13 +2637,13 @@
}
if (LocaleCompare("stroke-miterlimit",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->miterlimit=StringToUnsignedLong(token);
break;
}
if (LocaleCompare("stroke-opacity",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0;
graphic_context[n]->stroke.alpha=(double) QuantumRange*
factor*StringToDouble(token,(char **) NULL);
@@ -2651,7 +2651,7 @@
}
if (LocaleCompare("stroke-width",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->stroke_width=StringToDouble(token,
(char **) NULL);
break;
@@ -2672,7 +2672,7 @@
ssize_t
align;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
align=ParseCommandOption(MagickAlignOptions,MagickFalse,token);
if (align == -1)
status=MagickFalse;
@@ -2685,7 +2685,7 @@
ssize_t
align;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
align=ParseCommandOption(MagickAlignOptions,MagickFalse,token);
if (align == -1)
status=MagickFalse;
@@ -2695,25 +2695,25 @@
}
if (LocaleCompare("text-antialias",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->text_antialias=
StringToLong(token) != 0 ? MagickTrue : MagickFalse;
break;
}
if (LocaleCompare("text-undercolor",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
(void) QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->undercolor,exception);
break;
}
if (LocaleCompare("translate",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.tx=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
affine.ty=StringToDouble(token,(char **) NULL);
break;
}
@@ -2725,22 +2725,22 @@
{
if (LocaleCompare("viewbox",keyword) == 0)
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.x=(ssize_t) ceil(StringToDouble(token,
(char **) NULL)-0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.y=(ssize_t) ceil(StringToDouble(token,
(char **) NULL)-0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.width=(size_t) floor(StringToDouble(
token,(char **) NULL)+0.5);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
graphic_context[n]->viewbox.height=(size_t) floor(StringToDouble(
token,(char **) NULL)+0.5);
break;
@@ -2805,15 +2805,15 @@
*/
if (IsPoint(q) == MagickFalse)
break;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
point.x=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
point.y=StringToDouble(token,(char **) NULL);
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token == ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
primitive_info[i].primitive=primitive_type;
primitive_info[i].point=point;
primitive_info[i].coordinates=0;
@@ -2893,7 +2893,7 @@
*s,
*t;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
length=1;
t=token;
for (s=token; *s != '\0'; s=t)
@@ -3070,7 +3070,7 @@
status=MagickFalse;
break;
}
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
method=ParseCommandOption(MagickMethodOptions,MagickFalse,token);
if (method == -1)
status=MagickFalse;
@@ -3086,7 +3086,7 @@
break;
}
if (*token != ',')
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
primitive_info[j].text=AcquireString(token);
break;
}
@@ -3097,7 +3097,7 @@
status=MagickFalse;
break;
}
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
primitive_info[j].text=AcquireString(token);
break;
}
@@ -5389,33 +5389,33 @@
*/
do
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
arc.x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
arc.y=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
angle=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
large_arc=StringToLong(token) != 0 ? MagickTrue : MagickFalse;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
sweep=StringToLong(token) != 0 ? MagickTrue : MagickFalse;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
end.x=(double) (attribute == (int) 'A' ? x : point.x+x);
end.y=(double) (attribute == (int) 'A' ? y : point.y+y);
@@ -5440,13 +5440,13 @@
points[0]=point;
for (i=1; i < 4; i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
end.x=(double) (attribute == (int) 'C' ? x : point.x+x);
end.y=(double) (attribute == (int) 'C' ? y : point.y+y);
@@ -5465,9 +5465,9 @@
{
do
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
point.x=(double) (attribute == (int) 'H' ? x: point.x+x);
TracePoint(q,point);
@@ -5480,13 +5480,13 @@
{
do
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
point.x=(double) (attribute == (int) 'L' ? x : point.x+x);
point.y=(double) (attribute == (int) 'L' ? y : point.y+y);
@@ -5507,13 +5507,13 @@
i=0;
do
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
point.x=(double) (attribute == (int) 'M' ? x : point.x+x);
point.y=(double) (attribute == (int) 'M' ? y : point.y+y);
@@ -5541,13 +5541,13 @@
points[0]=point;
for (i=1; i < 3; i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
if (*p == ',')
p++;
@@ -5576,13 +5576,13 @@
points[1].y=2.0*points[3].y-points[2].y;
for (i=2; i < 4; i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
if (*p == ',')
p++;
@@ -5616,13 +5616,13 @@
points[1].y=2.0*points[2].y-points[1].y;
for (i=2; i < 3; i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
x=StringToDouble(token,(char **) NULL);
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
end.x=(double) (attribute == (int) 'T' ? x : point.x+x);
end.y=(double) (attribute == (int) 'T' ? y : point.y+y);
@@ -5646,9 +5646,9 @@
{
do
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
y=StringToDouble(token,(char **) NULL);
point.y=(double) (attribute == (int) 'V' ? y : point.y+y);
TracePoint(q,point);
diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c
index b80882c..7e54f51 100644
--- a/MagickCore/enhance.c
+++ b/MagickCore/enhance.c
@@ -577,9 +577,9 @@
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
@@ -609,9 +609,9 @@
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
@@ -642,9 +642,9 @@
p=(const char *) content;
for (i=0; (*p != '\0') && (i < 3); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
@@ -679,7 +679,7 @@
{
content=GetXMLTreeContent(saturation);
p=(const char *) content;
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
color_correction.saturation=StringToDouble(token,(char **) NULL);
}
}
diff --git a/MagickCore/geometry.c b/MagickCore/geometry.c
index b784496..92ec19a 100644
--- a/MagickCore/geometry.c
+++ b/MagickCore/geometry.c
@@ -747,9 +747,9 @@
p=(char *) geometry;
for (i=0; (*p != '\0') && (i < 6); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
switch (i)
{
case 0:
diff --git a/MagickCore/locale.c b/MagickCore/locale.c
index 0fa3f23..4adbef4 100644
--- a/MagickCore/locale.c
+++ b/MagickCore/locale.c
@@ -1197,7 +1197,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
@@ -1208,7 +1208,7 @@
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
while (isspace((int) ((unsigned char) *q)) != 0)
q++;
}
@@ -1221,7 +1221,7 @@
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
{
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
while (isspace((int) ((unsigned char) *q)) != 0)
q++;
}
@@ -1235,10 +1235,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"locale") == 0)
{
if (LocaleCompare(locale,token) != 0)
@@ -1285,10 +1285,10 @@
while ((*token != '>') && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
}
continue;
}
@@ -1310,10 +1310,10 @@
while ((*token != '>') && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickLocaleExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"name") == 0)
{
(void) ConcatenateMagickString(tag,token,MagickLocaleExtent);
@@ -1372,7 +1372,7 @@
(void) ConcatenateMagickString(tag,"/",MagickLocaleExtent);
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
}
diff --git a/MagickCore/log.c b/MagickCore/log.c
index 820fd81..cd858e9 100644
--- a/MagickCore/log.c
+++ b/MagickCore/log.c
@@ -1452,7 +1452,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -1462,7 +1462,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -1471,7 +1471,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -1482,10 +1482,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -1542,11 +1542,11 @@
log_info=(LogInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'E':
diff --git a/MagickCore/magic.c b/MagickCore/magic.c
index 635d675..9c1a12a 100644
--- a/MagickCore/magic.c
+++ b/MagickCore/magic.c
@@ -859,7 +859,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -869,7 +869,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -878,7 +878,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -889,10 +889,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -951,11 +951,11 @@
magic_info=(MagicInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'N':
diff --git a/MagickCore/methods.h b/MagickCore/methods.h
index 8474614..5be6661 100644
--- a/MagickCore/methods.h
+++ b/MagickCore/methods.h
@@ -505,7 +505,7 @@
#define GetMagickResource PrependMagickMethod(GetMagickResource)
#define GetMagickSeekableStream PrependMagickMethod(GetMagickSeekableStream)
#define GetMagickThreadSupport PrependMagickMethod(GetMagickThreadSupport)
-#define GetMagickToken PrependMagickMethod(GetMagickToken)
+#define GetNextToken PrependMagickMethod(GetNextToken)
#define GetMagickVersion PrependMagickMethod(GetMagickVersion)
#define GetMagicList PrependMagickMethod(GetMagicList)
#define GetMagicName PrependMagickMethod(GetMagicName)
diff --git a/MagickCore/morphology.c b/MagickCore/morphology.c
index 65a2d9a..f53f00a 100644
--- a/MagickCore/morphology.c
+++ b/MagickCore/morphology.c
@@ -298,9 +298,9 @@
p++; /* ignore "'" chars for convolve filter usage - Cristy */
for (i=0; p < end; i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ 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);
@@ -320,9 +320,9 @@
kernel->negative_range = kernel->positive_range = 0.0;
for (i=0; (i < (ssize_t) (kernel->width*kernel->height)) && (p < end); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if ( LocaleCompare("nan",token) == 0
|| LocaleCompare("-",token) == 0 ) {
kernel->values[i] = nan; /* this value is not part of neighbourhood */
@@ -338,7 +338,7 @@
}
/* sanity check -- no more values in kernel definition */
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if ( *token != '\0' && *token != ';' && *token != '\'' )
return(DestroyKernelInfo(kernel));
@@ -393,7 +393,7 @@
type;
/* Parse special 'named' kernel */
- GetMagickToken(kernel_string,&p,MagickPathExtent,token);
+ GetNextToken(kernel_string,&p,MagickPathExtent,token);
type=ParseCommandOption(MagickKernelOptions,MagickFalse,token);
if ( type < 0 || type == UserDefinedKernel )
return((KernelInfo *) NULL); /* not a valid named kernel */
@@ -509,7 +509,7 @@
p=(const char *) kernel_cache;
}
kernel=NULL;
- while (GetMagickToken(p,(const char **) NULL,MagickPathExtent,token), *token != '\0')
+ while (GetNextToken(p,(const char **) NULL,MagickPathExtent,token), *token != '\0')
{
/* ignore extra or multiple ';' kernel separators */
if (*token != ';')
diff --git a/MagickCore/nt-feature.c b/MagickCore/nt-feature.c
index 81e7180..76ae272 100644
--- a/MagickCore/nt-feature.c
+++ b/MagickCore/nt-feature.c
@@ -423,7 +423,7 @@
for (q=value_name; *q != '\0'; )
{
- GetMagickToken(q,(const char **) &q,MagickPathExtent,token);
+ GetNextToken(q,(const char **) &q,MagickPathExtent,token);
if (*token == '\0')
break;
diff --git a/MagickCore/option.c b/MagickCore/option.c
index aba08a1..d48d786 100644
--- a/MagickCore/option.c
+++ b/MagickCore/option.c
@@ -2758,7 +2758,7 @@
ssize_t
channel;
- GetMagickToken(channels,(const char **) NULL,MagickPathExtent,token);
+ GetNextToken(channels,(const char **) NULL,MagickPathExtent,token);
if ((*token == ';') || (*token == '|'))
return(RedPixelChannel);
channel=ParseCommandOption(MagickPixelChannelOptions,MagickTrue,token);
diff --git a/MagickCore/policy.c b/MagickCore/policy.c
index 3df4d3d..e01f09d 100644
--- a/MagickCore/policy.c
+++ b/MagickCore/policy.c
@@ -767,7 +767,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -777,7 +777,7 @@
Docdomain element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -786,7 +786,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -797,10 +797,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -858,11 +858,11 @@
policy_info=(PolicyInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'D':
diff --git a/MagickCore/threshold.c b/MagickCore/threshold.c
index 76f9382..a6b191b 100644
--- a/MagickCore/threshold.c
+++ b/MagickCore/threshold.c
@@ -1346,9 +1346,9 @@
if ((p != (char *) NULL) && (isdigit((int) ((unsigned char) *(++p))) != 0))
for (i=0; (*p != '\0') && (i < MaxPixelChannels); i++)
{
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
if (*token == ',')
- GetMagickToken(p,&p,MagickPathExtent,token);
+ GetNextToken(p,&p,MagickPathExtent,token);
levels[i]=StringToDouble(token,(char **) NULL);
}
for (i=0; i < MaxPixelChannels; i++)
diff --git a/MagickCore/token.c b/MagickCore/token.c
index f22b22f..b2695f1 100644
--- a/MagickCore/token.c
+++ b/MagickCore/token.c
@@ -141,21 +141,21 @@
% %
% %
% %
-+ G e t M a g i c k T o k e n %
++ G e t N e x t T o k e n %
% %
% %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% GetMagickToken() gets a token from the token stream. A token is defined as
+% GetNextToken() gets a lexeme from the token stream. A token is defined as
% 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)). GetMagickToken() also recognizes these
+% parenthesis (e.g. rgb(0,0,0)). GetNextToken() also recognizes these
% separator characters: ':', '=', ',', and ';'.
%
-% The format of the GetMagickToken method is:
+% The format of the GetNextToken method is:
%
-% void GetMagickToken(const char *start,const char **end,
+% void GetNextToken(const char *start,const char **end,
% const size_t extent,char *token)
%
% A description of each parameter follows:
@@ -169,7 +169,7 @@
% o token: copy the token to this buffer.
%
*/
-MagickExport void GetMagickToken(const char *start,const char **end,
+MagickExport void GetNextToken(const char *start,const char **end,
const size_t extent,char *token)
{
double
diff --git a/MagickCore/token.h b/MagickCore/token.h
index 57cf313..71e44ba 100644
--- a/MagickCore/token.h
+++ b/MagickCore/token.h
@@ -40,7 +40,7 @@
*DestroyTokenInfo(TokenInfo *);
extern MagickExport void
- GetMagickToken(const char *,const char **,const size_t,char *);
+ GetNextToken(const char *,const char **,const size_t,char *);
#if defined(__cplusplus) || defined(c_plusplus)
}
diff --git a/MagickCore/type.c b/MagickCore/type.c
index 58c19e5..9cb210f 100644
--- a/MagickCore/type.c
+++ b/MagickCore/type.c
@@ -1112,7 +1112,7 @@
/*
Interpret XML.
*/
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token == '\0')
break;
(void) CopyMagickString(keyword,token,MagickPathExtent);
@@ -1122,7 +1122,7 @@
Doctype element.
*/
while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleNCompare(keyword,"<!--",4) == 0)
@@ -1131,7 +1131,7 @@
Comment element.
*/
while ((LocaleNCompare(q,"->",2) != 0) && (*q != '\0'))
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
continue;
}
if (LocaleCompare(keyword,"<include") == 0)
@@ -1142,10 +1142,10 @@
while (((*token != '/') && (*(token+1) != '>')) && (*q != '\0'))
{
(void) CopyMagickString(keyword,token,MagickPathExtent);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
if (LocaleCompare(keyword,"file") == 0)
{
if (depth > 200)
@@ -1207,11 +1207,11 @@
type_info=(TypeInfo *) NULL;
continue;
}
- GetMagickToken(q,(const char **) NULL,extent,token);
+ GetNextToken(q,(const char **) NULL,extent,token);
if (*token != '=')
continue;
- GetMagickToken(q,&q,extent,token);
- GetMagickToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
+ GetNextToken(q,&q,extent,token);
switch (*keyword)
{
case 'E':