This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View 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)))

View file

@ -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]