From 64c5ecd30c3e362539639dacffdb5d9daa8794cd Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 11 Jun 2017 02:21:17 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- convert-template.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/convert-template.c b/convert-template.c index 81b3351..ef061ab 100644 --- a/convert-template.c +++ b/convert-template.c @@ -1,19 +1,8 @@ /* See LICENSE file for copyright and license details. */ -static void to_rgb(const libcolour_colour_t *restrict from, libcolour_rgb_t *restrict to); -static void to_srgb(const libcolour_colour_t *restrict from, libcolour_srgb_t *restrict to); -static void to_ciexyy(const libcolour_colour_t *restrict from, libcolour_ciexyy_t *restrict to); -static void to_ciexyz(const libcolour_colour_t *restrict from, libcolour_ciexyz_t *restrict to); -static void to_cielab(const libcolour_colour_t *restrict from, libcolour_cielab_t *restrict to); -static void to_cieluv(const libcolour_colour_t *restrict from, libcolour_cieluv_t *restrict to); -static void to_cielchuv(const libcolour_colour_t *restrict from, libcolour_cielchuv_t *restrict to); -static void to_yiq(const libcolour_colour_t *restrict from, libcolour_yiq_t *restrict to); -static void to_ydbdr(const libcolour_colour_t *restrict from, libcolour_ydbdr_t *restrict to); -static void to_yuv(const libcolour_colour_t *restrict from, libcolour_yuv_t *restrict to); -static void to_ypbpr(const libcolour_colour_t *restrict from, libcolour_ypbpr_t *restrict to); -static void to_ycgco(const libcolour_colour_t *restrict from, libcolour_ycgco_t *restrict to); -static void to_cie1960ucs(const libcolour_colour_t *restrict from, libcolour_cie1960ucs_t *restrict to); -static void to_cieuvw(const libcolour_colour_t *restrict from, libcolour_cieuvw_t *restrict to); +#define X(C, T, N) static void to_##N(const libcolour_colour_t *restrict from, T *restrict to); +LIST_MODELS(X) +#undef X #define CONV_0(MACRO, FROM, TO)\ -- cgit v1.2.3-70-g09d2