]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 5 Oct 2014 19:18:23 +0000 (19:18 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 5 Oct 2014 19:18:23 +0000 (19:18 +0000)
MagickCore/magick-baseconfig.h
MagickCore/version.h
PerlMagick/Makefile.PL
PerlMagick/check.sh
coders/pdf.c
coders/ps.c

index bbde8db3625f59d76f5b4e4582c5e8a32a7f44cf..f73bde06a51d5263895868252312b33a482c8f80 100644 (file)
 /* #undef HAVE__ALIGNED_MALLOC */
 
 /* Define to 1 if the system has the type `_Bool'. */
-#ifndef MAGICKCORE_HAVE__BOOL
-#define MAGICKCORE_HAVE__BOOL 1
-#endif
+/* #undef HAVE__BOOL */
 
 /* Define to 1 if you have the `_exit' function. */
 #ifndef MAGICKCORE_HAVE__EXIT
index 81b30f81f9f97f1885bbd0fa75e7c1ce8544cd3e..dfb4f3a1e86adcd6da8d9801c6dcc450403b92e7 100644 (file)
@@ -48,7 +48,7 @@ extern "C" {
 #define MagickppLibAddendum  "-0"
 #define MagickppLibInterface  1
 #define MagickppLibMinInterface  1
-#define MagickReleaseDate  "2014-10-04"
+#define MagickReleaseDate  "2014-10-05"
 #define MagickChangeDate   "20120427"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
 #define MagickFeatures "DPC HDRI OpenMP"
index 3b25a53a2148b1854f80cd234c4d01bdff671bd6..2b947191d06aff01b0a249654676350f2b533a7d 100644 (file)
@@ -206,7 +206,7 @@ WriteMakefile
    'INC'       => $INC_magick,
 
    # C compiler
-   #'CC' => 'gcc -std=gnu99 -std=gnu99',
+   #'CC' => 'g++',
 
    # C pre-processor flags (e.g. -I & -D options)
    # 'CPPFLAGS' => "$Config{'cppflags'} -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2",
@@ -215,7 +215,7 @@ WriteMakefile
    'CCFLAGS' => $CCFLAGS_magick,
 
    # Linker
-   #'LD' => $Config{'ld'} == $Config{'cc'} ? 'gcc -std=gnu99 -std=gnu99' : $Config{'ld'},
+   #'LD' => $Config{'ld'} == $Config{'cc'} ? 'g++' : $Config{'ld'},
 
    # Linker flags for building an executable
    'LDFLAGS' =>  $LDFLAGS_magick,
index 4edd1f6137b67db499160c410e6f1a046334c466..5a4b3fc78b6696f0b20c7b58fd7430d968761bce 100755 (executable)
@@ -42,10 +42,10 @@ fi
 
 if test -x PerlMagick -a -f Makefile.aperl ; then
   # Static build test incantation
-  ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+  ${MAKE} -f Makefile.aperl CC='g++' TEST_VERBOSE=1 test
 elif test -f Makefile -a -f Magick.o; then
   # Shared build test incantation
-  ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+  ${MAKE} CC='g++' TEST_VERBOSE=1 test
 else
   echo 'PerlMagick has not been built!'
   exit 1
index f3a7a7c0fc9f0bd07a36711312cd12d522b00b8c..3be02dd40e5cacd925c7226ad44197b39d8317b4 100644 (file)
@@ -126,27 +126,28 @@ static MagickBooleanType
 %
 */
 #if defined(MAGICKCORE_GS_DELEGATE) || defined(MAGICKCORE_WINDOWS_SUPPORT)
-static int MagickDLLCall PDFDelegateMessage(void *handle,const char *msg,
-  int len)
+static int MagickDLLCall PDFDelegateMessage(void *handle,const char *message,
+  int length)
 {
   char
     **messages;
 
-  size_t offset;
+  ssize_t
+    offset;
 
   offset=0;
-  messages=(char **)handle;
+  messages=(char **) handle;
   if (*messages == (char *) NULL)
-    *messages=(char *) AcquireQuantumMemory(len+1,sizeof(char *));
+    *messages=(char *) AcquireQuantumMemory(length+1,sizeof(char *));
   else
     {
       offset=strlen(*messages);
-      *messages=(char *) ResizeQuantumMemory(*messages,offset+len+1,
+      *messages=(char *) ResizeQuantumMemory(*messages,offset+length+1,
         sizeof(char *));
     }
-  (void) memcpy(*messages+offset,msg,len);
-  (*messages)[offset+len] ='\0';
-  return(len);
+  (void) memcpy(*messages+offset,message,length);
+  (*messages)[length+offset] ='\0';
+  return(length);
 }
 #endif
 
@@ -157,10 +158,10 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     status;
 
 #if defined(MAGICKCORE_GS_DELEGATE) || defined(MAGICKCORE_WINDOWS_SUPPORT)
-#define SetArgsStart \
+#define SetArgsStart(command,args_start) \
   if (args_start == (const char *) NULL) \
     { \
-      if (command[0] != '"') \
+      if (*command != '"') \
         args_start=strchr(command,' '); \
       else \
         { \
@@ -170,24 +171,24 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
         } \
     }
 
-#define ExecuteGhostscriptCommand \
-  { \
-    status=SystemCommand(MagickFalse,verbose,command,exception); \
-    if (status == 0) \
-      return(MagickTrue); \
-    if (status < 0) \
-      return(MagickFalse); \
-    (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, \
-      "FailedToExecuteCommand","`%s' (%d)",command,status); \
+#define ExecuteGhostscriptCommand(command,status) \
+{ \
+  status=SystemCommand(MagickFalse,verbose,command,exception); \
+  if (status == 0) \
+    return(MagickTrue); \
+  if (status < 0) \
     return(MagickFalse); \
-  }
+  (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, \
+    "FailedToExecuteCommand","`%s' (%d)",command,status); \
+  return(MagickFalse); \
+}
 
   char
     **argv,
     *errors;
 
   const char
-    *args_start=NULL;
+    *args_start = (const char *) NULL;
 
   const GhostInfo
     *ghost_info;
@@ -224,17 +225,17 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
     gsapi_set_stdio;
 #endif
   if (ghost_info == (GhostInfo *) NULL)
-   ExecuteGhostscriptCommand
+   ExecuteGhostscriptCommand(command,status);
   if (verbose != MagickFalse)
     {
       (void) fputs("[ghostscript library]",stdout);
-      SetArgsStart
+      SetArgsStart(command,args_start);
       (void) fputs(args_start,stdout);
     }
   errors=(char *) NULL;
   status=(ghost_info->new_instance)(&interpreter,(void *) &errors);
   if (status < 0)
-    ExecuteGhostscriptCommand
+    ExecuteGhostscriptCommand(command,status);
   code=0;
   argv=StringToArgv(command,&argc);
   if (argv == (char **) NULL)
@@ -252,7 +253,7 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose,
   argv=(char **) RelinquishMagickMemory(argv);
   if ((status != 0) && (status != -101))
     {
-      SetArgsStart
+      SetArgsStart(command,args_start);
       (void) ThrowMagickException(exception,GetMagickModule(),DelegateError,
         "PDFDelegateFailed","`[ghostscript library]%s': %s",args_start,
         errors);
index ac43126ad7aa1fcc153ab1ce5df5681983ed2a1e..cac2868b23d0ec0a43d3a9212588a393b11f87ad 100644 (file)
@@ -116,26 +116,27 @@ static MagickBooleanType
 */
 #if defined(MAGICKCORE_GS_DELEGATE) || defined(MAGICKCORE_WINDOWS_SUPPORT)
 static int MagickDLLCall PostscriptDelegateMessage(void *handle,
-  const char *msg,int len)
+  const char *message,int length)
 {
   char
     **messages;
 
-  size_t offset;
+  ssize_t
+    offset;
 
   offset=0;
-  messages=(char **)handle;
+  messages=(char **) handle;
   if (*messages == (char *) NULL)
-    *messages=(char *) AcquireQuantumMemory(len+1,sizeof(char *));
+    *messages=(char *) AcquireQuantumMemory(length+1,sizeof(char *));
   else
     {
       offset=strlen(*messages);
-      *messages=(char *) ResizeQuantumMemory(*messages,offset+len+1,
+      *messages=(char *) ResizeQuantumMemory(*messages,offset+length+1,
         sizeof(char *));
     }
-  (void) memcpy(*messages+offset,msg,len);
-  (*messages)[offset+len] ='\0';
-  return(len);
+  (void) memcpy(*messages+offset,message,length);
+  (*messages)[length+offset] ='\0';
+  return(length);
 }
 #endif
 
@@ -146,10 +147,10 @@ static MagickBooleanType InvokePostscriptDelegate(
     status;
 
 #if defined(MAGICKCORE_GS_DELEGATE) || defined(MAGICKCORE_WINDOWS_SUPPORT)
-#define SetArgsStart \
+#define SetArgsStart(command,args_start) \
   if (args_start == (const char *) NULL) \
     { \
-      if (command[0] != '"') \
+      if (*command != '"') \
         args_start=strchr(command,' '); \
       else \
         { \
@@ -159,24 +160,24 @@ static MagickBooleanType InvokePostscriptDelegate(
         } \
     }
 
-#define ExecuteGhostscriptCommand \
-  { \
-    status=SystemCommand(MagickFalse,verbose,command,exception); \
-    if (status == 0) \
-      return(MagickTrue); \
-    if (status < 0) \
-      return(MagickFalse); \
-    (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, \
-      "FailedToExecuteCommand","`%s' (%d)",command,status); \
+#define ExecuteGhostscriptCommand(command,status) \
+{ \
+  status=SystemCommand(MagickFalse,verbose,command,exception); \
+  if (status == 0) \
+    return(MagickTrue); \
+  if (status < 0) \
     return(MagickFalse); \
-  }
+  (void) ThrowMagickException(exception,GetMagickModule(),DelegateError, \
+    "FailedToExecuteCommand","`%s' (%d)",command,status); \
+  return(MagickFalse); \
+}
 
   char
     **argv,
     *errors;
 
   const char
-    *args_start=NULL;
+    *args_start = (const char *) NULL;
 
   const GhostInfo
     *ghost_info;
@@ -213,17 +214,17 @@ static MagickBooleanType InvokePostscriptDelegate(
     gsapi_set_stdio;
 #endif
   if (ghost_info == (GhostInfo *) NULL)
-    ExecuteGhostscriptCommand
+    ExecuteGhostscriptCommand(command,status);
   if (verbose != MagickFalse)
     {
       (void) fputs("[ghostscript library]",stdout);
-      SetArgsStart
+      SetArgsStart(command,args_start);
       (void) fputs(args_start,stdout);
     }
   errors=(char *) NULL;
   status=(ghost_info->new_instance)(&interpreter,(void *) &errors);
   if (status < 0)
-    ExecuteGhostscriptCommand
+    ExecuteGhostscriptCommand(command,status);
   code=0;
   argv=StringToArgv(command,&argc);
   if (argv == (char **) NULL)
@@ -241,7 +242,7 @@ static MagickBooleanType InvokePostscriptDelegate(
   argv=(char **) RelinquishMagickMemory(argv);
   if ((status != 0) && (status != -101))
     {
-      SetArgsStart
+      SetArgsStart(command,args_start);
       (void) ThrowMagickException(exception,GetMagickModule(),DelegateError,
         "PostscriptDelegateFailed","`[ghostscript library]%s': %s",args_start,
         errors);