VM.r2518/ http://www.mirandabanda.org/files/Cog/VM/VM.r2518/.
CogVM binaries as per VMMaker.oscog-eem.139/r2518.
Add access to VM arguments to Mac. Make Windows, Mac and Unix consistent: Smalltalk getSystemAttribute: -1 => executable name -2 .. -n => VM arguments *including* image (if explicitly supplied). Replace win32 command line parsing with unixesque code using CommandLineToArgvW.
linux launch script: Cope with old linuxes use of /lib/tls hack for an optional thread-local-storage version of libc/libpthread. The launch scripts add /lib/tls:/usr/lib/tls: to LD_LIBRARY_PATH instead of /lib:/usr/lib: if the VM is linked to /lib/tls/libc.
2011/11/29 Eliot Miranda eliot.miranda@gmail.com
-1 => executable name -2 .. -n => VM arguments *including* image (if explicitly
supplied).
Before we had (at least on Linux and I guess with the StackVM):
0 => executable name -1 .. -n => VM arguments *including* image (if explicitly supplied).
Why the need to change that? And what's 0 returning now? The same as 1 (with path)?
Alex
On Tue, Nov 29, 2011 at 11:54 PM, Alexander Lazarević laza@blobworks.comwrote:
2011/11/29 Eliot Miranda eliot.miranda@gmail.com
-1 => executable name -2 .. -n => VM arguments *including* image (if explicitly
supplied).
Before we had (at least on Linux and I guess with the StackVM):
0 => executable name -1 .. -n => VM arguments *including* image (if explicitly
supplied).
Right. And that makes sense.
Why the need to change that? And what's 0 returning now? The same as 1 (with path)?
I wanted all three platforms to be the same (the Mac was not answering any VM parameters at all, and Windows was returning the executable in -1). But I missed that 0 was answering the executable name. It makes no sense for Smalltalk getSystemAttribute: 0 and Smalltalk getSystemAttribute: -1 to answer the same thing. I will change it (back) to
0 => executable name -1 .. -n => VM arguments *including* image (if explicitly supplied).
and do so on all platforms.
Thanks for spotting this.
Alex
2011/11/30 Eliot Miranda eliot.miranda@gmail.com:
and do so on all platforms.
Harmonizing this across all platforms is definitely a GoodThing™! Thanks!
Alex
squeak-dev@lists.squeakfoundation.org