add isl_id_list
authorSven Verdoolaege <skimo@kotnet.org>
Wed, 25 Apr 2012 08:51:49 +0000 (25 10:51 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 2 Aug 2012 10:20:08 +0000 (2 12:20 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl/list.h
isl_list.c
isl_list_private.h

index 74cb4ce..b307f39 100644 (file)
@@ -2812,7 +2812,7 @@ returning a basic set or relation.
 =head2 Lists
 
 Lists are defined over several element types, including
-C<isl_aff>, C<isl_pw_aff>, C<isl_basic_set> and C<isl_set>.
+C<isl_id>, C<isl_aff>, C<isl_pw_aff>, C<isl_basic_set> and C<isl_set>.
 Here we take lists of C<isl_set>s as an example.
 Lists can be created, copied, modified and freed using the following functions.
 
index d14df28..ed295ee 100644 (file)
@@ -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)
index 27baab1..81456f7 100644 (file)
@@ -36,3 +36,8 @@
 #define BASE band
 
 #include <isl_list_templ.c>
+
+#undef BASE
+#define BASE id
+
+#include <isl_list_templ.c>
index da57f41..e678e28 100644 (file)
@@ -28,4 +28,9 @@
 
 #include <isl_list_templ.h>
 
+#undef EL
+#define EL isl_id
+
+#include <isl_list_templ.h>
+
 #endif