aboutsummaryrefslogtreecommitdiffstats
path: root/convert-template.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-06-11 02:21:17 +0200
committerMattias Andrée <maandree@kth.se>2017-06-11 02:21:17 +0200
commit64c5ecd30c3e362539639dacffdb5d9daa8794cd (patch)
treef543d0e65c806d684079e0222a96bfffb72f3d07 /convert-template.c
parentconvert-template.c: add macros CONV_0 and CONV_N (diff)
downloadlibcolour-64c5ecd30c3e362539639dacffdb5d9daa8794cd.tar.gz
libcolour-64c5ecd30c3e362539639dacffdb5d9daa8794cd.tar.bz2
libcolour-64c5ecd30c3e362539639dacffdb5d9daa8794cd.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'convert-template.c')
-rw-r--r--convert-template.c17
1 files 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)\