dpp
dpp copied to clipboard
Keyword renaming doesn't always propagate
Original from header:
typedef union {
struct {
uint8_t align:2;
uint8_t right_merge:1;
uint8_t type:2;
uint8_t crop:1;
};
uint8_t format_byte;
}lv_table_cell_format_t;
Result in D file:
union lv_table_cell_format_t
{
static struct _Anonymous_77
{
import std.bitmanip: bitfields;
align(4):
mixin(bitfields!(
ubyte, "align_", 2,
ubyte, "right_merge", 1,
ubyte, "type", 2,
ubyte, "crop", 1,
uint, "_padding_0", 2
));
}
_Anonymous_77 _anonymous_78;
auto align() @property @nogc pure nothrow { return _anonymous_78.align; }
void align(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_78.align = val; }
auto right_merge() @property @nogc pure nothrow { return _anonymous_78.right_merge; }
void right_merge(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_78.right_merge = val; }
auto type() @property @nogc pure nothrow { return _anonymous_78.type; }
void type(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_78.type = val; }
auto crop() @property @nogc pure nothrow { return _anonymous_78.crop; }
void crop(_T_)(auto ref _T_ val) @property @nogc pure nothrow { _anonymous_78.crop = val; }
ubyte format_byte;
}
See align vs align_.