aboutsummaryrefslogtreecommitdiff
path: root/vernac
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-04-30 23:58:26 +0200
committerEmilio Jesus Gallego Arias2019-04-30 23:58:26 +0200
commitd6ebee1ad4b56d769227fab7373667eda3352fec (patch)
treea3d17a4a72ff4d07e4df0301e43969d5895c2018 /vernac
parent0ad2733e202f98953c6bc1569d191a36b746df03 (diff)
parent77257819ea4a381067e65fd46e7d7590aa7e2600 (diff)
Merge PR #9947: Remove Global.env from goptions by passing from vernacentries
Reviewed-by: ejgallego
Diffstat (limited to 'vernac')
-rw-r--r--vernac/vernacentries.ml16
1 files changed, 8 insertions, 8 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml
index e44d68b87d..fa170e4104 100644
--- a/vernac/vernacentries.ml
+++ b/vernac/vernacentries.ml
@@ -1732,29 +1732,29 @@ let vernac_set_option ~local export table v = match v with
let vernac_add_option key lv =
let f = function
- | StringRefValue s -> (get_string_table key)#add s
- | QualidRefValue locqid -> (get_ref_table key)#add locqid
+ | StringRefValue s -> (get_string_table key).add (Global.env()) s
+ | QualidRefValue locqid -> (get_ref_table key).add (Global.env()) locqid
in
try List.iter f lv with Not_found -> error_undeclared_key key
let vernac_remove_option key lv =
let f = function
- | StringRefValue s -> (get_string_table key)#remove s
- | QualidRefValue locqid -> (get_ref_table key)#remove locqid
+ | StringRefValue s -> (get_string_table key).remove (Global.env()) s
+ | QualidRefValue locqid -> (get_ref_table key).remove (Global.env()) locqid
in
try List.iter f lv with Not_found -> error_undeclared_key key
let vernac_mem_option key lv =
let f = function
- | StringRefValue s -> (get_string_table key)#mem s
- | QualidRefValue locqid -> (get_ref_table key)#mem locqid
+ | StringRefValue s -> (get_string_table key).mem (Global.env()) s
+ | QualidRefValue locqid -> (get_ref_table key).mem (Global.env()) locqid
in
try List.iter f lv with Not_found -> error_undeclared_key key
let vernac_print_option key =
- try (get_ref_table key)#print
+ try (get_ref_table key).print ()
with Not_found ->
- try (get_string_table key)#print
+ try (get_string_table key).print ()
with Not_found ->
try print_option_value key
with Not_found -> error_undeclared_key key