core-lightning/tools
Rusty Russell 5320cab2de generate-wire.py: create structures for optional fields.
If a structure foo has a optional fields opt1 and opt2, this creates
towire_foo, towire_foo_opt1 and towire_foo_opt2 (since opt2 implies opt1),
similarly for fromwire_*.

This requires the callers to be updated to call the correct routines (eg.
try fromwire_foo_opt2, then fromwire_foo_opt1, then finally fromwire_foo),
but this is a minimal change to the generation code.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-11-09 13:55:24 +01:00
..
check-bolt.c check-bolt: move to tools/ 2017-08-22 14:56:02 +02:00
generate-wire.py generate-wire.py: create structures for optional fields. 2017-11-09 13:55:24 +01:00
mockup.sh update-mocks: fix stubs generation for fatal(). 2017-10-31 04:14:33 +00:00
update-mocks.sh update-mocks: move mock generation into tools/, fix and generalize. 2017-09-03 02:01:54 +02:00