When specifying a pointer to data, the data may be packed in one of two ways: tightly backed (no padding) and C struct{} style padding. Originally I had separate functions for choosing which padding to use (e.g. reprintf_struct vs reprintf_packed) but adding some packing directive flags to the syntax makes these extra functions unnecessary.
The test program "checker" reads the test data in JSON format and tightly packs the data, which made testing this feature very straightforward.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.