-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split structures into inner and outer definitions to support packed-a…
…ligned structures (#131) Implement support for packed-aligned structures in several steps: * Unify bitfield and non-bitfield struct implementations into a single one, and rename bitfields.rs to structs.rs * Implement support for packed-aligned structures by splitting them into an outer-aligned newtype containing an inner-packed structure with the actual fields * Implement support for aligned structure fields in packed structures by computing the amount of padding and adding the padding manually * Pre-declare all the field names (checking for duplicates) in mod.rs instead of declaring them on demand * Use the field renamer to manage names for padding fields in structures * Add a set of tests for packed and/or aligned structures
- Loading branch information
Showing
9 changed files
with
762 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.