core-lightning/tools/gen
Rusty Russell aa441e3b27 tools/generate-wire.py: fix loop logic for towire_xxx_array
We have to handle singletons which are arrays of variable-length entries:
this needs to be a ptr-to-ptr.

```C
struct blinded_payinfo {
        u32 fee_base_msat;
        u32 fee_proportional_millionths;
        u16 cltv_expiry_delta;
        u8 *features;
};
```

Before:
```C
struct tlv_invoice_tlvs {
...
	struct blinded_payinfo *blindedpay;
```

After:
```C
struct tlv_invoice_tlvs {
...
	struct blinded_payinfo **blindedpay;
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-09-02 09:46:37 +09:30
..
header_template tools/generate-wire.py: fix loop logic for towire_xxx_array 2020-09-02 09:46:37 +09:30
impl_template tools/generate-wire.py: fix loop logic for towire_xxx_array 2020-09-02 09:46:37 +09:30
print_header_template tools: fix comment in template. 2020-08-25 12:53:13 +09:30
print_impl_template tools: fix comment in template. 2020-08-25 12:53:13 +09:30