From 2b3e0866e70bae2002a57dff9d536d84f90071d4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 25 Apr 2012 10:51:49 +0200 Subject: [PATCH] add isl_id_list Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 +- include/isl/list.h | 1 + isl_list.c | 5 +++++ isl_list_private.h | 5 +++++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/user.pod b/doc/user.pod index 74cb4cef..b307f399 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -2812,7 +2812,7 @@ returning a basic set or relation. =head2 Lists Lists are defined over several element types, including -C, C, C and C. +C, C, C, C and C. Here we take lists of Cs as an example. Lists can be created, copied, modified and freed using the following functions. diff --git a/include/isl/list.h b/include/isl/list.h index d14df28a..ed295eeb 100644 --- a/include/isl/list.h +++ b/include/isl/list.h @@ -47,6 +47,7 @@ __isl_give isl_printer *isl_printer_print_##EL##_list( \ __isl_take isl_printer *p, __isl_keep isl_##EL##_list *list); \ void isl_##EL##_list_dump(__isl_keep isl_##EL##_list *list); +ISL_DECLARE_LIST(id) ISL_DECLARE_LIST(basic_set) ISL_DECLARE_LIST(set) ISL_DECLARE_LIST(aff) diff --git a/isl_list.c b/isl_list.c index 27baab10..81456f73 100644 --- a/isl_list.c +++ b/isl_list.c @@ -36,3 +36,8 @@ #define BASE band #include + +#undef BASE +#define BASE id + +#include diff --git a/isl_list_private.h b/isl_list_private.h index da57f41e..e678e280 100644 --- a/isl_list_private.h +++ b/isl_list_private.h @@ -28,4 +28,9 @@ #include +#undef EL +#define EL isl_id + +#include + #endif -- 2.11.4.GIT