[Vm-dev] primitiveQuit for the Interpreter VM

David T. Lewis lewis at mail.msen.com
Sat Oct 19 19:22:07 UTC 2013

Hi Ian,

Attached are updates to support exit from the VM with an error status. Background
on Mantis http://bugs.squeak.org/view.php?id=7792. The files are:

	Mac OS/vm/sqMacMain.c

Tim has done the updates for Cross and RiscOS, and the iOS tree already has this
support. I will make the update to VMM and generate new ./src for SVN.

I've tested the unix update, and the changes are trivial enough that I would
suggest doing the updates for Windows and Mac at the same time. I'm not sure
how we should handle win32 and Mac tree updates in the future, but if you can
make the updates to all three trees this time around, that would be a good thing.


On Tue, Oct 15, 2013 at 10:56:37AM -0700, tim Rowledge wrote:
> And we need to update the platforms/Cross/sq .h file to add
> sqInt ioExitWithErrorCode(int);
> Then in the plain interp VMMakerpackage InterpreterPrimitives>primitiveQuit becomes
> primitiveQuit
> 	self ioExitWithErrorCode: (argumentCount = 1 ifTrue: [objectMemory integerValueOf: self stackTop] ifFalse: [0])
> Simple. Though we have to get all the platform code updated sensibly synchronously, which always more of a getting everyone organised problem than anything else.
> I've committed the Cross/sq.h and RiscOS/vm/sqRPCMain.c changes. Ian is still caring for the unix code but who able to do the Mac & Windows changes?
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> The enema of my enemy is my friend
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ioExitWithErrorCode.tgz
Type: application/x-gtar
Size: 49465 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131019/c03a6b57/ioExitWithErrorCode-0001.tgz

More information about the Vm-dev mailing list