aboutsummaryrefslogtreecommitdiff
path: root/lib/util.ml
diff options
context:
space:
mode:
authorherbelin2006-09-23 09:36:05 +0000
committerherbelin2006-09-23 09:36:05 +0000
commit3a4e701b78c0422b019bbac3ea39198126de0677 (patch)
tree570e25139303f4bd0923ab5879e9b081d83a6c08 /lib/util.ml
parent9936e2ba36e1d16dcee047d34b0c4caf8c377726 (diff)
Déplacement surround dans util.ml et parenthésage des déclarations
castées si aussi suivies de leur type (p.ex. dans les hypothèses de but), afin d'éviter des configurations non réinterprétables comme x:nat:nat. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9164 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'lib/util.ml')
-rw-r--r--lib/util.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.ml b/lib/util.ml
index 599e17adf4..dc25caefee 100644
--- a/lib/util.ml
+++ b/lib/util.ml
@@ -813,6 +813,8 @@ let prvect_with_sep sep elem v =
let n = Array.length v in
if n = 0 then mt () else pr (n - 1)
+let surround p = hov 1 (str"(" ++ p ++ str")")
+
(*s Size of ocaml values. *)
module Size = struct