forked from ocaml/flexdll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompat402.ml
29 lines (24 loc) · 912 Bytes
/
Compat402.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
(************************************************************************)
(* FlexDLL *)
(* Alain Frisch *)
(* *)
(* Copyright 2007 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(************************************************************************)
(* Back-port required functionality from Bytes in 4.02.0 *)
type bytes = string
module Bytes = struct
include String
let blit_string = blit
let sub_string = sub
let of_string x = x
let to_string x = x
let cat = (^)
end
let output_bytes = output_string
module Buffer = struct
include Buffer
let to_bytes = contents
end
(* Introduced in 4.01.0 *)
let ( |> ) x f = f x