[Vm-dev] OSProcessPlugin:
VMConstruction-Plugins-OSProcessPlugin-dtl.25.mcz
John M McIntosh
johnmci at smalltalkconsulting.com
Mon Jan 3 18:34:55 UTC 2011
On 2011-01-02, at 10:51 PM, Igor Stasenko wrote:
>
> On 3 January 2011 05:01, David T. Lewis <lewis at mail.msen.com> wrote:
>> On Fri, Dec 31, 2010 at 04:25:49PM +0100, Igor Stasenko wrote:
>>> Here is another one, dave :)
>>
>> Thanks Igor!
>>
>> Your fix is in VMConstruction-Plugins-OSProcessPlugin-dtl.26 at SqueakSource/OSProcessPlugin.
>>
>>
>>> after that there will be only argc/argv & printStack will be left to be fixed.
>>>
>>
>>
>> I'm not sure how to handle those. I'm sure John had this working for
>> external OSPP on some of the OS X VMs. Linking may work differently
>> on Mac, but for the unix VM it was just a matter of declaring the
>> variables in main():
>>
>> int main(int argc, char **argv, char **envp)
>> {
>> /* Make parameters global for access from plugins */
>> argCnt= argc;
>> argVec= argv;
>> envVec= envp;
>> ...
>> }
>>
>>
os-x is unix, so it's exactly the same, the main() routine created is made by xcode to contain the cocoa plumbing, I never
added the magic lines above
--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter: squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
===========================================================================
More information about the Vm-dev
mailing list