billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=76687b2ea29963315444b8042da8a90028f2e5fa

commit 76687b2ea29963315444b8042da8a90028f2e5fa
Author: Boris Faure <bill...@gmail.com>
Date:   Sun Nov 15 13:42:25 2020 +0100

    tytest: those functions must return Eina_Bool
---
 src/bin/tytest.h        |  4 ++--
 src/bin/tytest_common.c | 16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/bin/tytest.h b/src/bin/tytest.h
index a60e961..d2f6d7c 100644
--- a/src/bin/tytest.h
+++ b/src/bin/tytest.h
@@ -17,13 +17,13 @@ Evas_Textgrid_Cell *
 tytest_textgrid_cellrow_get(Evas_Object *obj, int y);
 
 #define edje_object_color_class_get  tytest_edje_object_color_class_get
-int
+Eina_Bool
 tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char 
*key,
                         int *r, int *g, int *b, int *a,
                         int *r1 EINA_UNUSED, int *g1 EINA_UNUSED, int *b1 
EINA_UNUSED, int *a1 EINA_UNUSED,
                         int *r2 EINA_UNUSED, int *g2 EINA_UNUSED, int *b2 
EINA_UNUSED, int *a2 EINA_UNUSED);
 #define edje_object_color_class_set  tytest_edje_object_color_class_set
-int
+Eina_Bool
 tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char 
*key,
                                  int r, int g, int b, int a,
                                  int r1 EINA_UNUSED, int g1 EINA_UNUSED, int 
b1 EINA_UNUSED, int a1 EINA_UNUSED,
diff --git a/src/bin/tytest_common.c b/src/bin/tytest_common.c
index f210414..d64d357 100644
--- a/src/bin/tytest_common.c
+++ b/src/bin/tytest_common.c
@@ -276,7 +276,7 @@ termio_set_cursor_shape(Evas_Object *obj EINA_UNUSED,
 }
 
 
-int
+Eina_Bool
 tytest_edje_object_color_class_get(Evas_Object *termio EINA_UNUSED, const char 
*key,
                         int *r, int *g, int *b, int *a,
                         int *r1 EINA_UNUSED, int *g1 EINA_UNUSED, int *b1 
EINA_UNUSED, int *a1 EINA_UNUSED,
@@ -292,7 +292,7 @@ tytest_edje_object_color_class_get(Evas_Object *termio 
EINA_UNUSED, const char *
           *b = _bg.b;
         if (a)
           *a = _bg.a;
-        return 0;
+        return EINA_TRUE;
      }
    if (strncmp(key, "CURSOR", strlen("CURSOR")) == 0)
      {
@@ -304,12 +304,12 @@ tytest_edje_object_color_class_get(Evas_Object *termio 
EINA_UNUSED, const char *
           *b = _cursor.b;
         if (a)
           *a = _cursor.a;
-        return 0;
+        return EINA_TRUE;
      }
-   return -1;
+   return EINA_FALSE;
 }
 
-int
+Eina_Bool
 tytest_edje_object_color_class_set(Evas_Object *termio EINA_UNUSED, const char 
*key,
                                  int r, int g, int b, int a,
                                  int r1 EINA_UNUSED, int g1 EINA_UNUSED, int 
b1 EINA_UNUSED, int a1 EINA_UNUSED,
@@ -321,7 +321,7 @@ tytest_edje_object_color_class_set(Evas_Object *termio 
EINA_UNUSED, const char *
         _bg.g = g;
         _bg.b = b;
         _bg.a = a;
-        return 0;
+        return EINA_TRUE;
      }
    if (strncmp(key, "CURSOR", strlen("CURSOR")) == 0)
      {
@@ -329,9 +329,9 @@ tytest_edje_object_color_class_set(Evas_Object *termio 
EINA_UNUSED, const char *
         _cursor.g = g;
         _cursor.b = b;
         _cursor.a = a;
-        return 0;
+        return EINA_TRUE;
      }
-   return -1;
+   return EINA_FALSE;
 }
 
 void

-- 


Reply via email to