doc: update prototype of isl_constraint_free
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 4 Aug 2011 14:49:14 +0000 (16:49 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 4 Aug 2011 14:49:14 +0000 (16:49 +0200)
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 <skimo@kotnet.org>
doc/user.pod
include/isl/constraint.h

index 6e748a4..81628e2 100644 (file)
@@ -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<fn> should return 0 if successful and
 -1 if an error occurs.  In the latter case, or if any other error
index cc562ba..27ac66d 100644 (file)
@@ -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);