projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add isl_aff_mod_val
[platform/upstream/isl.git]
/
isl_ctx.c
diff --git
a/isl_ctx.c
b/isl_ctx.c
index
6f02684
..
7720be4
100644
(file)
--- a/
isl_ctx.c
+++ b/
isl_ctx.c
@@
-11,6
+11,9
@@
#include <isl/vec.h>
#include <isl_options_private.h>
#include <isl/vec.h>
#include <isl_options_private.h>
+#define __isl_calloc(type,size) ((type *)calloc(1, size))
+#define __isl_calloc_type(type) __isl_calloc(type,sizeof(type))
+
void isl_handle_error(isl_ctx *ctx, enum isl_error error, const char *msg,
const char *file, int line)
{
void isl_handle_error(isl_ctx *ctx, enum isl_error error, const char *msg,
const char *file, int line)
{
@@
-86,7
+89,7
@@
isl_ctx *isl_ctx_alloc_with_options(struct isl_args *args, void *user_opt)
opt_allocated = 1;
}
opt_allocated = 1;
}
- ctx =
isl_calloc_type(NULL,
struct isl_ctx);
+ ctx =
__isl_calloc_type(
struct isl_ctx);
if (!ctx)
goto error;
if (!ctx)
goto error;