Memory layout of a data structure: Difference between revisions

Added PicoLisp
m (omit reason)
(Added PicoLisp)
Line 303:
$vec->get($rs232{'TC Transmit clock'});
</lang>
 
=={{header|PicoLisp}}==
PicoLisp can handle bit fields or bit structures only as bignums. They can be
manipulated with '[http://software-lab.de/doc/ref_.html#& &]',
'[http://software-lab.de/doc/ref_.html#| |]' and
'[http://software-lab.de/doc/refX.html#x| x|]',
or tested with '[http://software-lab.de/doc/refB.html#bit? bit?]'.
<lang PicoLisp># Define bit constants
(for (N . Mask) '(CD RD TD DTR SG DSR RTS CTS RI)
(def Mask (>> (- 1 N) 1)) )
 
# Test if Clear to send
(when (bit? CTS Data)
... )</lang>
 
=={{header|Python}}==
Anonymous user