|
rpm-build |
0f2925 |
(* check compatibility of interfaces *)
|
|
rpm-build |
0f2925 |
|
|
rpm-build |
0f2925 |
#directory "src";;
|
|
rpm-build |
0f2925 |
#load "extLib.cma";;
|
|
rpm-build |
0f2925 |
|
|
rpm-build |
0f2925 |
module XS = (struct
|
|
rpm-build |
0f2925 |
include ExtLib.String
|
|
rpm-build |
0f2925 |
external length : string -> int = "%string_length"
|
|
rpm-build |
0f2925 |
external get : string -> int -> char = "%string_safe_get"
|
|
rpm-build |
0f2925 |
external set : bytes -> int -> char -> unit = "%string_safe_set"
|
|
rpm-build |
0f2925 |
external create : int -> bytes = "caml_create_string"
|
|
rpm-build |
0f2925 |
external unsafe_set : bytes -> int -> char -> unit = "%string_unsafe_set"
|
|
rpm-build |
0f2925 |
external unsafe_blit : string -> int -> bytes -> int -> int -> unit = "caml_blit_string" [@@noalloc]
|
|
rpm-build |
0f2925 |
external unsafe_fill : bytes -> int -> int -> char -> unit = "caml_fill_string" [@@noalloc]
|
|
rpm-build |
0f2925 |
end : module type of String)
|
|
rpm-build |
0f2925 |
|
|
rpm-build |
0f2925 |
module XL = (struct
|
|
rpm-build |
0f2925 |
include ExtLib.List
|
|
rpm-build |
0f2925 |
let sort = List.sort
|
|
rpm-build |
0f2925 |
end : module type of List)
|
|
rpm-build |
0f2925 |
|
|
rpm-build |
0f2925 |
module XA = (ExtLib.Array : module type of Array)
|
|
rpm-build |
0f2925 |
module XB = (ExtLib.Buffer : module type of Buffer)
|
|
rpm-build |
0f2925 |
module XH = (ExtLib.Hashtbl : module type of Hashtbl)
|