FFI: FFI-Kernel-mt.144.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FFI: FFI-Kernel-mt.144.mcz

commits-2
Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.144.mcz

==================== Summary ====================

Name: FFI-Kernel-mt.144
Author: mt
Time: 14 May 2021, 3:27:52.47176 pm
UUID: a4c9086d-420e-384c-818b-6e9b0052a86d
Ancestors: FFI-Kernel-mt.143

Minor fix for better support of void* -- more tests needed. Works for FFI-Callbacks.

=============== Diff against FFI-Kernel-mt.143 ===============

Item was changed:
  ----- Method: ExternalData>>setType: (in category 'private') -----
+ setType: externalType
- setType: containerType
  "Private. Set the type used to derive content and container types."
 
+ externalType isVoid ifTrue: [
+ ^ self setType: externalType asPointerType].
+
+ externalType asNonPointerType isArrayType
+ ifTrue: [type := externalType]
+ ifFalse: [type := (externalType asArrayType: nil)].
- containerType asNonPointerType isArrayType
- ifTrue: [type := containerType]
- ifFalse: [type := (containerType asArrayType: nil)].
 
  handle isExternalAddress
  ifTrue: [type := type asPointerType]
  ifFalse: [type := type asNonPointerType].!