VM Maker: VMMaker.oscog-VB.2371.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-VB.2371.mcz

commits-2
 
VincentBlondeau uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-VB.2371.mcz

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

Name: VMMaker.oscog-VB.2371
Author: VB
Time: 24 April 2018, 3:49:01.306307 pm
UUID: 669ae833-b22e-8546-83de-385b62f597be
Ancestors: VMMaker.oscog-VB.2370

Add arguments in primitiveIsFileDescriptorATTY

=============== Diff against VMMaker.oscog-VB.2370 ===============

Item was added:
+ ----- Method: FilePlugin>>primitiveIsFileDescriptorATTY (in category 'file primitives') -----
+ primitiveIsFileDescriptorATTY
+ | isStdoutRedirected fd fdPointer |
+ <var: 'fd' type: #int>
+ <export: true>
+ fdPointer := interpreterProxy stackValue: 0.
+ (interpreterProxy isIntegerObject: fdPointer)
+ ifFalse: [^ interpreterProxy primitiveFailFor: PrimErrBadArgument].
+ fd := interpreterProxy integerValueOf: fdPointer.
+ interpreterProxy failed ifTrue: [
+ "Ensure that the appropriate failure code has been set"
+ ^interpreterProxy primitiveFailFor: PrimErrBadArgument].
+ isStdoutRedirected := self
+ cCode: 'sqIsFileDescriptorATTY(fd) '
+ inSmalltalk: [true].
+ interpreterProxy pop: 2.
+ interpreterProxy pushBool: isStdoutRedirected!

Item was removed:
- ----- Method: FilePlugin>>primitiveStdioDescriptorIsATTY (in category 'file primitives') -----
- primitiveStdioDescriptorIsATTY
- | isStdoutRedirected |
- <export: true>
- isStdoutRedirected := self
- cCode: 'sqStdioDescriptorIsATTY() '
- inSmalltalk: [true].
- interpreterProxy pop: 1.
- interpreterProxy pushBool: isStdoutRedirected!