fix callers of functions returning additional boolean through pointer
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 18 Feb 2019 22:03:49 +0000 (18 23:03 +0100)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Mon, 18 Feb 2019 22:17:33 +0000 (18 23:17 +0100)
These changes were missing from the previous commit.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
bound.c
closure.c
isl_bernstein.c
isl_transitive_closure.c

diff --git a/bound.c b/bound.c
index 33d98bd..ec79b3b 100644 (file)
--- a/bound.c
+++ b/bound.c
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
        isl_stream *s;
        struct isl_obj obj;
        struct bound_options *options;
-       int exact;
+       isl_bool exact;
        int r = 0;
 
        options = bound_options_new_with_defaults();
index c76fb29..22235b0 100644 (file)
--- a/closure.c
+++ b/closure.c
@@ -8,7 +8,7 @@ int main(int argc, char **argv)
        struct isl_map *map;
        struct isl_options *options;
        isl_printer *p;
-       int exact;
+       isl_bool exact;
 
        options = isl_options_new_with_defaults();
        assert(options);
index 04f2adc..2b83c64 100644 (file)
@@ -355,7 +355,8 @@ error:
  */
 static __isl_give isl_pw_qpolynomial_fold *bernstein_coefficients_base(
        __isl_take isl_basic_set *bset,
-       __isl_take isl_qpolynomial *poly, struct bernstein_data *data, int *tight)
+       __isl_take isl_qpolynomial *poly, struct bernstein_data *data,
+       isl_bool *tight)
 {
        isl_size nvar;
        isl_space *space;
@@ -373,7 +374,7 @@ static __isl_give isl_pw_qpolynomial_fold *bernstein_coefficients_base(
                fold = isl_qpolynomial_fold_alloc(data->type, poly);
                dom = isl_set_from_basic_set(bset);
                if (tight)
-                       *tight = 1;
+                       *tight = isl_bool_true;
                pwf = isl_pw_qpolynomial_fold_alloc(data->type, dom, fold);
                return isl_pw_qpolynomial_fold_project_domain_on_params(pwf);
        }
@@ -385,7 +386,7 @@ static __isl_give isl_pw_qpolynomial_fold *bernstein_coefficients_base(
                dom = isl_set_from_basic_set(bset);
                pwf = isl_pw_qpolynomial_fold_alloc(data->type, dom, fold);
                if (tight)
-                       *tight = 1;
+                       *tight = isl_bool_true;
                return isl_pw_qpolynomial_fold_project_domain_on_params(pwf);
        }
 
@@ -502,7 +503,8 @@ error:
 
 static __isl_give isl_pw_qpolynomial_fold *bernstein_coefficients_full_recursive(
        __isl_take isl_basic_set *bset,
-       __isl_take isl_qpolynomial *poly, struct bernstein_data *data, int *tight)
+       __isl_take isl_qpolynomial *poly, struct bernstein_data *data,
+       isl_bool *tight)
 {
        int i;
        int *len;
@@ -555,7 +557,7 @@ isl_stat isl_qpolynomial_bound_on_domain_bernstein(
        isl_pw_qpolynomial_fold *pwf;
        isl_size nvar;
        isl_bool tight = isl_bool_false;
-       int *tp = bound->check_tight ? &tight : NULL;
+       isl_bool *tp = bound->check_tight ? &tight : NULL;
 
        nvar = isl_basic_set_dim(bset, isl_dim_set);
        if (nvar < 0 || !poly)
index 16f7ee9..34b2375 100644 (file)
@@ -1258,7 +1258,7 @@ static isl_bool incremental_on_entire_domain(__isl_keep isl_space *space,
 
        for (i = 0; i < map->n; ++i) {
                isl_map *qc;
-               int exact_i;
+               isl_bool exact_i;
                isl_bool spurious;
                int j;
                dom[i] = isl_set_from_basic_set(isl_basic_map_domain(