From b605e7f52fbf205eb4a7f5daef25dab8cf0dbabb Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 16 Aug 2018 17:27:59 +0200 Subject: [PATCH] isl_qpolynomial_lift: rename "dim" argument to "space" Signed-off-by: Sven Verdoolaege --- isl_polynomial.c | 14 +++++++------- isl_polynomial_private.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/isl_polynomial.c b/isl_polynomial.c index 9f737d6c..514be635 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -4001,17 +4001,17 @@ error: } __isl_give isl_qpolynomial *isl_qpolynomial_lift(__isl_take isl_qpolynomial *qp, - __isl_take isl_space *dim) + __isl_take isl_space *space) { int i; int extra; unsigned total; - if (!qp || !dim) + if (!qp || !space) goto error; - if (isl_space_is_equal(qp->dim, dim)) { - isl_space_free(dim); + if (isl_space_is_equal(qp->dim, space)) { + isl_space_free(space); return qp; } @@ -4019,7 +4019,7 @@ __isl_give isl_qpolynomial *isl_qpolynomial_lift(__isl_take isl_qpolynomial *qp, if (!qp) goto error; - extra = isl_space_dim(dim, isl_dim_set) - + extra = isl_space_dim(space, isl_dim_set) - isl_space_dim(qp->dim, isl_dim_set); total = isl_space_dim(qp->dim, isl_dim_all); if (qp->div->n_row) { @@ -4042,11 +4042,11 @@ __isl_give isl_qpolynomial *isl_qpolynomial_lift(__isl_take isl_qpolynomial *qp, isl_seq_clr(qp->div->row[i] + 2 + total, extra); isl_space_free(qp->dim); - qp->dim = dim; + qp->dim = space; return qp; error: - isl_space_free(dim); + isl_space_free(space); isl_qpolynomial_free(qp); return NULL; } diff --git a/isl_polynomial_private.h b/isl_polynomial_private.h index 4c23cf30..3695a93d 100644 --- a/isl_polynomial_private.h +++ b/isl_polynomial_private.h @@ -228,7 +228,7 @@ __isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_morph_domain( __isl_take isl_pw_qpolynomial_fold *pwf, __isl_take isl_morph *morph); __isl_give isl_qpolynomial *isl_qpolynomial_lift(__isl_take isl_qpolynomial *qp, - __isl_take isl_space *dim); + __isl_take isl_space *space); __isl_give isl_qpolynomial_fold *isl_qpolynomial_fold_lift( __isl_take isl_qpolynomial_fold *fold, __isl_take isl_space *dim); -- 2.11.4.GIT