summaryrefslogtreecommitdiff
path: root/textproc/ocaml-csv/files/patch-src_csv.mli
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2021-09-10 04:58:16 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2021-09-10 04:58:18 +0000
commit7af6dde54995fa1784440b52be51499b7dff070b (patch)
treeedb9308868a0ebf5e072471b03e283eb06b1f5d6 /textproc/ocaml-csv/files/patch-src_csv.mli
parentx11-wm/plasma5-kwin: unbreak with libglvnd >= 1.3.4 (diff)
textproc/ocaml-csv: the port had been improved (+)
- Unbreak against immutable strings in OCaml 4.06+ - Define LICENSE (GNU LGPL version 2.1 or later) - Drop unused dependency on `devel/ocaml-extlib' - Hook the provided test target to our framework - Fix wording and grammar of the port description
Diffstat (limited to 'textproc/ocaml-csv/files/patch-src_csv.mli')
-rw-r--r--textproc/ocaml-csv/files/patch-src_csv.mli20
1 files changed, 20 insertions, 0 deletions
diff --git a/textproc/ocaml-csv/files/patch-src_csv.mli b/textproc/ocaml-csv/files/patch-src_csv.mli
new file mode 100644
index 000000000000..ecccf681add9
--- /dev/null
+++ b/textproc/ocaml-csv/files/patch-src_csv.mli
@@ -0,0 +1,20 @@
+--- src/csv.mli.orig 2010-06-14 11:17:06 UTC
++++ src/csv.mli
+@@ -37,7 +37,7 @@ type t = string list list
+ (** The most basic input object for best interoperability. *)
+ class type in_obj_channel =
+ object
+- method input : string -> int -> int -> int
++ method input : bytes -> int -> int -> int
+ (** [input buf ofs len] reads up to [len] octets from the channel
+ and puts them in the substring [buf.[ofs .. ofs+len-1]].
+ Returns the number of octets actually read (and stored). When
+@@ -52,7 +52,7 @@ end
+ (** The most basic output object for best interoperability. *)
+ class type out_obj_channel =
+ object
+- method output : string -> int -> int -> int
++ method output : bytes -> int -> int -> int
+ (** [output s ofs len] writes up to [len] bytes of the substring
+ [s.[ofs .. ofs+len-1]]. Return the number of bytes actually
+ written. When the channel is non-blocking, and there are