Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.74.mcz==================== Summary ====================
Name: FFI-Kernel-mt.74
Author: mt
Time: 20 May 2020, 7:58:09.494513 pm
UUID: 64a250fc-5c9d-9a40-9dd2-2e84b8bd8f9c
Ancestors: FFI-Kernel-mt.73
Adds some support for calling #free from within the image to then also get usable print strings for the instances of ExternalStructure.
Not sure whether it makes sense, but maybe we could store an additional flag in ExternalStructure. Just checking handle for nil seems weird...
=============== Diff against FFI-Kernel-mt.73 ===============
Item was changed:
----- Method: ExternalStructure>>printNullOn: (in category 'printing') -----
printNullOn: stream
+ handle ifNil: [^ stream nextPutAll: '<UNDEFINED>'].
+
self isNull ifTrue: [
stream nextPutAll: '<NULL>'].!
Item was changed:
----- Method: ExternalStructure>>printPointerOn: (in category 'printing') -----
printPointerOn: stream
+ handle ifNil: [^ stream nextPutAll: '<UNDEFINED>'].
+
handle isExternalAddress
ifTrue: [stream nextPutAll: '*'].!