From 8bedb4edca01599dfd0612cb0daa35b09c67d736 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 25 Mar 2016 19:54:25 -0400 Subject: [PATCH] Change GetTokenLexeme() to GetNextToken() --- ImageMagick-7.0.0-0/enhance.c | 14 +- MagickCore/channel.c | 20 +-- MagickCore/coder.c | 16 +- MagickCore/color.c | 16 +- MagickCore/configure.c | 16 +- MagickCore/delegate.c | 16 +- MagickCore/draw.c | 312 +++++++++++++++++----------------- MagickCore/enhance.c | 14 +- MagickCore/geometry.c | 4 +- MagickCore/locale.c | 20 +-- MagickCore/log.c | 16 +- MagickCore/magic.c | 16 +- MagickCore/methods.h | 2 +- MagickCore/morphology.c | 14 +- MagickCore/nt-feature.c | 2 +- MagickCore/option.c | 2 +- MagickCore/policy.c | 16 +- MagickCore/threshold.c | 4 +- MagickCore/token.c | 12 +- MagickCore/token.h | 2 +- MagickCore/type.c | 16 +- MagickWand/convert.c | 2 +- MagickWand/drawing-wand.c | 12 +- MagickWand/mogrify.c | 56 +++--- MagickWand/operation.c | 30 ++-- coders/svg.c | 258 ++++++++++++++-------------- 26 files changed, 454 insertions(+), 454 deletions(-) diff --git a/ImageMagick-7.0.0-0/enhance.c b/ImageMagick-7.0.0-0/enhance.c index 26a253e174..b59f717142 100644 --- a/ImageMagick-7.0.0-0/enhance.c +++ b/ImageMagick-7.0.0-0/enhance.c @@ -577,9 +577,9 @@ MagickExport MagickBooleanType ColorDecisionListImage(Image *image, 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 @@ MagickExport MagickBooleanType ColorDecisionListImage(Image *image, 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 @@ MagickExport MagickBooleanType ColorDecisionListImage(Image *image, 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 @@ MagickExport MagickBooleanType ColorDecisionListImage(Image *image, { 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/channel.c b/MagickCore/channel.c index e7db65a84c..1c64db9b3f 100644 --- a/MagickCore/channel.c +++ b/MagickCore/channel.c @@ -243,7 +243,7 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, 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 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, { case ',': { - GetMagickToken(p,&p,MagickPathExtent,token); + GetNextToken(p,&p,MagickPathExtent,token); break; } case '|': @@ -266,7 +266,7 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, 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 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, } 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 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, } 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 @@ MagickExport Image *ChannelFxImage(const Image *image,const char *expression, 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 e04c5c6ecc..ccfbf48d43 100644 --- a/MagickCore/coder.c +++ b/MagickCore/coder.c @@ -838,7 +838,7 @@ static MagickBooleanType LoadCoderCache(SplayTreeInfo *coder_cache, /* 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 @@ static MagickBooleanType LoadCoderCache(SplayTreeInfo *coder_cache, Doctype element. */ while ((LocaleNCompare(q,"]>",2) != 0) && (*q != '\0')) - GetMagickToken(q,&q,extent,token); + GetNextToken(q,&q,extent,token); continue; } if (LocaleNCompare(keyword,"