mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
containers-top printers
This commit is contained in:
parent
6a75577c83
commit
d1237f1f29
2 changed files with 4 additions and 3 deletions
|
|
@ -30,6 +30,5 @@
|
|||
#load "containers_top.cma";;
|
||||
#thread;;
|
||||
#load "containers_thread.cma";;
|
||||
#install_printer CCSexp.print;;
|
||||
(* vim:syntax=ocaml:
|
||||
*)
|
||||
|
|
|
|||
|
|
@ -15,13 +15,15 @@ let install_printer s =
|
|||
()
|
||||
let install_printers = List.iter install_printer
|
||||
|
||||
let pp_vector pp_x out (v: _ CCVector.vector) = CCVector.print pp_x out v
|
||||
let pp_rw_vector pp_x out (v: _ CCVector.vector) = CCVector.print pp_x out v
|
||||
let pp_ro_vector pp_x out (v: _ CCVector.ro_vector) = CCVector.print pp_x out v
|
||||
let pp_klist (ppx:Format.formatter -> 'a -> unit) out l = CCKList.print ppx out l
|
||||
|
||||
let () =
|
||||
install_printers
|
||||
[ "CCHashtbl.print"
|
||||
; "Containers_top.pp_vector"
|
||||
; "Containers_top.pp_rw_vector"
|
||||
; "Containers_top.pp_ro_vector"
|
||||
; "CCBV.print"
|
||||
; "CCDeque.print"
|
||||
; "CCFQueue.print"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue