mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-11 01:27:58 +01:00
tools/generate-wire.py: don't prettify headers.
The formatting makes it harder for update-mocks, eg: /* Generated stub for fmt_wireaddr_without_port */ char *fmt_wireaddr_without_port(const tal_t *ctx UNNEEDED, const struct wireaddr *a UNNEEDED) { fprintf(stderr, "fmt_wireaddr_without_port called!\n"); abort(); } /* Could not find declaration for fromwire_onionmsg_path */ /* Generated stub for json_add_member */ Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
0512e1a33e
commit
ebb7daed49
1 changed files with 1 additions and 2 deletions
|
@ -129,8 +129,7 @@ extern const struct tlv_record_type tlvs_${tlv.name}[];
|
|||
% endfor
|
||||
void towire_${subtype.name}(u8 **p, const ${subtype.type_name()} *${subtype.name});
|
||||
% if subtype.is_varsize():
|
||||
${subtype.type_name()} *
|
||||
fromwire_${subtype.name}(const tal_t *ctx, const u8 **cursor, size_t *plen);
|
||||
${subtype.type_name()} *fromwire_${subtype.name}(const tal_t *ctx, const u8 **cursor, size_t *plen);
|
||||
% else:
|
||||
void fromwire_${subtype.name}(const u8 **cursor, size_t *plen, ${subtype.type_name()} *${subtype.name});
|
||||
% endif
|
||||
|
|
Loading…
Add table
Reference in a new issue