]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 18 Oct 2014 13:22:50 +0000 (13:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 18 Oct 2014 13:22:50 +0000 (13:22 +0000)
coders/pdf.c
coders/ps.c

index 110c1911e6befb47212edf2472d13438076a388b..660b4e2c5096a2a8cbf6503bcd5015060822aa09 100644 (file)
@@ -152,7 +152,7 @@ static int MagickDLLCall PDFDelegateMessage(void *handle,const char *message,
 #endif
 
 static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
-  const char *command,char *output,ExceptionInfo *exception)
+  const char *command,char *message,ExceptionInfo *exception)
 {
   int
     status;
@@ -173,7 +173,7 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
 
 #define ExecuteGhostscriptCommand(command,status) \
 { \
-  status=ExternalDelegateCommand(MagickFalse,verbose,command,output, \
+  status=ExternalDelegateCommand(MagickFalse,verbose,command,message, \
     exception); \
   if (status == 0) \
     return(MagickTrue); \
@@ -256,7 +256,7 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     {
       SetArgsStart(command,args_start);
       if (status == -101) /* quit */
-        (void) FormatLocaleString(output,MaxTextExtent,
+        (void) FormatLocaleString(message,MaxTextExtent,
           "[ghostscript library]%s: %s",args_start,errors);
       else
         {
@@ -274,7 +274,7 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     errors=DestroyString(errors);
   return(MagickTrue);
 #else
-  status=ExternalDelegateCommand(MagickFalse,verbose,command,output,exception);
+  status=ExternalDelegateCommand(MagickFalse,verbose,command,message,exception);
   return(status == 0 ? MagickTrue : MagickFalse);
 #endif
 }
@@ -376,8 +376,8 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
     filename[MaxTextExtent],
     geometry[MaxTextExtent],
     input_filename[MaxTextExtent],
+    message[MaxTextExtent],
     options[MaxTextExtent],
-    output[MaxTextExtent],
     postscript_filename[MaxTextExtent];
 
   const char
@@ -736,8 +736,8 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
     read_info->antialias != MagickFalse ? 4 : 1,
     read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
     postscript_filename,input_filename);
-  *output='\0';
-  status=InvokePDFDelegate(read_info->verbose,command,output,exception);
+  *message='\0';
+  status=InvokePDFDelegate(read_info->verbose,command,message,exception);
   (void) RelinquishUniqueFileResource(postscript_filename);
   (void) RelinquishUniqueFileResource(input_filename);
   pdf_image=(Image *) NULL;
@@ -768,9 +768,9 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
   read_info=DestroyImageInfo(read_info);
   if (pdf_image == (Image *) NULL)
     {
-      if (*output != '\0')
-        (void) ThrowMagickException(exception,GetMagickModule(),
-          DelegateError,"PDFDelegateFailed","`%s'",output);
+      if (*message != '\0')
+        (void) ThrowMagickException(exception,GetMagickModule(),DelegateError,
+          "PDFDelegateFailed","`%s'",message);
       image=DestroyImage(image);
       return((Image *) NULL);
     }
index b3df8c5c97e8772525fce101e6c9ab63ae8fb58b..4e658b3c5b08da9bb642b2fd1e0adf615ac24889 100644 (file)
@@ -141,7 +141,7 @@ static int MagickDLLCall PostscriptDelegateMessage(void *handle,
 #endif
 
 static MagickBooleanType InvokePostscriptDelegate(
-  const MagickBooleanType verbose,const char *command,char *output,
+  const MagickBooleanType verbose,const char *command,char *message,
   ExceptionInfo *exception)
 {
   int
@@ -163,7 +163,7 @@ static MagickBooleanType InvokePostscriptDelegate(
 
 #define ExecuteGhostscriptCommand(command,status) \
 { \
-  status=ExternalDelegateCommand(MagickFalse,verbose,command,output, \
+  status=ExternalDelegateCommand(MagickFalse,verbose,command,message, \
     exception); \
   if (status == 0) \
     return(MagickTrue); \
@@ -246,7 +246,7 @@ static MagickBooleanType InvokePostscriptDelegate(
     {
       SetArgsStart(command,args_start);
       if (status == -101) /* quit */
-        (void) FormatLocaleString(output,MaxTextExtent,
+        (void) FormatLocaleString(message,MaxTextExtent,
           "[ghostscript library]%s: %s",args_start,errors);
       else
         {
@@ -264,7 +264,7 @@ static MagickBooleanType InvokePostscriptDelegate(
     errors=DestroyString(errors);
   return(MagickTrue);
 #else
-  status=ExternalDelegateCommand(MagickFalse,verbose,command,output,exception);
+  status=ExternalDelegateCommand(MagickFalse,verbose,command,message,exception);
   return(status == 0 ? MagickTrue : MagickFalse);
 #endif
 }
@@ -409,8 +409,8 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
     filename[MaxTextExtent],
     geometry[MaxTextExtent],
     input_filename[MaxTextExtent],
+    message[MaxTextExtent],
     options[MaxTextExtent],
-    output[MaxTextExtent],
     postscript_filename[MaxTextExtent];
 
   const char
@@ -858,15 +858,15 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
     read_info->antialias != MagickFalse ? 4 : 1,
     read_info->antialias != MagickFalse ? 4 : 1,density,options,filename,
     postscript_filename,input_filename);
-  *output='\0';
-  status=InvokePostscriptDelegate(read_info->verbose,command,output,exception);
+  *message='\0';
+  status=InvokePostscriptDelegate(read_info->verbose,command,message,exception);
   (void) InterpretImageFilename(image_info,image,filename,1,
     read_info->filename,exception);
   if ((status == MagickFalse) ||
       (IsPostscriptRendered(read_info->filename) == MagickFalse))
     {
       (void) ConcatenateMagickString(command," -c showpage",MaxTextExtent);
-      status=InvokePostscriptDelegate(read_info->verbose,command,output,
+      status=InvokePostscriptDelegate(read_info->verbose,command,message,
         exception);
     }
   (void) RelinquishUniqueFileResource(postscript_filename);
@@ -900,9 +900,9 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
   read_info=DestroyImageInfo(read_info);
   if (postscript_image == (Image *) NULL)
     {
-      if (*output != '\0')
+      if (*message != '\0')
         (void) ThrowMagickException(exception,GetMagickModule(),
-          DelegateError,"PostscriptDelegateFailed","`%s'",output);
+          DelegateError,"PostscriptDelegateFailed","`%s'",message);
       image=DestroyImageList(image);
       return((Image *) NULL);
     }