ImportC and #pragma pack
Steven Schveighoffer
schveiguy at gmail.com
Wed Sep 29 20:21:03 UTC 2021
On 9/28/21 2:05 AM, Walter Bright wrote:
> https://issues.dlang.org/show_bug.cgi?id=22315
>
> I'm on the fence about implementing this. On the one hand, I can do it
> and make it work. On the other hand, the C11 way is to use _Alignas, and
> that's 10 years old now. How far do we go with implementing all the
> nutburger obsolete C extension cruft out there?
Might I suggest -- you are going to have to preprocess the file anyway.
If you filter the preprocessor results through another processor that
"fixes" these things (like changes #pragma pack into D `align`
directives), then you have room to deal with nutburgers.
-Steve
More information about the Digitalmars-d
mailing list