aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/vm.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/vm.ml')
-rw-r--r--kernel/vm.ml7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/vm.ml b/kernel/vm.ml
index 14aeb732f..160575ac7 100644
--- a/kernel/vm.ml
+++ b/kernel/vm.ml
@@ -42,9 +42,12 @@ external push_vstack : vstack -> int -> unit = "coq_push_vstack"
(* interpreteur *)
-external interprete : tcode -> values -> vm_env -> int -> values =
+external coq_interprete : tcode -> values -> vm_global -> vm_env -> int -> values =
"coq_interprete_ml"
+let interprete code v env k =
+ coq_interprete code v (Csymtable.get_global_data ()) env k
+
(* Functions over arguments *)
(* Apply a value to arguments contained in [vargs] *)
@@ -184,6 +187,6 @@ let apply_whd k whd =
push_val v;
interprete (cofix_upd_code to_up) (cofix_upd_val to_up) (cofix_upd_env to_up) 0
| Vatom_stk(a,stk) ->
- apply_stack (val_of_atom a) stk v
+ apply_stack (val_of_atom a) stk v
| Vuniv_level lvl -> assert false