package camlimages
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Image processing library
Install
dune-project
Dependency
Authors
Maintainers
Sources
camlimages-5.0.5.tar.gz
md5=84929b30257aa8e493dc84303768f400
sha512=b3774d2287e4a97082f0289766f5a79d3e75454a194d2d6400cee9cf926f7676d8eba4cb27221a98314461b7a81b4386b253f1d706a94447423394be89d2ed49
doc/src/camlimages.core/tmpfile.ml.html
Source file tmpfile.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38(***********************************************************************) (* *) (* Objective Caml *) (* *) (* François Pessaux, projet Cristal, INRIA Rocquencourt *) (* Pierre Weis, projet Cristal, INRIA Rocquencourt *) (* Jun Furuse, projet Cristal, INRIA Rocquencourt *) (* *) (* Copyright 1999 - 2003 *) (* Institut National de Recherche en Informatique et en Automatique. *) (* Distributed only by permission. *) (* *) (***********************************************************************) (* temporary directory *) let tmp_dir = ref (try Sys.getenv "CAMLIMAGESTMPDIR" with Not_found -> "/tmp") let cnter = ref 0 let rec new_tmp_name prefx = incr cnter; let name = Filename.concat !tmp_dir (Printf.sprintf "camlimages-%s-%d" prefx !cnter) in if not (Sys.file_exists name) then name else begin prerr_endline ("Warning: tmp file " ^ name ^ " already exists"); new_tmp_name prefx end let remove_tmp_file tmpfile = try Sys.remove tmpfile with _ -> () let new_tmp_file_name prefx = if not (Sys.file_exists !tmp_dir) then failwith ("Temporary directory " ^ !tmp_dir ^ " does not exist") else let f = new_tmp_name prefx in at_exit (fun () -> remove_tmp_file f); f
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>