Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C struct generator: have single header struct #1

Open
ThirteenFish opened this issue Jul 14, 2014 · 0 comments
Open

C struct generator: have single header struct #1

ThirteenFish opened this issue Jul 14, 2014 · 0 comments

Comments

@ThirteenFish
Copy link
Member

Currently for each new data container we do something like this:

struct FooData {
    type field1;
    type field2;
}

struct FooMessage {
    char ID[4];
    uint8_t timestamp[6];
    uint16_t length;
    struct FooData data;
}

Instead we should have a single struct for the header and then either have struct FooMessage be a combination of the two structs, or have FooData be expanded inside FooMessage, or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant