]> granicus.if.org Git - imagemagick/commitdiff
Removed MagickMax/MagickMin inline methods.
authordirk <dirk@git.imagemagick.org>
Thu, 15 Jan 2015 21:02:57 +0000 (21:02 +0000)
committerdirk <dirk@git.imagemagick.org>
Thu, 15 Jan 2015 21:02:57 +0000 (21:02 +0000)
MagickCore/delegate.c
MagickCore/distribute-cache.c
MagickCore/geometry.c
MagickCore/locale.c
MagickCore/matrix.c
MagickCore/random.c
MagickCore/resource.c
MagickCore/string.c
MagickCore/type.c
MagickCore/utility.c
MagickCore/xml-tree.c

index b7cda50c43c3c04ccf4827d3d1330bae3207f811..10faf75bfccc2efcc69492bb287b6b517a464936 100644 (file)
@@ -56,6 +56,7 @@
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
 #include "MagickCore/hashmap.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/list.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/nt-base-private.h"
@@ -1007,13 +1008,6 @@ static MagickBooleanType IsDelegateCacheInstantiated(ExceptionInfo *exception)
 %
 */
 
-static inline size_t MagickMin(const size_t x,const size_t y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 static MagickBooleanType CopyDelegateFile(const char *source,
   const char *destination)
 {
index ae3af5cb4cb57e36c6bd0b722dc6251625975e02..850b3854d02ebee8bc6c9a9b4851684a3f19ca3c 100644 (file)
@@ -60,6 +60,7 @@
 #include "MagickCore/exception-private.h"
 #include "MagickCore/geometry.h"
 #include "MagickCore/image.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/list.h"
 #include "MagickCore/locale_.h"
 #include "MagickCore/memory_.h"
 %
 */
 
-static inline MagickSizeType MagickMin(const MagickSizeType x,
-  const MagickSizeType y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 static inline MagickOffsetType dpc_read(int file,const MagickSizeType length,
   unsigned char *restrict message)
 {
index 717fdd78be2d9eb7ca0e24fc03dc695478c5fa4a..493998d35d2a9b826c87924ff6ee01d93e5a6a4d 100644 (file)
@@ -45,6 +45,7 @@
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
 #include "MagickCore/geometry.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/string_.h"
 #include "MagickCore/string-private.h"
@@ -1238,14 +1239,6 @@ MagickExport MagickStatusType ParseGravityGeometry(const Image *image,
 %
 */
 
-static inline size_t MagickMax(const size_t x,
-  const size_t y)
-{
-  if (x > y)
-    return(x);
-  return(y);
-}
-
 MagickExport MagickStatusType ParseMetaGeometry(const char *geometry,ssize_t *x,
   ssize_t *y,size_t *width,size_t *height)
 {
index b35857b5410b1a6fb00e689f4570321839fd82cf..48bcdfb2b59b125aa7c201c16bd99f22f522caa7 100644 (file)
@@ -46,6 +46,7 @@
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
 #include "MagickCore/hashmap.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/locale_.h"
 #include "MagickCore/locale-private.h"
 #include "MagickCore/log.h"
@@ -1150,13 +1151,6 @@ static void LocaleFatalErrorHandler(
   exit(1);
 }
 
-static inline size_t MagickMin(const size_t x,const size_t y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 static MagickBooleanType LoadLocaleCache(SplayTreeInfo *locale_cache,
   const char *xml,const char *filename,const char *locale,const size_t depth,
   ExceptionInfo *exception)
index 7d1a2a7a5f7033e038a25328554dd5a0e230b972..cc65ee8cb07130c018af2d3c7ac02d068b69b8d3 100644 (file)
@@ -45,6 +45,7 @@
 #include "MagickCore/cache.h"
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/matrix.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/pixel-accessor.h"
@@ -120,14 +121,6 @@ struct _MatrixInfo
 %
 */
 
-static inline MagickSizeType MagickMin(const MagickSizeType x,
-  const MagickSizeType y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 #if defined(SIGBUS)
 static void MatrixSignalHandler(int status)
 {
index 932c3dddd3a2217d39dadc69532fb2d547294813..9f7223fff290d9e2f2383008f72f302445dd954d 100644 (file)
@@ -50,6 +50,7 @@
 #include "MagickCore/studio.h"
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/semaphore.h"
 #include "MagickCore/random_.h"
@@ -159,13 +160,6 @@ static StringInfo
 %
 */
 
-static inline size_t MagickMin(const size_t x,const size_t y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickExport RandomInfo *AcquireRandomInfo(void)
 {
   const StringInfo
index 287c0f696e1972d3d1eb4a2c9124edc1710f107e..6eb25a53ef91c98e6fde66aa287f1a442e75a0bf 100644 (file)
@@ -47,6 +47,7 @@
 #include "MagickCore/hashmap.h"
 #include "MagickCore/log.h"
 #include "MagickCore/image.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/nt-base-private.h"
 #include "MagickCore/option.h"
@@ -1003,13 +1004,6 @@ MagickExport MagickBooleanType RelinquishUniqueFileResource(const char *path)
 %
 */
 
-static inline size_t MagickMax(const size_t x,const size_t y)
-{
-  if (x > y)
-    return(x);
-  return(y);
-}
-
 static inline MagickSizeType StringToSizeType(const char *string,
   const double interval)
 {
@@ -1208,14 +1202,6 @@ MagickPrivate void ResourceComponentTerminus(void)
 %
 */
 
-static inline MagickSizeType MagickMin(const MagickSizeType x,
-  const MagickSizeType y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickExport MagickBooleanType SetMagickResourceLimit(const ResourceType type,
   const MagickSizeType limit)
 {
index 7aff064b3ed8afd8ab1b6c8dfce502ef9b047b8a..a84b56e8068d9958410a46f3af3f8bd9bf3e0149 100644 (file)
@@ -44,6 +44,7 @@
 #include "MagickCore/blob-private.h"
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/list.h"
 #include "MagickCore/locale_.h"
 #include "MagickCore/log.h"
@@ -356,13 +357,6 @@ MagickExport StringInfo *CloneStringInfo(const StringInfo *string_info)
 %
 */
 
-static inline size_t MagickMin(const size_t x,const size_t y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickExport int CompareStringInfo(const StringInfo *target,
   const StringInfo *source)
 {
index 0ada06906fc352792f329d71003ca3f3c93ad284..c89e0c419d943e3d70bf092e23d30941a860aa9d 100644 (file)
@@ -47,6 +47,7 @@
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
 #include "MagickCore/hashmap.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/log.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/nt-feature.h"
@@ -331,20 +332,6 @@ MagickExport const TypeInfo *GetTypeInfo(const char *name,
 %
 */
 
-static inline size_t MagickMax(const size_t x,const size_t y)
-{
-  if (x > y)
-    return(x);
-  return(y);
-}
-
-static inline size_t MagickMin(const size_t x,const size_t y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickExport const TypeInfo *GetTypeInfoByFamily(const char *family,
   const StyleType style,const StretchType stretch,const size_t weight,
   ExceptionInfo *exception)
index b1d8ad3532f3b6278edf2eb29b4e4c1902777eab..841b423e6ca373477dc6c1c32752ce04735d6bc1 100644 (file)
@@ -46,6 +46,7 @@
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
 #include "MagickCore/geometry.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/list.h"
 #include "MagickCore/log.h"
 #include "MagickCore/magick-private.h"
@@ -149,14 +150,6 @@ MagickExport MagickBooleanType AcquireUniqueFilename(char *path)
 %
 */
 
-static inline MagickSizeType MagickMin(const MagickSizeType x,
-  const MagickSizeType y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickExport MagickBooleanType AcquireUniqueSymbolicLink(const char *source,
   char *destination)
 {
index e9890193424747335b4bf2ea4ffc6534852fe5aa..067f881c91e0ec37d363be99db23299044daff12 100644 (file)
@@ -52,6 +52,7 @@
 #include "MagickCore/blob-private.h"
 #include "MagickCore/exception.h"
 #include "MagickCore/exception-private.h"
+#include "MagickCore/image-private.h"
 #include "MagickCore/log.h"
 #include "MagickCore/memory_.h"
 #include "MagickCore/semaphore.h"
@@ -595,14 +596,6 @@ MagickExport XMLTreeInfo *DestroyXMLTree(XMLTreeInfo *xml_info)
 %
 */
 
-static inline MagickSizeType MagickMin(const MagickSizeType x,
-  const MagickSizeType y)
-{
-  if (x < y)
-    return(x);
-  return(y);
-}
-
 MagickPrivate char *FileToXML(const char *filename,const size_t extent)
 {
   char