Skip to content

macro used in struct declaration not translated properly #166

@atilaneves

Description

@atilaneves

C code:

#define __FSID_T_TYPE struct { int __val[2]; }
typedef  __FSID_T_TYPE __fsid_t;
typedef __fsid_t fsid_t;

Right now produces this:

extern (C):
 
struct __fsid_t
{
    int[__FSID_T_TYPE] __val;
}
 
alias fsid_t = __fsid_t;

The correct code would be:

extern (C):

struct __fsid_t
{
    int[2] __val;
}

alias fsid_t = __fsid_t;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions