diff options
| author | Pierre Letouzey | 2014-03-02 00:17:29 +0100 |
|---|---|---|
| committer | Pierre Letouzey | 2014-03-02 20:00:03 +0100 |
| commit | 9130ea9cbc657cd7adf02830e40a89f6de3953f3 (patch) | |
| tree | e0152f4442dadf8cc49f12a2cc42817515691461 /lib/cString.mli | |
| parent | f694544d016b085b3cd10007b9f7716ae2c3b022 (diff) | |
Set officially the minimal OCaml requirement to 3.12.1
Anyway, a few syntactic features of 3.12 were already used here and
there (e.g. local opening via Foo.(...), or the record shortcut
{ field; ... }). Hence compiling with 3.11 wasn't working anymore.
Already take advantage of the following 3.12.1 features :
- "module type of ..." in CArray, CList, CString ...
- "ocamldep -ml-synonym" : no need anymore to hack the ocamldep output
via our coqdep to localize the .ml4 modules :-)
The -ml-synonym option (+ various bugfixes) is the reason for asking
3.12.1 directly and not just 3.12.0. After all, if debian stable is
providing 3.12.1, then everybody has it ;-)
Diffstat (limited to 'lib/cString.mli')
| -rw-r--r-- | lib/cString.mli | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/lib/cString.mli b/lib/cString.mli index 5f36162312..6aa10875ca 100644 --- a/lib/cString.mli +++ b/lib/cString.mli @@ -6,43 +6,8 @@ (* * GNU Lesser General Public License Version 2.1 *) (************************************************************************) -(** FIXME: From OCaml 3.12 onwards, that would only be a [module type of] *) - (** Module type [S] is the one from OCaml Stdlib. *) -module type S = -sig - external length : string -> int = "%string_length" - external get : string -> int -> char = "%string_safe_get" - external set : string -> int -> char -> unit = "%string_safe_set" - external create : int -> string = "caml_create_string" - val make : int -> char -> string - val copy : string -> string - val sub : string -> int -> int -> string - val fill : string -> int -> int -> char -> unit - val blit : string -> int -> string -> int -> int -> unit - val concat : string -> string list -> string - val iter : (char -> unit) -> string -> unit - val escaped : string -> string - val index : string -> char -> int - val rindex : string -> char -> int - val index_from : string -> int -> char -> int - val rindex_from : string -> int -> char -> int - val contains : string -> char -> bool - val contains_from : string -> int -> char -> bool - val rcontains_from : string -> int -> char -> bool - val uppercase : string -> string - val lowercase : string -> string - val capitalize : string -> string - val uncapitalize : string -> string - type t = string - val compare: t -> t -> int - external unsafe_get : string -> int -> char = "%string_unsafe_get" - external unsafe_set : string -> int -> char -> unit = "%string_unsafe_set" - external unsafe_blit : - string -> int -> string -> int -> int -> unit = "caml_blit_string" "noalloc" - external unsafe_fill : - string -> int -> int -> char -> unit = "caml_fill_string" "noalloc" -end +module type S = module type of String module type ExtS = sig |
