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

struct in a struct with __attribute__((packed)) #42

Open
jackrosenthal opened this issue May 23, 2019 · 1 comment · May be fixed by #76
Open

struct in a struct with __attribute__((packed)) #42

jackrosenthal opened this issue May 23, 2019 · 1 comment · May be fixed by #76

Comments

@jackrosenthal
Copy link
Contributor

Support for either of these cases:

struct foo_t {
    struct __attribute__((packed)) {
        int a;
        char b;
    };
};
struct foo_t {
    struct {
        int a;
        char b;
    } __attribute__((packed));
};

I can work on an patch, but just posting an issue so it's documented.

@inducer
Copy link
Owner

inducer commented May 23, 2019

Thanks for the report! I'd be happy to consider a patch, especially a reasonably well-tested one. :)

douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Sep 1, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Sep 1, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Sep 4, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Sep 8, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Sep 8, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
douglas-raillard-arm added a commit to douglas-raillard-arm/pycparserext that referenced this issue Oct 4, 2023
Add support for GNU __attribute__(()) in enum/struct/union definitions,
both on the type itself and on enumerators.

Fixes inducer#42

Signed-off-by: Douglas Raillard <[email protected]>
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

Successfully merging a pull request may close this issue.

2 participants