diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2008-09-09 10:09:34 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2008-10-11 23:37:28 +0200 |
commit | 7cd47d61a34916dd23e658e3b8bac9b2abfe8b1d (patch) | |
tree | 67402ef7f2793bc83f7169699891f0a92277898d /isl_input.c | |
parent | 608fe1dc7d7df7c60b18af546ec719e3a4c7ee81 (diff) | |
download | isl-7cd47d61a34916dd23e658e3b8bac9b2abfe8b1d.tar.gz isl-7cd47d61a34916dd23e658e3b8bac9b2abfe8b1d.tar.bz2 isl-7cd47d61a34916dd23e658e3b8bac9b2abfe8b1d.zip |
add struct_ctx field to isl_set and isl_map
Since isl_sets and isl_maps now know which isl_ctx they belong
to, the isl_ctx argument of many functions can be dropped.
Diffstat (limited to 'isl_input.c')
-rw-r--r-- | isl_input.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/isl_input.c b/isl_input.c index 53fffc28..1606dcdb 100644 --- a/isl_input.c +++ b/isl_input.c @@ -50,10 +50,10 @@ static struct isl_basic_set *isl_basic_set_read_from_file_polylib( p += offset; isl_assert(ctx, type == 0 || type == 1, goto error); if (type == 0) { - k = isl_basic_set_alloc_equality(ctx, bset); + k = isl_basic_set_alloc_equality(bset); c = bset->eq[k]; } else { - k = isl_basic_set_alloc_inequality(ctx, bset); + k = isl_basic_set_alloc_inequality(bset); c = bset->ineq[k]; } isl_assert(ctx, k >= 0, goto error); @@ -73,11 +73,11 @@ static struct isl_basic_set *isl_basic_set_read_from_file_polylib( isl_assert(ctx, n != 0, goto error); isl_int_read(c[0], val); } - bset = isl_basic_set_simplify(ctx, bset); - bset = isl_basic_set_finalize(ctx, bset); + bset = isl_basic_set_simplify(bset); + bset = isl_basic_set_finalize(bset); return bset; error: - isl_basic_set_free(ctx, bset); + isl_basic_set_free(bset); return NULL; } @@ -109,7 +109,7 @@ static struct isl_set *isl_set_read_from_file_polylib( isl_assert(ctx, set->dim == set->p[i]->dim, goto error); return set; error: - isl_set_free(ctx, set); + isl_set_free(set); return NULL; } |