Re: Phix: A Error Message i do not understand.

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

So about 8 lines above that, as the new first entry, add

                                         {{1,1},C_BYTE},    -- (=== C_CHAR) 

Thank you, this is working.

andreasWagner said...

D:\devpool\phix\builtins\cffi.e:234 
bitfields are not (yet) supported 

petelomax said...

That would be significantly trickier. What struct[?] was that?

This one:https://learn.microsoft.com/de-de/windows/win32/api/winbase/ns-winbase-dcb
It's also back in serial.ew (as comment ) line28

petelomax said...

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.

Yes, you are correct.

petelomax said...

- 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)

So there is no hurry to do anything. But it would be cool to have something like get_bit()/set_bit().
But today is nice weather (no, it's just not raining). I'm going outside.

Again, Thank you
Andreas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu