VM Maker: VMMaker-oscog-EstebanLorenzano.230.mcz

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

VM Maker: VMMaker-oscog-EstebanLorenzano.230.mcz

commits-2
 
Esteban Lorenzano uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-oscog-EstebanLorenzano.230.mcz

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

Name: VMMaker-oscog-EstebanLorenzano.230
Author: EstebanLorenzano
Time: 18 January 2013, 12:13:03.095 pm
UUID: 63ec32ab-a5a1-4a4e-b9d9-39e8b871f3e1
Ancestors: VMMaker-oscog-EstebanLorenzano.229

- fixed a SerialPlugin typo (Thanks Luc)

=============== Diff against VMMaker-oscog-EstebanLorenzano.229 ===============

Item was changed:
  ----- Method: SerialPlugin>>primitiveSerialPortOpenByName:baudRate:stopBitsType:parityType:dataBits:inFlowControlType:outFlowControlType:xOnByte:xOffByte: (in category 'primitives') -----
  primitiveSerialPortOpenByName: portName baudRate: baudRate stopBitsType: stopBitsType parityType: parityType dataBits: dataBits inFlowControlType: inFlowControl outFlowControlType: outFlowControl xOnByte: xOnChar xOffByte: xOffChar
  <var: #port type: 'char *'>
 
  | port portNameSize |
 
  self primitive: 'primitiveSerialPortOpenByName'
  parameters: #(String SmallInteger SmallInteger SmallInteger SmallInteger SmallInteger SmallInteger SmallInteger SmallInteger ).
 
  portNameSize := interpreterProxy slotSizeOf: (portName asOop: String).
  port := self cCode: 'calloc(portNameSize, sizeof(char))'.
  self cCode: 'memcpy(port, portName, portNameSize)'.
 
  self cCode: 'serialPortOpenByName(
+ port, baudRate, stopBitsType, parityType, dataBits,
- portName, baudRate, stopBitsType, parityType, dataBits,
  inFlowControl, outFlowControl, xOnChar, xOffChar)'.
 
  self free: port.!