isl_mat_unimodular_complete: add memory management annotations
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 8 Jan 2017 15:17:06 +0000 (8 16:17 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 24 Apr 2017 11:38:34 +0000 (24 13:38 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
include/isl/mat.h
isl_mat.c

index 63f8ba7..fc21fd2 100644 (file)
@@ -93,7 +93,7 @@ __isl_give isl_mat *isl_mat_add_zero_rows(__isl_take isl_mat *mat, unsigned n);
 
 void isl_mat_col_add(__isl_keep isl_mat *mat, int dst_col, int src_col);
 
-struct isl_mat *isl_mat_unimodular_complete(struct isl_mat *M, int row);
+__isl_give isl_mat *isl_mat_unimodular_complete(__isl_take isl_mat *M, int row);
 
 __isl_give isl_mat *isl_mat_from_row_vec(__isl_take isl_vec *vec);
 __isl_give isl_mat *isl_mat_concat(__isl_take isl_mat *top,
index a0aa1f4..7bb8824 100644 (file)
--- a/isl_mat.c
+++ b/isl_mat.c
@@ -1545,7 +1545,7 @@ __isl_give isl_mat *isl_mat_col_neg(__isl_take isl_mat *mat, int col)
        return mat;
 }
 
-struct isl_mat *isl_mat_unimodular_complete(struct isl_mat *M, int row)
+__isl_give isl_mat *isl_mat_unimodular_complete(__isl_take isl_mat *M, int row)
 {
        int r;
        struct isl_mat *H = NULL, *Q = NULL;