aboutsummaryrefslogtreecommitdiff
path: root/plugins/cc
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2020-04-07 22:01:05 -0400
committerEmilio Jesus Gallego Arias2020-04-07 22:01:05 -0400
commit847a42618bc0ff267e5912c6c8f8365f29b158b4 (patch)
treeb8e390eb0e5d57ddb170e11c4ec84afee96cde43 /plugins/cc
parent100c3abd7e5160a5dd5ee08099966d3b342078cd (diff)
parent5c5fbf68034fdd18ddfcd19c9c8b1438af6b5c92 (diff)
Merge PR #11997: Clean and fix definitions of options.
Reviewed-by: Matafou Ack-by: SkySkimmer Reviewed-by: ejgallego Reviewed-by: gares Ack-by: jfehrle
Diffstat (limited to 'plugins/cc')
-rw-r--r--plugins/cc/ccalgo.ml17
1 files changed, 6 insertions, 11 deletions
diff --git a/plugins/cc/ccalgo.ml b/plugins/cc/ccalgo.ml
index 74043d6bc8..6f5c910297 100644
--- a/plugins/cc/ccalgo.ml
+++ b/plugins/cc/ccalgo.ml
@@ -25,19 +25,14 @@ open Util
let init_size=5
-let cc_verbose=ref false
+let cc_verbose=
+ declare_bool_option_and_ref
+ ~depr:false
+ ~key:["Congruence";"Verbose"]
+ ~value:false
let debug x =
- if !cc_verbose then Feedback.msg_debug (x ())
-
-let () =
- let gdopt=
- { optdepr=false;
- optkey=["Congruence";"Verbose"];
- optread=(fun ()-> !cc_verbose);
- optwrite=(fun b -> cc_verbose := b)}
- in
- declare_bool_option gdopt
+ if cc_verbose () then Feedback.msg_debug (x ())
(* Signature table *)