pycparserext icon indicating copy to clipboard operation
pycparserext copied to clipboard

struct in a struct with __attribute__((packed))

Open jackrosenthal opened this issue 6 years ago • 1 comments

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.

jackrosenthal avatar May 23 '19 21:05 jackrosenthal

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

inducer avatar May 23 '19 21:05 inducer