add isl_constraint_list
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 24 Aug 2012 13:08:25 +0000 (15:08 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 6 Sep 2012 13:45:21 +0000 (15:45 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
doc/user.pod
include/isl/list.h
isl_list.c
isl_list_private.h

index d0678df..7d3cdcc 100644 (file)
@@ -2941,7 +2941,8 @@ returning a basic set or relation.
 =head2 Lists
 
 Lists are defined over several element types, including
-C<isl_id>, 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_constraint>,
+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 5cc7da3..0de7d1c 100644 (file)
@@ -53,6 +53,7 @@ __isl_give isl_printer *isl_printer_print_##EL##_list(                        \
 void isl_##EL##_list_dump(__isl_keep isl_##EL##_list *list);
 
 ISL_DECLARE_LIST(id)
+ISL_DECLARE_LIST(constraint)
 ISL_DECLARE_LIST(basic_set)
 ISL_DECLARE_LIST(set)
 ISL_DECLARE_LIST(aff)
index 448295f..bb926b7 100644 (file)
@@ -8,11 +8,17 @@
  */
 
 #include <isl_list_private.h>
+#include <isl/constraint.h>
 #include <isl/set.h>
 #include <isl/aff.h>
 #include <isl/band.h>
 
 #undef BASE
+#define BASE constraint
+
+#include <isl_list_templ.c>
+
+#undef BASE
 #define BASE basic_set
 
 #include <isl_list_templ.c>
index e678e28..26d5641 100644 (file)
@@ -4,6 +4,11 @@
 #include <isl/list.h>
 
 #undef EL
+#define EL isl_constraint
+
+#include <isl_list_templ.h>
+
+#undef EL
 #define EL isl_basic_set
 
 #include <isl_list_templ.h>