freenode/#ecl - IRC Chatlog
Search
3:23:09
mitigate
is there any reasonable way to hand bitfield packed structs in lisp? struct foo { int a:1; int b:7; }; - sizeof(struct foo) = 4 ?
3:26:30
mitigate
BTW I'm seeing "Cannot interrupt the inactive process" errors when connecting connecting to a swank server. I'm not able to debug it - I just put a handler case around (kill-thread) in (sentinel-stop-server) to work around it.
3:37:23
pjb
mitigate: so you should read the documentation of the C compiler, and translate that to normal FFI stuff.
3:38:17
pjb
mitigate: eg. if the C compiler packs the 1 and 7 bit fields into a single 32-bit int, then you can declare a defcstruct with a single 32-bit int. Then you have to know where those bits are stored? Once you know that, you can use ldb and dpb to access them.
3:57:16
mitigate
but the problem i'm having in my head is in using that info to implement (ffi-slot-value struct slot-name)