[squeak-dev] FFI: FFI-Pools-mt.25.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 13 10:30:34 UTC 2020


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

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

Name: FFI-Pools-mt.25
Author: mt
Time: 13 June 2020, 12:30:34.49703 pm
UUID: 1c28eee9-bee2-424c-ac81-21a11db9073b
Ancestors: FFI-Pools-mt.24

Removes code-loading dependency to Json class. Note that there is #ensureParsingSupport to lazy-load the Json class.

=============== Diff against FFI-Pools-mt.24 ===============

Item was changed:
  ----- Method: ExternalPoolJSONReadWriter>>interpretPoolData (in category 'reading - fetch/interpret/clear/load') -----
  interpretPoolData
  
+ 	poolData := (self environment classNamed: #Json) readFrom: poolData readStream.
- 	poolData := Json readFrom: poolData readStream.
  	
  	poolData at: 1 put: (FFIPlatformDescription
  		name: (poolData first at: 'name')
  		osVersion: (poolData first at: 'osVersion')
  		subtype: (poolData first at: 'subtype')
  		wordSize: (poolData first at: 'wordSize')).
  	
  	poolData second keysAndValuesDo: [:name :value |
  		"See #nextPutFloatVariable:from:. We have to read a Float from the string contents."	
  		(poolDefinition variablesAndTypesAt: name) value == Float
  			ifTrue: [poolData second at: name put: (self class readFloatFrom: value readStream)]].!



More information about the Squeak-dev mailing list