From 02cb841f9a614c347ed6d1a26813d8212629f08f Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 4 Aug 2011 16:49:14 +0200 Subject: [PATCH] doc: update prototype of isl_constraint_free It was changed in e2a2317 (reimplement isl_constraint in terms of isl_aff, Fri Jul 1 17:20:52 2011 +0200). Signed-off-by: Sven Verdoolaege --- doc/user.pod | 2 +- include/isl/constraint.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/user.pod b/doc/user.pod index 6e748a4..81628e2 100644 --- a/doc/user.pod +++ b/doc/user.pod @@ -1237,7 +1237,7 @@ To iterate over the constraints of a basic set or map, use __isl_keep isl_basic_map *bmap, int (*fn)(__isl_take isl_constraint *c, void *user), void *user); - void isl_constraint_free(struct isl_constraint *c); + void *isl_constraint_free(__isl_take isl_constraint *c); Again, the callback function C should return 0 if successful and -1 if an error occurs. In the latter case, or if any other error diff --git a/include/isl/constraint.h b/include/isl/constraint.h index cc562ba..27ac66d 100644 --- a/include/isl/constraint.h +++ b/include/isl/constraint.h @@ -29,7 +29,7 @@ __isl_give isl_constraint *isl_inequality_alloc(__isl_take isl_dim *dim); struct isl_constraint *isl_constraint_cow(struct isl_constraint *c); struct isl_constraint *isl_constraint_copy(struct isl_constraint *c); -void *isl_constraint_free(struct isl_constraint *c); +void *isl_constraint_free(__isl_take isl_constraint *c); int isl_basic_map_foreach_constraint(__isl_keep isl_basic_map *bmap, int (*fn)(__isl_take isl_constraint *c, void *user), void *user); -- 2.7.4