This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
11
unikernel/duniverse/ocaml-cstruct/ppx_test/with-sexp/dune
Normal file
11
unikernel/duniverse/ocaml-cstruct/ppx_test/with-sexp/dune
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
(executable
|
||||
(name ppx_cstruct_and_sexp)
|
||||
(preprocess
|
||||
(pps ppx_cstruct ppx_sexp_conv -- -no-check))
|
||||
(libraries cstruct sexplib cstruct-sexp))
|
||||
|
||||
(rule
|
||||
(alias runtest)
|
||||
(package ppx_cstruct)
|
||||
(action
|
||||
(run ./ppx_cstruct_and_sexp.exe)))
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
[%%cstruct type foo = {
|
||||
magic: uint8_t [@len 16];
|
||||
}[@@little_endian]]
|
||||
|
||||
open Sexplib.Std
|
||||
type t = int [@@deriving sexp]
|
||||
|
||||
type bar = {
|
||||
buf: Cstruct_sexp.t;
|
||||
string: string;
|
||||
} [@@deriving sexp]
|
||||
Loading…
Add table
Add a link
Reference in a new issue