Skip to content

Commit 3a10225

Browse files
committed
more
1 parent 2d1c2ae commit 3a10225

File tree

11 files changed

+149
-154
lines changed

11 files changed

+149
-154
lines changed

src/include/lean/lean.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2831,17 +2831,17 @@ static inline lean_obj_res lean_io_mk_world() { return lean_box(0); }
28312831

28322832
static inline b_lean_obj_res lean_baseio_out_val(b_lean_obj_arg r) {
28332833
// TODO: This function needs to become identity after we are done.
2834-
return lean_ctor_get(r, 0);
2835-
// return r;
2834+
// return lean_ctor_get(r, 0);
2835+
return r;
28362836
}
28372837

28382838
static inline lean_obj_res lean_mk_baseio_out(lean_obj_arg i) {
28392839
// TODO: This function needs to become identity after we are done.
2840-
lean_object * r = lean_alloc_ctor(0, 2, 0);
2841-
lean_ctor_set(r, 0, i);
2842-
lean_ctor_set(r, 1, lean_box(0));
2843-
return r;
2840+
// lean_object * r = lean_alloc_ctor(0, 2, 0);
2841+
// lean_ctor_set(r, 0, i);
2842+
// lean_ctor_set(r, 1, lean_box(0));
28442843
// return r;
2844+
return i;
28452845
}
28462846

28472847
static inline bool lean_io_result_is_ok(b_lean_obj_arg r) {

src/library/ir_interpreter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,9 @@ uint32 run_main(elab_environment const & env, options const & opts, list_ref<str
11531153
}
11541154

11551155
/* runMain (env : Environment) (opts : Iptions) (args : List String) : BaseIO UInt32 */
1156-
extern "C" LEAN_EXPORT obj_res lean_run_main(b_obj_arg env, b_obj_arg opts, b_obj_arg args, obj_arg) {
1156+
extern "C" LEAN_EXPORT uint32_t lean_run_main(b_obj_arg env, b_obj_arg opts, b_obj_arg args, obj_arg) {
11571157
uint32 ret = run_main(TO_REF(elab_environment, env), TO_REF(options, opts), TO_REF(list_ref<string_ref>, args));
1158-
return lean_mk_baseio_out(box(ret));
1158+
return ret;
11591159
}
11601160

11611161
extern "C" LEAN_EXPORT object * lean_eval_const(object * env, object * opts, object * c) {

0 commit comments

Comments
 (0)