Re: Phix: A Error Message i do not understand.
- Posted by petelomax in February
- 454 views
andreasWagner said...
i don't want to be annoying but here is maybe one more for a rainy day
cffi.e line 1038 said...
--/* Some of these may need adding: -- initialConstant("C_CHAR", #01000001) -- initialConstant("C_BYTE", #01000001)
So about 8 lines above that, as the new first entry, add
{{1,1},C_BYTE}, -- (=== C_CHAR)
Thanks again, all good stuff.
andreasWagner said...
D:\devpool\phix\builtins\cffi.e:234 bitfields are not (yet) supported
That would be significantly trickier. What struct[?] was that?
I suspect it would be much easier to replace the definition with a byte/word/dword,
and extract all 8/16/32 bits, modify that, then put them all back, iyswim.
- A new pair of get_bit()/set_bit() routines ought to be fairly straightforward,
but I'd want to be able to prove to myself they were doing the right thing.
(such would obviously be better for bitfields other than 1/2/4 bytes)