#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)
{
opt_allocated = 1;
}
- ctx = isl_calloc_type(NULL, struct isl_ctx);
+ ctx = __isl_calloc_type(struct isl_ctx);
if (!ctx)
goto error;
isl_int_clear(ctx->normalize_gcd);
isl_args_free(ctx->user_args, ctx->user_opt);
if (ctx->opt_allocated)
- free(ctx->opt);
+ isl_options_free(ctx->opt);
free(ctx->stats);
free(ctx);
}