From 162fc39bcc36953402d668b5d7ac7b88c9966461 Mon Sep 17 00:00:00 2001 From: filliatr Date: Thu, 2 Dec 1999 16:43:08 +0000 Subject: modifs pour premiere edition de liens git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@189 85f007b7-540e-0410-9357-904b9bb8a0f7 --- library/goptions.ml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'library/goptions.ml') diff --git a/library/goptions.ml b/library/goptions.ml index 4f5133226..a54d0870c 100644 --- a/library/goptions.ml +++ b/library/goptions.ml @@ -49,7 +49,7 @@ module MakeTable = let kn = nickname A.key let _ = - if List.mem_assoc kn !param_table then + if List.mem_assoc kn !param_table then error "Sorry, this table name is already used" module MyType = struct type t = A.t let compare = Pervasives.compare end @@ -81,8 +81,8 @@ module MakeTable = Libobject.open_function = open_options; Libobject.cache_function = cache_options; Libobject.specification_function = specification_options}) in - ((fun c -> Lib.add_anonymous_leaf (inGo (GOadd, c))), - (fun c -> Lib.add_anonymous_leaf (inGo (GOrmv, c)))) + ((fun c -> let _ = Lib.add_anonymous_leaf (inGo (GOadd, c)) in ()), + (fun c -> let _ = Lib.add_anonymous_leaf (inGo (GOrmv, c)) in ())) else ((fun c -> t := MySet.add c !t), (fun c -> t := MySet.remove c !t)) @@ -244,8 +244,8 @@ let set_option_value check_and_cast key v = in match info with | Sync current -> - Lib.add_anonymous_leaf - (inOptVal (key,(name,check_and_cast v current))) + let _ = Lib.add_anonymous_leaf + (inOptVal (key,(name,check_and_cast v current))) in () | Async (read,write) -> write (check_and_cast v (read ())) let bad_type_error () = error "Bad type of value for this option" -- cgit v1.2.3