File tree Expand file tree Collapse file tree 10 files changed +31
-15
lines changed Expand file tree Collapse file tree 10 files changed +31
-15
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 3.9
4+
5+ - feat: add ` Containers_cbor ` module
6+ - feat(CCInt32): add popcount function
7+ - feat(CCInt64): add ` popcount ` operation
8+ - CCBV:
9+ * more extensive test suite
10+ * use ` bytes ` underneath, not an array of integers
11+ - add ` containers_testlib ` , removing qtest and ounit.
12+
13+ - fix: handle uppercase in string/hex
14+
315## 3.8
416
517- add ` Containers_bencode ` for lightweight (de)ser
Original file line number Diff line number Diff line change 11opam-version: "2.0"
2- version: "3.8 "
2+ version: "3.9 "
33author: "Simon Cruanes"
44maintainer: "simon.cruanes.2007@m4x.org"
55synopsis: "A set of advanced datatypes for containers"
@@ -14,7 +14,8 @@ depends: [
1414 "dune" { >= "2.0" }
1515 "containers" { = version }
1616 "seq"
17- "qcheck-core" { with-test }
17+ (("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
18+ | ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
1819 "iter" { with-test }
1920 "gen" { with-test }
2021 #"mdx" { with-test & >= "1.5.0" & < "2.0.0" }
Original file line number Diff line number Diff line change 11opam-version: "2.0"
2- version: "3.8 "
2+ version: "3.9 "
33author: "Simon Cruanes"
44maintainer: "simon.cruanes.2007@m4x.org"
55license: "BSD-2-Clause"
@@ -16,7 +16,8 @@ depends: [
1616 "dune-configurator"
1717 "containers" { = version }
1818 "iter" { with-test }
19- "qcheck-core" { with-test }
19+ (("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
20+ | ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
2021 "uutf" { with-test }
2122 "odoc" { with-doc }
2223]
Original file line number Diff line number Diff line change 11opam-version: "2.0"
22name: "containers"
3- version: "3.8 "
3+ version: "3.9 "
44author: "Simon Cruanes"
55maintainer: "simon.cruanes.2007@m4x.org"
66license: "BSD-2-Clause"
@@ -16,7 +16,8 @@ depends: [
1616 "dune-configurator"
1717 "seq" # compat
1818 "either" # compat
19- "qcheck-core" { >= "0.14" & with-test }
19+ (("ocaml" {with-test & < "4.08"} & "qcheck-core" {>= "0.17" & with-test})
20+ | ("ocaml" {with-test & >= "4.08"} & "qcheck-core" {>= "0.18" & with-test}))
2021 "yojson" { with-test }
2122 "iter" { with-test }
2223 "gen" { with-test }
Original file line number Diff line number Diff line change 88 {b note} this is only available on OCaml >= 4.08. Below that, the module
99 is empty.
1010
11- @since NEXT_RELEASE
11+ @since 3.9
1212 *)
1313
1414type t =
Original file line number Diff line number Diff line change 99(rule
1010 (alias runtest)
1111 (deps t_appendix_a.exe appendix_a.json)
12+ (package containers)
1213 (action
1314 (run ./t_appendix_a.exe ./appendix_a.json)))
Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ val map : f:('a -> 'b) -> 'b t -> 'a t
3535
3636val always_eq : _ t
3737(* * Always returns true. All values are equal.
38- @since NEXT_RELEASE *)
38+ @since 3.9 *)
3939
4040val never_eq : _ t
4141(* * Always returns false. No values are, so this
4242 is not even reflexive (i.e. [x=x] is false).
4343 Be careful!
44- @since NEXT_RELEASE *)
44+ @since 3.9 *)
4545
4646module Infix : sig
4747 val ( > |= ) : 'b t -> ('a -> 'b) -> 'a t
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ val pow : t -> t -> t
4343
4444val popcount : t -> int
4545(* * Number of bits set to 1.
46- @since NEXT_RELEASE *)
46+ @since 3.9 *)
4747
4848val floor_div : t -> t -> t
4949(* * [floor_div x n] is integer division rounding towards negative infinity.
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ val hash : t -> int
3232
3333val popcount : t -> int
3434(* * Number of bits set to 1.
35- @since NEXT_RELEASE *)
35+ @since 3.9 *)
3636
3737val sign : t -> int
3838(* * [sign x] return [0] if [x = 0], [-1] if [x < 0] and [1] if [x > 0].
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ val create : size:int -> bool -> t
2626val init : int -> (int -> bool ) -> t
2727(* * [init len f] initializes a bitvector of length [len], where bit [i]
2828 is true iff [f i] is.
29- @since NEXT_RELEASE *)
29+ @since 3.9 *)
3030
3131val copy : t -> t
3232(* * Copy of bitvector. *)
@@ -55,7 +55,7 @@ val resize_minimize_memory : t -> int -> unit
5555(* * Same as {!resize}, but this can also shrink the underlying
5656 array if this reduces the size.
5757 @raise Invalid_argument on negative sizes.
58- @since NEXT_RELEASE *)
58+ @since 3.9 *)
5959
6060val is_empty : t -> bool
6161(* * Are there any true bits? *)
@@ -71,7 +71,7 @@ val reset : t -> int -> unit
7171
7272val set_bool : t -> int -> bool -> unit
7373(* * Set or reset [i]-th bit.
74- @since NEXT_RELEASE *)
74+ @since 3.9 *)
7575
7676val flip : t -> int -> unit
7777(* * Flip i-th bit, extending the bitvector if needed. *)
@@ -81,7 +81,7 @@ val clear : t -> unit
8181
8282val clear_and_shrink : t -> unit
8383(* * Set every bit to 0, and set length to 0.
84- @since NEXT_RELEASE *)
84+ @since 3.9 *)
8585
8686val iter : t -> (int -> bool -> unit ) -> unit
8787(* * Iterate on all bits. *)
You can’t perform that action at this time.
0 commit comments