X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fextlib%2FhExtlib.mli;h=52b74429cd0e6909539a2c0b8eb2ed26569ca670;hb=e8f64678cc425f19336ff4f905f9b2f00acd6627;hp=c41b2f94c60f5d59bb8d39d525d1db2c78893c01;hpb=c5df154c421b761c227b163ea345a499dd081e75;p=helm.git diff --git a/helm/software/components/extlib/hExtlib.mli b/helm/software/components/extlib/hExtlib.mli index c41b2f94c..52b74429c 100644 --- a/helm/software/components/extlib/hExtlib.mli +++ b/helm/software/components/extlib/hExtlib.mli @@ -53,6 +53,10 @@ val output_file: filename:string -> text:string -> unit (** other way round *) (** {2 Exception handling} *) + (** @param finalizer finalization function (execution both in case of success + * and in case of raised exception + * @param f function to be invoked + * @param arg argument to be passed to function *) val finally: (unit -> unit) -> ('a -> 'b) -> 'a -> 'b (** {2 Char processing} *) @@ -94,3 +98,7 @@ val floc_of_loc: int * int -> Token.flocation val dummy_floc: Lexing.position * Lexing.position val raise_localized_exception: offset:int -> Token.flocation -> exn -> 'a + +(* size in KB (SLOW) *) +val estimate_size: 'a -> int +