From 7855175ea4fce2357a3a9d7978ffe024f4feb4d2 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 15 Apr 2018 17:34:34 +0200 Subject: [PATCH] tyfuzz: make it compile again! --- src/bin/termptyesc.c | 7 +++++++ src/bin/tyfuzz.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c index 56d1da1e..6c22a3f3 100644 --- a/src/bin/termptyesc.c +++ b/src/bin/termptyesc.c @@ -534,6 +534,12 @@ static int _approximate_truecolor_rgb(Termpty *ty, int r0, int g0, int b0) { int chosen_color = COL_DEF; +#ifdef ENABLE_FUZZING + (void) ty; + (void) r0; + (void) g0; + (void) b0; +#else int c; int distance_min = INT_MAX; Evas_Object *textgrid; @@ -569,6 +575,7 @@ _approximate_truecolor_rgb(Termpty *ty, int r0, int g0, int b0) chosen_color = c; } } +#endif return chosen_color; } diff --git a/src/bin/tyfuzz.c b/src/bin/tyfuzz.c index b0e817e6..14c8aa24 100644 --- a/src/bin/tyfuzz.c +++ b/src/bin/tyfuzz.c @@ -54,6 +54,13 @@ termio_font_size_set(Evas_Object *obj EINA_UNUSED, int size EINA_UNUSED) { } + + +void +termio_set_cursor_shape(Evas_Object *obj EINA_UNUSED, + Cursor_Shape shape EINA_UNUSED) +{ +} /* }}} */