[babl/unitybuild: 3/7] rename macros



commit d50e29e18deb35da72296027c310f9b686830601
Author: Félix Piédallu <felix piedallu me>
Date:   Tue Feb 27 15:18:05 2018 +0100

    rename macros

 babl/babl-model.c |    4 ++--
 babl/babl-type.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/babl/babl-model.c b/babl/babl-model.c
index f8a37e0..7c1ca16 100644
--- a/babl/babl-model.c
+++ b/babl/babl-model.c
@@ -229,7 +229,7 @@ babl_model_new (void *first_argument,
 }
 
 
-#define TOLERANCE      0.001
+#define TOLERANCE_MODEL      0.001
 
 static const Babl *reference_format (void)
 {
@@ -326,7 +326,7 @@ babl_model_is_symmetric (const Babl *cbabl)
       {
         int j;
         for (j = 0; j < 4; j++)
-          if (fabs (clipped[i *4 + j] - transformed[i * 4 + j]) > TOLERANCE)
+          if (fabs (clipped[i *4 + j] - transformed[i * 4 + j]) > TOLERANCE_MODEL)
             {
               if (!log)
                 log = 1;
diff --git a/babl/babl-type.c b/babl/babl-type.c
index 4f9303e..91d9510 100644
--- a/babl/babl-type.c
+++ b/babl/babl-type.c
@@ -159,7 +159,7 @@ babl_type_new (void *first_arg,
 }
 
 
-#define TOLERANCE    0.000000001
+#define TOLERANCE_TYPE    0.000000001
 
 static const Babl *double_vector_format (void)
 {
@@ -217,7 +217,7 @@ babl_type_is_symmetric (const Babl *babl)
     int i;
     for (i = 0; i < samples; i++)
       {
-        if (fabs (clipped[i] - transformed[i]) > TOLERANCE)
+        if (fabs (clipped[i] - transformed[i]) > TOLERANCE_TYPE)
           {
             if (cnt++ < 4)
               babl_log ("%s:  %f %f %f)",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]