"sized structures", per https://youtu.be/VAGNcyo8hqs?si=Mt5gWGp1u-NKsKyp, ~10m40s #11795
Unanswered
bch
asked this question in
Vouch Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What do you want to change?
Per private email w @mitchellh , consider using not a record of bytesize to differentiate structures, but monotonically increasing version or epoch. Can be expressed as enum for visual effect.
enum struct_foo_version {
FOO_V_1,
FOO_V_2,
[...],
FOO_V_LAST /** not used */
};
w/ or w/o typedef, as per style.
struct foo {
enum struct_foo_version version;
[...]
};
Why do you want to make this change?
ABI management/compatibility.
I acknowledge that:
Beta Was this translation helpful? Give feedback.
All reactions