You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("/usr/include/x86_64-linux-gnu/bits/timex.h": line 50): Corrode doesn't handle this yet:
int : 32
while file like:
struct timex {
...
int tai; /* TAI offset (ro) */
/* ??? */
int :32; int :32; int :32; int :32;
int :32; int :32; int :32; int :32;
int :32; int :32; int :32;
};
The text was updated successfully, but these errors were encountered:
meagon
changed the title
doest not handle strauct with bit-field
doest not handle struct with bit-field
Oct 4, 2016
jameysharp
changed the title
doest not handle struct with bit-field
implement struct bit-fields
Oct 11, 2016
I have no idea yet what bit-fields should translate to in Rust, so if anyone has suggestions I'd love to hear them!
That said, I think we'll get a long way with #71, which should allow us to translate headers declaring types we don't know how to translate as long as those types aren't actually used in the current translation unit. This struct timex, for example, appears to be a Linux-specific type intended only for use by software like an NTP daemon, so I don't think much software is actually using it. Therefore, fixing #71 will probably get you past this error (and many like it) even if we don't implement bit-fields yet.
There is an old but open Rust RFC issue rust-lang/rfcs#314 for discussing this, as well as a postponed proposal rust-lang/rfcs#1449 that seemingly got close but nothing ready to roll.
while file like:
The text was updated successfully, but these errors were encountered: