aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing
diff options
context:
space:
mode:
authorGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-09-29 15:23:07 +0200
committerGravatar Enrico Tassi <Enrico.Tassi@inria.fr>2016-09-29 17:51:06 +0200
commit601fd9343a241706c0a205aaf8e08255753c3780 (patch)
tree8e704db53a79b588303cd5fe98448e598dd79518 /printing
parentfdfcdc79989c46737089e4c8cab5ad0090e4d8a6 (diff)
Arguments: cleanup + detect discrepancy rename/implicit (#3753)
It seems warnings are not taken into account in output/ tests.
Diffstat (limited to 'printing')
-rw-r--r--printing/ppvernac.ml14
1 files changed, 8 insertions, 6 deletions
diff --git a/printing/ppvernac.ml b/printing/ppvernac.ml
index 40ce28dc0..1d8dcabcc 100644
--- a/printing/ppvernac.ml
+++ b/printing/ppvernac.ml
@@ -1029,16 +1029,18 @@ module Make
pr_smart_global q ++
let pr_s = function None -> str"" | Some (_,s) -> str "%" ++ str s in
let pr_if b x = if b then x else str "" in
- let pr_br imp max x = match imp, max with
- | true, false -> str "[" ++ x ++ str "]"
- | true, true -> str "{" ++ x ++ str "}"
- | _ -> x in
+ let pr_br imp x = match imp with
+ | `Implicit -> str "[" ++ x ++ str "]"
+ | `MaximallyImplicit -> str "{" ++ x ++ str "}"
+ | `NotImplicit -> x in
let rec aux n l =
match n, l with
| 0, l -> spc () ++ str"/" ++ aux ~-1 l
| _, [] -> mt()
- | n, (id,k,s,imp,max) :: tl ->
- spc() ++ pr_br imp max (pr_if k (str"!") ++ pr_name id ++ pr_s s) ++
+ | n, { name = id; recarg_like = k;
+ notation_scope = s;
+ implicit_status = imp } :: tl ->
+ spc() ++ pr_br imp (pr_if k (str"!") ++ pr_name id ++ pr_s s) ++
aux (n-1) tl in
prlist_with_sep (fun () -> str", ") (aux nargs) impl ++
(if not (List.is_empty mods) then str" : " else str"") ++