err, sorry, scratch that. it's due to something i call, and that used to work, but not anymore.
CL-USER> (sb-alien:extern-alien "lose_on_corruption_p" boolean)
T
CL-USER> (sb-alien:extern-alien "internal_errors_enabled" boolean)
T
CL-USER> (setf (sb-alien:extern-alien "lose_on_corruption_p" boolean) t)
T
CL-USER> (sb-alien:extern-alien "internal_errors_enabled" boolean)
NIL
i guess the way boolean type is given to extern-alien results in a wider setf than what C uses for booleans... any hints on how to do it the right way?
err, sorry, scratch that. it's due to something i call, and that used to work, but not anymore.
CL-USER> (sb-alien: extern- alien "lose_on_ corruption_ p" boolean) extern- alien "internal_ errors_ enabled" boolean) extern- alien "lose_on_ corruption_ p" boolean) t) extern- alien "internal_ errors_ enabled" boolean)
T
CL-USER> (sb-alien:
T
CL-USER> (setf (sb-alien:
T
CL-USER> (sb-alien:
NIL
i guess the way boolean type is given to extern-alien results in a wider setf than what C uses for booleans... any hints on how to do it the right way?
this is on linux x64.