mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
generate-wire.py: don't generate structures, hand in all values.
This is a bit more awkward for large structures, but avoids indirection for the simpler ones (I copied the structures for the test code, however). We also remove explicit padding. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -118,9 +118,9 @@ void fromwire_u8_array(const u8 **cursor, size_t *max, u8 *arr, size_t num)
|
||||
fromwire(cursor, max, arr, num);
|
||||
}
|
||||
|
||||
void fromwire_pad_array(const u8 **cursor, size_t *max, u8 *arr, size_t num)
|
||||
void fromwire_pad(const u8 **cursor, size_t *max, size_t num)
|
||||
{
|
||||
fromwire(cursor, max, arr, num);
|
||||
fromwire(cursor, max, NULL, num);
|
||||
}
|
||||
|
||||
void fromwire_signature_array(const u8 **cursor, size_t *max,
|
||||
|
||||
Reference in New Issue
Block a user