Skip to content

Recognise and translate __attribute__((__packed__)) #39

@w0rp

Description

@w0rp

In GCC and LLVM, you can declare a packed struct like so.

typedef struct __attribute__((__packed__)) { /* */ } name;

This is equilvalent to the following in D.

struct name { align(1): /* */ }

I would like it if dstep would recognise the former and translate it into the latter. Otherwise, it will output structs with the wrong alignment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions