X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_ctx.c;h=7720be47a7af1cc6474612964707374bad90477d;hb=63fb8a7f484648c3caa25351c8c94ac2395ec563;hp=6f02684db1e90f991b07f7489d1c23a6b89ab8a2;hpb=1a9c7afa1e0ca242fb348575afbf8e493deffbfd;p=platform%2Fupstream%2Fisl.git diff --git a/isl_ctx.c b/isl_ctx.c index 6f02684..7720be4 100644 --- a/isl_ctx.c +++ b/isl_ctx.c @@ -11,6 +11,9 @@ #include #include +#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) { @@ -86,7 +89,7 @@ isl_ctx *isl_ctx_alloc_with_options(struct isl_args *args, void *user_opt) opt_allocated = 1; } - ctx = isl_calloc_type(NULL, struct isl_ctx); + ctx = __isl_calloc_type(struct isl_ctx); if (!ctx) goto error;