On Wed, Jun 18, 2008 at 04:10:39AM +0100, S??verin Lemaignan wrote:
Thanks, Dave, for the answer.
A slightly more difficult change would be to add an optional primitive for Unix/Linux that sets the serialPortBaseName string. That would let you control it from Squeak, and would not require any changes to the existing primitives.
That's actually probably what I'll try to do. Stupid question, but where can I fetch the sqUnixSerial.c file (and it's MacOS counterpart)?
Severin,
The sqUnixSerial.c file is part of the external support code (as opposed to the parts that are distributed in the VMMaker package). The external support code is maintained in a Subversion repository at http://squeakvm.org and you will also find it at the various VM home pages. If you are working with Linux for example, just grab one of Ian's distributions on http://squeakvm.org/unix/.
The sqUnixSerial.c file is in platforms/unix/plugins/SerialPlugin. The corresponding support code for other platforms is in e.g. platforms/Mac OS/plugins/serialPlugin.
I don't know enough about Mac OS to give any guidance there, but the support code for SerialPlugin looks like it might be for some older version of Mac OS. I understand that on OS X you can actually use a plugin from the unix sources, but I'm afraid I don't know the details.
Dave