[squeak-dev] FFI: FFI-Tools-mt.21.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Apr 20 15:17:02 UTC 2021


Marcel Taeumel uploaded a new version of FFI-Tools to project FFI:
http://source.squeak.org/FFI/FFI-Tools-mt.21.mcz

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

Name: FFI-Tools-mt.21
Author: mt
Time: 20 April 2021, 5:17:02.045768 pm
UUID: 7def1cf3-e037-4cbc-ba03-c673cf7c0d27
Ancestors: FFI-Tools-mt.20

Complements FFI-Kernel-mt.120

=============== Diff against FFI-Tools-mt.20 ===============

Item was changed:
  ----- Method: ExternalData>>explorerContentsMetaFields (in category '*FFI-Tools') -----
  explorerContentsMetaFields
+ 	"Skip _type because our external type is already in the basic explorer fields because it is an instance variable. Add _contentType for clarification."
+ 
+ 	^ {
+ 		ObjectExplorerWrapper with: self containerType name: '_containerType' model: self.
+ 		ObjectExplorerWrapper with: self contentType name: '_contentType' model: self.
+ 	}!
- 	"Ignore because our type is already in the basic explorer fields because it is an instance variable."
- 	^ #()!

Item was changed:
  ----- Method: ExternalData>>explorerContentsStructFields (in category '*FFI-Tools') -----
  explorerContentsStructFields
  	"In case some data interpretation omitted to convert char*, which is a (null-terminated) C string, to Smalltalk string."
  	
+ 	^ (self isNull not and: [self containerType = ExternalType string]) ifFalse: [#()] ifTrue: [	
- 	^ (self isNull not and: [type = ExternalType string]) ifFalse: [#()] ifTrue: [	
  		{ObjectExplorerWrapper
  			with: self fromCString
  			name: 'as C string'
  			model: self}]!

Item was changed:
  ----- Method: ExternalData>>hasContentsInExplorer (in category '*FFI-Tools') -----
  hasContentsInExplorer
  
  	^ super hasContentsInExplorer
+ 		or: [self isNull not and: [self containerType = ExternalType string]]!
- 		or: [self isNull not and: [type = ExternalType string]]!



More information about the Squeak-dev mailing list