implement antiquated isl_set_n_* in terms of isl_set_dim
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 09:33:48 +0000 (11:33 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000 (17:37 +0200)
isl_map.c

index a4d1686..9d532cd 100644 (file)
--- a/isl_map.c
+++ b/isl_map.c
@@ -177,12 +177,12 @@ unsigned isl_basic_set_total_dim(const struct isl_basic_set *bset)
 
 unsigned isl_set_n_dim(const struct isl_set *set)
 {
-       return set->dim->n_out;
+       return isl_set_dim(set, isl_dim_set);
 }
 
 unsigned isl_set_n_param(const struct isl_set *set)
 {
-       return set->dim->nparam;
+       return isl_set_dim(set, isl_dim_param);
 }
 
 unsigned isl_basic_map_n_in(const struct isl_basic_map *bmap)