[Vm-dev] VM Maker: VMMaker.oscog-eem.3230.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Aug 1 01:25:51 UTC 2022
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.3230.mcz
==================== Summary ====================
Name: VMMaker.oscog-eem.3230
Author: eem
Time: 31 July 2022, 6:25:37.80777 pm
UUID: 62983d7d-c448-4df0-8290-e8e5ad733f59
Ancestors: VMMaker.oscog-eem.3229
Eliminate C compiler warenings when using strncmp: in stString:ofSize:equalsCString:ofSize:
=============== Diff against VMMaker.oscog-eem.3229 ===============
Item was changed:
----- Method: InterpreterPlugin>>stString:ofSize:equalsCString: (in category 'comparison') -----
stString: aPointer ofSize: byteSize equalsCString: aCString
<inline: #always>
- <var: 'aCString' type: #'char *'>
^self stString: aPointer ofSize: byteSize equalsCString: aCString ofSize: (self strlen: aCString)!
Item was changed:
----- Method: InterpreterPlugin>>stString:ofSize:equalsCString:ofSize: (in category 'comparison') -----
stString: aPointer ofSize: byteSize equalsCString: aCString ofSize: aCStringStrlen
<inline: #always>
+ ^byteSize = aCStringStrlen and: [(self strncmp: aCString
+ _: (self cCoerceSimple: aPointer to: #'const char *')
+ _: aCStringStrlen) = 0]!
- <var: 'aCString' type: #'char *'>
- ^byteSize = aCStringStrlen and: [(self strncmp: aCString _: aPointer _: aCStringStrlen) = 0]!
More information about the Vm-dev
mailing list