[UPDATES] 2448-2492 -- (for 2.9a) [BUG] [FIX ] sqMacWindows.c

John M McIntosh johnmci at smalltalkconsulting.com
Wed Aug 16 08:10:30 UTC 2000


sqMacWindows.c fixes (sigh)

Ok, I'll add this to the official update stream in a couple of hours after a
wee bit of consolidation and sleep occurs. But for those interested here is
an early fix.

First I managed to break one thing, Apple/command keys didn't work, due to a
bug I introduced in creating the event driven VM.

Second I introduced a feature, er bug. UpTime() the CPU clock passed through
a conversion routine gives me either milliseconds as positive numbers, or
microseconds as negative numbers, depending on the machine. This is bad.
I've changed the code to ask UpTime() for nano-seconds! Then some 64bit
integer math to convert to milliseconds. Why you can't just ask for
milliseconds/microseconds is beyond me, but now the clock is VERY accurate,
and getting the time is 4x faster than in 2.7.

Thus two fixes you'll need before you can really build a 2.9alpha macintosh
VM, and since it's daylight on the other side of the world, I'm hoping a few
macintosh enthusiasts are trying to build one, but without this you won't
get very far.


--
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================
Custom Macintosh programming & various Smalltalk dialects
PGP Key: DSS/Diff/46FC3BE6
Fingerprint=B22F 7D67 92B7 5D52 72D7  E94A EE69 2D21 46FC 3BE6
===========================================================================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/mac-binhex40
Size: 22070 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000816/a95b9552/attachment.hqx


More information about the Squeak-dev mailing list