Skip to content

Commit

Permalink
Merge pull request #112 from avsm/r2.3.0
Browse files Browse the repository at this point in the history
release 2.3.0, and add ocaml 4.04 to the test matrix
  • Loading branch information
avsm authored Aug 17, 2016
2 parents 36993e0 + 3c93069 commit e3ac4fe
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ env:
- DISTRO="centos-6" OCAML_VERSION="4.02.3"
- DISTRO="alpine-3.4" OCAML_VERSION="4.03.0"
- DISTRO="fedora-24" OCAML_VERSION="4.03.0"
- DISTRO="opensuse-42.1" OCAML_VERSION="4.04.0"
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.3.0 (2016-08-16):
* Add `Cstruct.of_bytes/to_bytes`. In common with the existing
implementation, this relies on the representation of bytes and string
being the same, which is true as of OCaml 4.04 and lower (#105 via @yallop).
* Support OCaml 4.04 (#111 via @gasche).

2.2.0 (2016-06-30):
* Make `create` zero out the new buffer. The new `create_unsafe`
function can be used if you want to trade safety for speed.
Expand Down
2 changes: 1 addition & 1 deletion _oasis
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
OASISFormat: 0.4
Name: cstruct
Version: 2.2.0
Version: 2.3.0
Synopsis: Manipulate external buffers as C-like structs
Authors: Anil Madhavapeddy, Richard Mortier, Thomas Gazagnaire,
Pierre Chambart, David Kaloper, Jeremy Yallop, Hannes Mehnert
Expand Down
10 changes: 5 additions & 5 deletions lib/META
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OASIS_START
# DO NOT EDIT (digest: d568f8e4d2049c28f0943886f3991470)
version = "2.2.0"
# DO NOT EDIT (digest: b89387813cbaaaac77e59b6a9416113a)
version = "2.3.0"
description = "Manipulate external buffers as C-like structs"
requires = "bytes bigarray ocplib-endian ocplib-endian.bigstring sexplib"
archive(byte) = "cstruct.cma"
Expand All @@ -9,7 +9,7 @@ archive(native) = "cstruct.cmxa"
archive(native, plugin) = "cstruct.cmxs"
exists_if = "cstruct.cma"
package "unix" (
version = "2.2.0"
version = "2.3.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct unix"
archive(byte) = "unix_cstruct.cma"
Expand All @@ -20,7 +20,7 @@ package "unix" (
)

package "lwt" (
version = "2.2.0"
version = "2.3.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct lwt.unix"
archive(byte) = "lwt_cstruct.cma"
Expand All @@ -31,7 +31,7 @@ package "lwt" (
)

package "async" (
version = "2.2.0"
version = "2.3.0"
description = "Manipulate external buffers as C-like structs"
requires = "cstruct async threads"
archive(byte) = "async_cstruct.cma"
Expand Down
4 changes: 2 additions & 2 deletions select_ppx_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

case $1 in
clean) rm -f ppx/ppx_cstruct.ml; exit 0 ;;
conf) (* continue *) ;;
*) echo "supported actions: conf, clean"; exit 1 ;;
conf) ;;
*) echo "Usage: $0 [conf|clean]"; exit 1 ;;
esac

V=`ocamlc -version`
Expand Down
11 changes: 6 additions & 5 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(* setup.ml generated for the first time by OASIS v0.4.5 *)
(* setup.ml generated for the first time by OASIS v0.4.6 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: 2c117050cd24f1f539bcbb15e6c9b4ee) *)
(* DO NOT EDIT (digest: f6315f8e853b1b704f4aecfe79f3bf95) *)
(*
Regenerated by OASIS v0.4.6
Visit http://oasis.forge.ocamlcore.org for more information and
Expand Down Expand Up @@ -6992,7 +6992,7 @@ let setup_t =
alpha_features = [];
beta_features = [];
name = "cstruct";
version = "2.2.0";
version = "2.3.0";
license =
OASISLicense.DEP5License
(OASISLicense.DEP5Unit
Expand Down Expand Up @@ -7692,14 +7692,15 @@ let setup_t =
};
oasis_fn = Some "_oasis";
oasis_version = "0.4.6";
oasis_digest = Some "\200\140\248\216\191\208K9\011\215L\207\r(\166+";
oasis_digest =
Some "\190\023\1409\001|\230\224\175\179\189\027\217\229\148\017";
oasis_exec = None;
oasis_setup_args = [];
setup_update = false
};;

let setup () = BaseSetup.setup setup_t;;

# 7704 "setup.ml"
# 7705 "setup.ml"
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit e3ac4fe

Please sign in to comment.