]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 26 Sep 2013 12:22:34 +0000 (12:22 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 26 Sep 2013 12:22:34 +0000 (12:22 +0000)
coders/url.c

index 8873b5cb5a1e881add4e445418197d92cf31b833..8372dfdac4e58f963e25965e88ef2dd6a77f155e 100644 (file)
@@ -70,9 +70,9 @@
 #  include <libxml/nanoftp.h>
 #  include <libxml/nanohttp.h>
 #endif
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \\r
-    !(defined(__MINGW32__) || defined(__MINGW64__))\r
-#  include <urlmon.h>\r
+#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
+    !(defined(__MINGW32__) || defined(__MINGW64__))
+#  include <urlmon.h>
 #endif
 
 /*
@@ -173,17 +173,17 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (void) CopyMagickString(read_info->filename,image_info->filename+2,
         MaxTextExtent);
     }
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \\r
-    !(defined(__MINGW32__) || defined(__MINGW64__))\r
-  (void) fclose(file);\r
-  if (URLDownloadToFile(NULL,filename,read_info->filename,NULL,NULL) != S_OK)\r
-    {\r
-      ThrowFileException(exception,FileOpenError,"UnableToOpenFile",\r
-        filename);\r
-      (void) RelinquishUniqueFileResource(read_info->filename);\r
-      read_info=DestroyImageInfo(read_info);\r
-      return((Image *) NULL);\r
-    }\r
+#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
+    !(defined(__MINGW32__) || defined(__MINGW64__))
+  (void) fclose(file);
+  if (URLDownloadToFile(NULL,filename,read_info->filename,NULL,NULL) != S_OK)
+    {
+      ThrowFileException(exception,FileOpenError,"UnableToOpenFile",
+        filename);
+      (void) RelinquishUniqueFileResource(read_info->filename);
+      read_info=DestroyImageInfo(read_info);
+      return((Image *) NULL);
+    }
 #else
 #if defined(MAGICKCORE_XML_DELEGATE) && defined(LIBXML_FTP_ENABLED)
   if (LocaleCompare(read_info->magick,"ftp") == 0)
@@ -295,8 +295,8 @@ ModuleExport size_t RegisterURLImage(void)
     *entry;
 
   entry=SetMagickInfo("HTTP");
-#if (defined(MAGICKCORE_WINDOWS_SUPPORT) && \\r
-    !(defined(__MINGW32__) || defined(__MINGW64__))) || \\r
+#if (defined(MAGICKCORE_WINDOWS_SUPPORT) && \
+    !(defined(__MINGW32__) || defined(__MINGW64__))) || \
     (defined(MAGICKCORE_XML_DELEGATE) && defined(LIBXML_HTTP_ENABLED))
   entry->decoder=(DecodeImageHandler *) ReadURLImage;
 #endif
@@ -304,18 +304,18 @@ ModuleExport size_t RegisterURLImage(void)
   entry->module=ConstantString("URL");
   entry->stealth=MagickTrue;
   (void) RegisterMagickInfo(entry);
-  entry=SetMagickInfo("HTTPS");\r
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \\r
-    !(defined(__MINGW32__) || defined(__MINGW64__))\r
-  entry->decoder=(DecodeImageHandler *) ReadURLImage;\r
-#endif\r
-  entry->description=ConstantString("Uniform Resource Locator (https://)");\r
-  entry->module=ConstantString("URL");\r
-  entry->stealth=MagickTrue;\r
+  entry=SetMagickInfo("HTTPS");
+#if defined(MAGICKCORE_WINDOWS_SUPPORT) && \
+    !(defined(__MINGW32__) || defined(__MINGW64__))
+  entry->decoder=(DecodeImageHandler *) ReadURLImage;
+#endif
+  entry->description=ConstantString("Uniform Resource Locator (https://)");
+  entry->module=ConstantString("URL");
+  entry->stealth=MagickTrue;
   (void) RegisterMagickInfo(entry);
   entry=SetMagickInfo("FTP");
-#if (defined(MAGICKCORE_WINDOWS_SUPPORT) && \\r
-    !(defined(__MINGW32__) || defined(__MINGW64__))) || \\r
+#if (defined(MAGICKCORE_WINDOWS_SUPPORT) && \
+    !(defined(__MINGW32__) || defined(__MINGW64__))) || \
     (defined(MAGICKCORE_XML_DELEGATE) && defined(LIBXML_FTP_ENABLED))
   entry->decoder=(DecodeImageHandler *) ReadURLImage;
 #endif