Closed master-q closed 8 years ago
NetBSD code is also using bit field...
struct ieee_ext {
u_int ext_fracl:EXT_FRACLBITS;
u_int ext_frach:EXT_FRACHBITS;
#if 0
u_int ext_int:1;
#endif
u_int ext_exp:EXT_EXPBITS;
u_int ext_sign:1;
};
My plan is:
The dataview can be used at interface between C and ATS?
Ah, dataview is algebraic data type. It doesn't match C language struct...
Totally, I should use following policy to translate C interface into ATS sats file?
Fix it with typedef $extype_struct doesn't include at-view.
Hongwei's advice is using dataview:
https://groups.google.com/forum/#!topic/ats-lang-users/H0JJ4bwLn6A