add isl_map_order_gt
[platform/upstream/isl.git] / isl_ctx.c
index 6f99950..1dff37b 100644 (file)
--- a/isl_ctx.c
+++ b/isl_ctx.c
 #include <isl/vec.h>
 #include <isl/options.h>
 
-void isl_handle_error(isl_ctx *ctx, int errno, const char *msg,
+void isl_handle_error(isl_ctx *ctx, int error, const char *msg,
        const char *file, int line)
 {
-       isl_ctx_set_error(ctx, errno);
+       isl_ctx_set_error(ctx, error);
 
        switch (isl_options_get_on_error(ctx)) {
        case ISL_ON_ERROR_WARN:
@@ -61,6 +61,8 @@ void *isl_ctx_peek_options(isl_ctx *ctx, struct isl_args *args)
 {
        if (!ctx)
                return NULL;
+       if (args == &isl_options_args)
+               return ctx->opt;
        return find_nested_options(ctx->user_args, ctx->user_opt, args);
 }