gentoo-ebuilds/dev-ml/ocaml-inifiles/files/ocaml-inifiles-1.2-inifiles.ml.patch
Alfredo Tupone ac70f01a25
dev-ml/ocaml-inifiles: changing deprecated funcs
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2024-11-16 19:58:08 +01:00

20 lines
462 B
Diff

--- a/inifiles.ml
+++ b/inifiles.ml
@@ -50,7 +50,7 @@
struct
type t = string
let compare (x:t) (y:t) =
- String.compare (String.lowercase x) (String.lowercase y)
+ String.compare (String.lowercase_ascii x) (String.lowercase_ascii y)
end
module Strset = Set.Make(Ordstr)
@@ -257,7 +257,7 @@
func
initial
(List.rev_map
- (new inifile)
+ (fun x -> new inifile x)
(List.filter
check_file
(List.rev_map