mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -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";;
|
#load "containers_top.cma";;
|
||||||
#thread;;
|
#thread;;
|
||||||
#load "containers_thread.cma";;
|
#load "containers_thread.cma";;
|
||||||
#install_printer CCSexp.print;;
|
|
||||||
(* vim:syntax=ocaml:
|
(* vim:syntax=ocaml:
|
||||||
*)
|
*)
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,15 @@ let install_printer s =
|
||||||
()
|
()
|
||||||
let install_printers = List.iter install_printer
|
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 pp_klist (ppx:Format.formatter -> 'a -> unit) out l = CCKList.print ppx out l
|
||||||
|
|
||||||
let () =
|
let () =
|
||||||
install_printers
|
install_printers
|
||||||
[ "CCHashtbl.print"
|
[ "CCHashtbl.print"
|
||||||
; "Containers_top.pp_vector"
|
; "Containers_top.pp_rw_vector"
|
||||||
|
; "Containers_top.pp_ro_vector"
|
||||||
; "CCBV.print"
|
; "CCBV.print"
|
||||||
; "CCDeque.print"
|
; "CCDeque.print"
|
||||||
; "CCFQueue.print"
|
; "CCFQueue.print"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue