projects
/
ldk-c-bindings
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include a `struct` before trait return fields
[ldk-c-bindings]
/
genbindings.sh
diff --git
a/genbindings.sh
b/genbindings.sh
index c5025982dc36a15704da88bbd69580ee1bcc2d49..f1058161f9c9cf232af1c17c40df20e57af122a8 100755
(executable)
--- a/
genbindings.sh
+++ b/
genbindings.sh
@@
-232,7
+232,7
@@
if is_gnu_sed; then
sed -i 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored here
sed -i 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored here
- sed -i 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h
+ sed -i 's/LDKUnsafeCell<\(.*\)> /
struct
\1 /g' include/lightning.h
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
@@
-242,7
+242,7
@@
else
sed -i '' 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored by cbindgen
sed -i '' 's/typedef LDKnative.*Import.*LDKnative.*;//g' include/lightning.h
# UnsafeCell is `repr(transparent)` so should be ignored by cbindgen
- sed -i '' 's/LDKUnsafeCell<\(.*\)> /\1 /g' include/lightning.h
+ sed -i '' 's/LDKUnsafeCell<\(.*\)> /
struct
\1 /g' include/lightning.h
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.
# stdlib.h doesn't exist in clang's wasm sysroot, and cbindgen
# doesn't actually use it anyway, so drop the import.