Skip to content

Commit be859b8

Browse files
committed
simplicity-sys: add versions to jets_ffi code
The process here was: * Manually replace c_X with c_v0_3_X everywhere (actually only in two files, wrapper.h and jets_ffi.rs) * Run update_jets.sh and make sure it changes all the 0_3s to 0_4s. Note that now both update_jets.sh and vendor-simplicity.sh update wrapper.h. This is fine since the change is idempotent. But we really should clean up and combine these two scripts one of these days.. The 0_3 test is easy to do during review, though if you are on NixOS then replace the cabal build/exec lines by first nix-building the `haskell` target in Simplicity and then directly calling result/bin/GenRustJets in there.
1 parent d298887 commit be859b8

File tree

3 files changed

+1778
-748
lines changed

3 files changed

+1778
-748
lines changed

simplicity-sys/depend/wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define WRAPPER_H
33

44
#define WRAP_(jet) \
5-
bool c_##jet(frameItem* dst, const frameItem* src, const txEnv* env) { \
5+
bool rustsimplicity_0_4_c_##jet(frameItem* dst, const frameItem* src, const txEnv* env) { \
66
bool result = rustsimplicity_0_4_##jet(dst, *src, env); \
77
rustsimplicity_0_4_assert(!result || 0 == dst->offset); \
88
return result; \

0 commit comments

Comments
 (0)