Permalink
Commits on Apr 27, 2016
  1. windows: take 3

    committed Apr 27, 2016
Commits on Apr 26, 2016
  1. sync changes

    committed Apr 26, 2016
  2. restore ppx 4.02 and 4.03 versions

    committed Apr 26, 2016
  3. rename ppx_cstruct.ml to one selected by ocaml version

    This is in anticipation of OCaml 4.03 support
    committed Apr 26, 2016
  4. Update build

    lpw25 committed Apr 26, 2016
  5. Update ppx

    lpw25 committed Apr 26, 2016
Commits on Mar 22, 2016
  1. README.md: remove the camlp4 syntax reference

    Include a note which mentions that the last version which supported
    camlp4 was v1.9.0.
    
    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Mar 22, 2016
  2. Update the docs to use ppx rather than camlp4

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Mar 22, 2016
  3. travis: remove camlp4 DEPOPT and OCaml 4.01 test

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Mar 22, 2016
Commits on Mar 18, 2016
  1. opam: remove dependency on type_conv

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Mar 18, 2016
Commits on Mar 12, 2016
  1. opam: remove camlp4

    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  2. Remove camlp4: from now on we're ppx only

    Following discussion on #mirage today, the plan is to release a new
    cstruct with ppx only and fix the reverse dependencies.
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  3. Merge pull request #94 from djs55/fix-docs

    Fix generation of the docs
    djs55 committed Mar 12, 2016
  4. Merge pull request #87 from djs55/alignment

    Add function to check buffer alignment
    djs55 committed Mar 12, 2016
  5. Merge pull request #93 from djs55/doc-create

    doc: add a big warning about information leaking via `Cstruct.create`
    djs55 committed Mar 12, 2016
  6. Merge pull request #92 from djs55/fix-make-test

    Ensure `make test` runs all the tests
    djs55 committed Mar 12, 2016
  7. Merge pull request #91 from djs55/add-license

    Add LICENSE file (ISC)
    djs55 committed Mar 12, 2016
  8. Regenerate OASIS

    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  9. doc: fix generation in _oasis

    The _oasis file needs one Document (containing one XOcamlbuildPath)
    per directory. Therefore we have 3 Document sections, one for:
    
    - cstruct
    - cstruct.lwt
    - cstruct.unix
    
    Fixes #73
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  10. doc: add a big warning about information leaking via `Cstruct.create`

    This improves the situation described in #30
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  11. Ensure `make test` runs all the tests

    Before this patch there were 2 distinct test suites:
    
    - `make test`: runs the tests from the _oasis file
    - `test.sh`: runs a set of shell script based tests
    
    The `opam` file only mentioned `test.sh`, so some of the tests were
    effectively hidden from travis (.. and initially from me too)
    
    Since the discussion on #54 says that we're phasing out `test.sh`,
    this patch extends `make test` to call `test.sh` internally, and
    makes the `opam` file run `make test`. This ensures that travis (and
    developers) run all the tests rather than a subset. No-one need
    know about the details of `test.sh`, and we can take our time to
    refactor them.
    
    Fixes #58
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  12. Merge pull request #88 from orbifx/patch-1

     PPX package version wasn't bumped
    djs55 committed Mar 12, 2016
  13. Add LICENSE file (ISC)

    The Copyright (c) lines have been prepopulated from the commit
    Author fields.
    
    Fixes #61
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  14. Merge pull request #89 from djs55/fix-windows

    Fix tests on windows and add appveyor
    djs55 committed Mar 12, 2016
  15. Add appveyor support

    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
  16. test.sh: fix on windows by avoiding symlinks

    Fixes #83
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 12, 2016
Commits on Mar 8, 2016
  1. Move `Cstruct.check_alignment` into the stubs

    Before this patch we returned the buffer address from C and then
    calculated using OCaml's boxed Int64.t. This patch reduces minor
    allocations by performing the calculation in the C stubs. This
    makes the function suitable for use in an assert in a performance
    sensitive path.
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 8, 2016
Commits on Mar 7, 2016
  1. PPX package version wasn't bumped

    orbifx committed with orbifx Mar 7, 2016
Commits on Mar 6, 2016
  1. test: add tests for `check_alignment` function

    These tests verify that we find the expected number of aligned
    offsets within a couple of example buffers.
    
    Signed-off-by: David Scott <dave.scott@docker.com>
    djs55 committed Mar 6, 2016