You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
(27) |
Apr
(11) |
May
(112) |
Jun
(8) |
Jul
(10) |
Aug
(68) |
Sep
(12) |
Oct
(3) |
Nov
(19) |
Dec
(3) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(15) |
Mar
(20) |
Apr
(22) |
May
(131) |
Jun
(27) |
Jul
(19) |
Aug
(207) |
Sep
(61) |
Oct
(27) |
Nov
(28) |
Dec
(21) |
| 2004 |
Jan
(7) |
Feb
(25) |
Mar
(14) |
Apr
(55) |
May
(15) |
Jun
(2) |
Jul
(14) |
Aug
(28) |
Sep
(29) |
Oct
|
Nov
|
Dec
|
|
From: John M M. <jo...@us...> - 2004-09-02 23:10:30
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20482/squeak/platforms/Mac OS/vm/Developer Modified Files: Info-Squeak_VM_OPT__Upgraded_.plist Log Message: 3.7.5b1 Update Index: Info-Squeak_VM_OPT__Upgraded_.plist =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer/Info-Squeak_VM_OPT__Upgraded_.plist,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Info-Squeak_VM_OPT__Upgraded_.plist 18 Feb 2004 06:38:49 -0000 1.1 --- Info-Squeak_VM_OPT__Upgraded_.plist 2 Sep 2004 23:10:19 -0000 1.2 *************** *** 365,369 **** <string>Squeak VM Opt</string> <key>CFBundleGetInfoString</key> ! <string>Squeak VM 3.7.1b3 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>Squeak.icns</string> --- 365,369 ---- <string>Squeak VM Opt</string> <key>CFBundleGetInfoString</key> ! <string>Squeak VM 3.7.5b1 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>Squeak.icns</string> *************** *** 377,385 **** <string>APPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak VM 3.7.1b3</string> <key>CFBundleSignature</key> <string>FAST</string> <key>CFBundleVersion</key> ! <string>3.7.1b3</string> <key>SqueakEncodingType</key> <string>macintosh</string> --- 377,385 ---- <string>APPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak VM 3.7.5b1</string> <key>CFBundleSignature</key> <string>FAST</string> <key>CFBundleVersion</key> ! <string>3.7.5b1</string> <key>SqueakEncodingType</key> <string>macintosh</string> |
|
From: John M M. <jo...@us...> - 2004-09-02 23:10:24
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20320/squeak/platforms/Mac OS/vm/Developer Modified Files: Info-Squeak_VM_Debug__Upgraded_.plist Log Message: 3.7.5b1 Update Index: Info-Squeak_VM_Debug__Upgraded_.plist =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer/Info-Squeak_VM_Debug__Upgraded_.plist,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Info-Squeak_VM_Debug__Upgraded_.plist 18 Feb 2004 06:38:34 -0000 1.1 --- Info-Squeak_VM_Debug__Upgraded_.plist 2 Sep 2004 23:10:11 -0000 1.2 *************** *** 335,339 **** <string>Squeak</string> <key>CFBundleGetInfoString</key> ! <string>Squeak VM 3.7.1b1 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>Squeak.icns</string> --- 335,339 ---- <string>Squeak</string> <key>CFBundleGetInfoString</key> ! <string>Squeak VM 3.7.5b1 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>Squeak.icns</string> *************** *** 347,355 **** <string>APPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak VM 3.7.1b1</string> <key>CFBundleSignature</key> <string>FAST</string> <key>CFBundleVersion</key> ! <string>3.7.1b1</string> <key>SqueakEncodingType</key> <string>UTF-8</string> --- 347,355 ---- <string>APPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak VM 3.7.5b1</string> <key>CFBundleSignature</key> <string>FAST</string> <key>CFBundleVersion</key> ! <string>3.7.5b1</string> <key>SqueakEncodingType</key> <string>UTF-8</string> |
|
From: John M M. <jo...@us...> - 2004-09-02 23:09:59
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20286/squeak/platforms/Mac OS/vm/Developer Modified Files: Info-NPSqueak__Upgraded_.plist Log Message: 3.7.5b1 Update Index: Info-NPSqueak__Upgraded_.plist =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/Developer/Info-NPSqueak__Upgraded_.plist,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Info-NPSqueak__Upgraded_.plist 18 Feb 2004 06:38:22 -0000 1.1 --- Info-NPSqueak__Upgraded_.plist 2 Sep 2004 23:09:50 -0000 1.2 *************** *** 8,12 **** <string>NPSqueak</string> <key>CFBundleGetInfoString</key> ! <string>Squeak Browser Plugin 3.7.1b3 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>resources/ProjectBuilder/SqueakPlugin.icns</string> --- 8,12 ---- <string>NPSqueak</string> <key>CFBundleGetInfoString</key> ! <string>Squeak Browser Plugin 3.7.5b1 http://www.squeak.org </string> <key>CFBundleIconFile</key> <string>resources/ProjectBuilder/SqueakPlugin.icns</string> *************** *** 20,28 **** <string>BRPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak Browser Plugin 3.7.1b3</string> <key>CFBundleSignature</key> <string>MOSS</string> <key>CFBundleVersion</key> ! <string>3.7.1b3</string> <key>SqueakEncodingType</key> <string>macintosh</string> --- 20,28 ---- <string>BRPL</string> <key>CFBundleShortVersionString</key> ! <string>Squeak Browser Plugin 3.7.5b1</string> <key>CFBundleSignature</key> <string>MOSS</string> <key>CFBundleVersion</key> ! <string>3.7.5b1</string> <key>SqueakEncodingType</key> <string>macintosh</string> |
|
From: John M M. <jo...@us...> - 2004-09-02 23:07:33
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19720/squeak/platforms/Mac OS/vm/Documentation Added Files: 3.7.5 Release Notes.rtf Log Message: 3.7.5b1 update --- NEW FILE: 3.7.5 Release Notes.rtf --- {\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fnil\fcharset77 Geneva;\f1\fswiss\fcharset77 Helvetica;\f2\fnil\fcharset77 Monaco; \f3\fnil\fcharset77 LucidaGrande;} {\colortbl;\red255\green255\blue255;\red137\green19\blue21;\red26\green26\blue255;} \margl1440\margr1440\vieww17300\viewh12720\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0\fs24 \cf0 Mac VM 3.7.5 mach-o build for Carbon, and build for Classic. Support for Croquet, support for Safari, pending support for TK4\ Aug 31th, 2004 (3.7.5b1)\ \ Still yet to do, in future versions -> Verify that file delete rename etc works on aliases, not the targets. (Yawn, someday)\ \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ \ 3.7.4 seems a fine VM, from what people tell me, but now we've 3.7.5...\ \ 3.7.5b1 Released to fix issues with 16bit to 32bit display color mapping\ \ Cleanup of compiler warning message.\ sqMacAsyncFilePrims.c, sqMacOpenGL.c, sqMacDragDrop.c, sqMacDirectory.c, \ sqMacInternetConfiguration.c, sqMacJoystickAndtablet.c, sqMacMIDI.c, sqMacSecurity.c,\ sqMacSerialPort.c, sqMacNetwork.c, sqMacSound.c, sqMacUUID.c, sqMacEnconding.c,\ sqMacFileLogic.c, sqMacImageIO.c, sqMacMain.c, sqMacMemory.c, sqMacNSPlugin.c,\ sqMacTime.c, sqMacUIAppleEvents.c, sqMacUIClipBoard.c, sqPlatformSpecific.h\ \ sqMacUIEvents.c\ Prework for multiple window support, use event supplied window versus stWindow. \ Change os-9 behavior to bring window to front swallow click\ Change os-x behavior to bring window to front swallow click\ \ sqMacWindow.c\ Prework for multiple window support, use getSTWindow() call versus stWindow. \ Use lookup table to properly map 5bit color space to 8bit color space. Some crummy code was introduced in 3.6.1b3\ which did a poor job of color space transformation (16->32bit).\ \ sqMacExternalPrims.c\ Alter load logic to use kCFURLPOSIXPathStyle path name versus hfs path name. \ Alter load logic for frameworks to look in User, Network, Local, System domains for framework,\ before we would only look in the System domain. This allows frameworks at the user domain scope.\ \ Cleanup of squeak window references pending multiple window support\ \ 3.7.4b3 Released to fix issues in Netscape plugin code\ FIX PROBLEM that triggers image read failure on G5 machines. This prevents image from running on G5 machines.\ Problem shows up as browser crash or failure to start squeakland project.\ \ 3.7.4b2 Released to fix issues in Netscape plugin code\ Do not start timers until later in the image start, this prevents failure if image doesn't load\ Support failureURL and imageName embed html tags\ \ 3.7.4b1 primitive Function Pointer goes into method cache logic, better lookup times.\ Force Interrupt Check logic in VM to fix most/all? issues with tight loops and keyboard interrupt logic.\ more sanity checks in displayBitsOfLeftTopRightBottom\ cleanup of flushExternalPrimitiveOf\ cleanup of oopFromChunk\ refactor pop then push to pop:thenPush:\ lookupMethodInDictionary refactor to make one loop looking, versus perhaps two.\ mark/sweep logic or type, versus adding type (or is correct math)\ dispatchFunctionPointer logic\ rework primitiveScanCharacters logic\ add parm to VMparms to set interruptChecksEveryNms\ Fix bug in primitiveYield\ \ LargeIntegersPlugin add normalization logic\ \ ZipPlugin added primitiveUpdateAdler32 primitive\ \ 3.7.3b4 Numerous changes for Unicode file name support, and proper support for keyup/keydown on os-x. \ \ sqVirtualMachine.c VM_PROXY_MINOR set to 6 to support isArray = isArray;\ \ interp.c New VMMaker code update, major change is to use dispatchFunctionPointerOnin logic to dispatch \ primitive calls, versus going via a jumptable/case statement. Also Tim reviewed the usage of the \ millisecond clock and improved things so we don't need to check the clock on every prim call. This \ makes the RISC and other platforms faster. However it only has minor effect on the os-x carbon VM \ because of how the cheap millisecond clock is implemented.\ \ sqMacDirectory.c Change dir_Lookup // HFS+ imposes Unicode2.1 decomposed UTF-8 encoding on all path elements\ Per request from \f1 Tetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}>\ \ sqMacEncoding.c Alter SetVMPath() \f0 per request from \f1 Tetsuya HAYASHI , \ add support for \f2\fs20 \CocoaLigature0 \ \cf2 "ShiftJIS"\cf0 kCFStringEncodingShiftJIS\ \f1\fs24 \CocoaLigature1 \ sqMacFileLogic.c Alter makeFSSpec(), get kCFStringNormalizationFormD path name\ Alter PathToFile(), get kCFStringNormalizationFormKC path name\ Alter QuicklyMakePath() get kCFStringNormalizationFormKC path name\ New routine unicode2NativePascalString()\ Alter makeOSXPath, get kCFStringNormalizationFormKD path name \f0 \ Alter resolveLongName, get kCFStringNormalizationFormKC path name\ Alter FSMakeFSSpecCompat(), call \f1 unicode2NativePascalString to normalize path name \f0 \ \ sqMacMemory.c Allow browser plugin to allocate 512MB of VM space for image under os-x. \ \ sqMacUIAppleEvents.c Use CFStringGetSystemEncoding versus suggested plist.info suggestion because the encoding info is quite right yet at\ this point in the startup time.\ \ sqMacUIEvents.c Key Up is now reported as an event when the key is released. Earlier os-x carbon VMs would report the key up after the\ keystroke was processed by Text Services, which was incorrect. We also deal with Key repeat correctly and don't send\ another key down event. This change has made it possible to properly support Morphic games where key up/down state is\ important to game interaction. \ \ sqMacWindow.c Fix crash in ShowWindow(). This was due to a pthread race condition between the UI thread and interp.c. \ Fixed by using UI callback to handle the show screen call. Would show up as a crash before window appeared.\ \ 3.7.3bx Earlier versions of 3.7.3 were released to confirm the file changes for Japanese users worked correctly, and to \ confirm that the keyUp logic changes worked as desired.\ \ 3.7.2b1 Changes for NPSqueak to fix issues with full screen mode under Safari 1.2 (V125) \ Usage of VMMaker3-7b2 to build interp.c\ Unicode values now come up from the classic VM versus the historical (1984) keycode values, this makes Tweak work.\ \ 3.7.1b2 \ JPEG READER WRITER\ usage of Apple '-fast' uncovered a source code issue, initialization routines for internal jpeg plugin were not returning true or false, before this was kinda of considered as true. But when compiled with -fast it's zero, meaning the inialization failed, but that is bogus.\ \ 3.7.1b1\ Use of "-fast" apple gcc 3.3 compiler option, improves sends by significant %\ \f1 On EventKeyUp/EventKeyDown you get the UniCode On EventKeyChar you get the UniCode->MacRoman translated character.\ Broke high bit ascii macroman in 3.7.0bx.\ For multi-byte character input you get EventKeyDown/EventKeyChar/EventKeyUp for each unicode character coming from the input sequence.\ \f0 \ 3.7.0b2 \ \f1 a) You can alter the application's Info.plist by setting the SqueakEncodingType using the ICANA readable names\ \ macintosh - >macRoman \ UTF-8 -> UTF-8\ \ b) Support for sqSocketListenOnPortBacklogSizeInterface, which allows you to specify the interface to use for the listen should work both for os-x and os-9.\ c) Usage of VMMaker3-7a2.\ d) Special change sets: make primitive point x/y internal, and slightly faster activate.\ \f0 \ 3.7.0b1 \ \f1 Changes for the "m17n" package fromTetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}> so one can type Kanji characters.\ \ \f0 3.6.1b7 \ SqMacWindow.c Fix for new rending code when used with 2.8 or earlier images, mouse clicks reported in wrong place\ \ 3.6.1b6\ SqMacWindow.c Enable 8bit all modes of 8 bit rendering\ \ 3.6.1b5\ SqMacWindow.c Enable 8bit support for 8->8 8->16 8->32 \ \ 3.6.1b4\ SqMacWindow.c Fix issues with title bar height calculation, was using the wrong window region to do this. Also failed \ for full screen usage. Tinkered a bit with ioDisplay moving bytes, now do <=32 bytes directly. \ 3.6.1b3\ SqMacWindow.c Alter logic to allow for 16->32 and 32->16 mapping using direct copy logic. Workaround for \ os-x 10.3.0 copybits bug. Released for limited testing. Awaiting real fix from Apple.\ \ 3.6.1b2\ SqMacWindow.c Alter to use unix direct port bit copy versus copybits to get around a crash caused by a bug\ in os-x 10.3.0 copybits. Released for limited testing\ \ 3.6.0b2\ Build from about to be offical 3.6.0 VM, Balloon & VM Maker source.\ Added in \ ArraysToGlobalStruct-JMM.1.cs\ ?3.7 Status unknown, but makes better interp.c interpreter loop code (silly optimizer).\ FasterCopyLoop-JMM.4.cs\ FasterCopyLoopPart2-JMM.2.cs\ ?3.7 Status unknown, but makes drawing 20%+ faster due to better PowerPC code optimizations\ FasterLookupMethod-JMM.1.cs\ ?3.7 Status unknown, but makes method lookup a bit faster. \ MakePrimPointXInternal-JMM.1.cs\ ?3.7 Status unknown, but makes point x/y access faster.\ \ SlightlyFasterActivate-JMM.3.cs\ Rolled into 3.7\ \ You need 3.5.3b1 for Safari plugin support\ \ 3.5.3b1 (browser plugin)\ Fixed issues with IE drawing and crashs related to screen updating in non-thread safe IE.\ \ 3.5.2b6\ Fixed issues with plugin discovery for netscape plugin \ 3.5.2b5\ Fixed primitive dispatch to use gnuified jump table. \ \ 3.5.2b4 \ Fix issue with race on open doc events and squeak VM Thread for drag and drop support when starting squeak\ For os-x expose primitivePluginBrowserReady, not the rest of the URL browser primitives, they don't work in Safari\ For system attribute 1003 return powerpc versus PowerPC to match unix VM\ Start timers later in the VM startup logic, after reading the image, versus before.\ sqMacNSPlugin.c - Look for Squeak folder in User, local, Network, System domains versus just User.\ sqMacTime.c - Use old delay logic (1ms accurate), versus aioPoll (10ms accurate).\ sqMacUIEvents.c - Only create PowerManagerDefeatTimer tick routine if power manager tapping is required which is only os-9 anyways.\ sqMacUIMenuBar.c - Draw menu bar later in startup, after we change it, save 200+ms\ BitBltPlugin.c - alphaSourceBlendBits16 Use table lookup which is 90% faster\ - copyLoopNoSource, roll constants into register versus recalculating.\ \ 3.5.2b2 \ Fix applescript document handling logic to prevent overrunning the drag/drop logic via the command line open cmd by using a spin loop\ to ensure Squeak has sufficent time to read the file name. \ \ 3.5.2b1 \ Changed the bitBlt copyloop logic to use locals in safe places, versus globals. This improves drawing by 5%.\ Major change is usage of GCC 3.3, versus GCC 2.95.x This increases send/second by about 8%.\ \ \ 3.5.1b5 Added some more user changeable attributes, and changed some window behaviour when floating\ OS-x Version only \ SqueakWindowHasTitle - (Yes/No) yes if window should get title.\ SqueakFloatingWindowGetsFocus (Yes/No) yes if window should allow click and type if floating.\ SqueakMaxHeapSize - (Number) set to 512K, max size for os-x memory heap. Note changing this to 1GB may or may not cause a \ core dump depending on where os-x allocates the memory segment above or below the 2GB boundary. \ \ sqMacUIEvents.c - set keyboard focus to floating window if required, do not hide floating window when we go to full screen mode.\ sqMacWindows.c - watch out for memory leak when we free the color table. \ \ 3.5.1b4 Please note the major changes to network code in 3.5.1b2\ a)Added options SqueakWindowType & SqueakWIndowAttributes to info.plist. The SqueakWindowType of 6 is the standard document window, a type of 8 is the floating utility window. The attributes control with window attributes and behavior according to\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f1 \cf3 \ul \ulc3 http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/WindowManager/Window_Manager/wind_mgr_ref/constant_2.html#//apple_ref/c/tdef/WindowAttributes\ &\cf0 \ulnone \ \cf3 \ul http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/WindowManager/Window_Manager/wind_mgr_ref/constant_1.html#//apple_ref/doc/c_ref/WindowClass\cf0 \ulnone \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 b) Sockets are not valid if the network is not initialized. \ c) The os-9 vm can return the open file error in the vm attribute data 1202\ d) MyWindowEventMouseHandler was leaking region handles.\ e) Support for primitiveClosureValue, primitiveClosureValueWithArgs, primitiveExecuteMethod\ f) when rootTableCount goes > 2400 then allocationCount gets allocationsBetweenGCs + 1 \ g) BitBlt Alpha Blending has changed\ h) Added primitiveWrite24BmpLine\ i) The guard if statement for primitiveSerialPortRead was flawed, noted the buffer overflow, but then proceeded, versus returning. \ \ 3.5.1b3 \ a) Fix, Stephane Ducasse <du...@ia...> pointed out that using a virtual desktop we had a crash in ioSetFullScreen. This \ was due to a pthread race condition between the UI thread and interp.c. Fixed by using UI callback to handle fullscreen window/move/resize.\ \ 3.5.1b2\ a) Switch to aio.h logic and unix socket logic! This is a MAJOR change!!!!\ \ b) Call aioPoll (select()) to cause process wait versus old pthread logic. This follows in the footsteps of the unix port. You should verify that \ cpu time when squeak is idle is not affected in a dreadful manner.\ c) Fix, if you call does this directory exists on a file now you will get an error which will signal that the directory does not exist. This ensures\ the FileDirectory test suite works. \ d) Fix, if you quit the browser plugin, check the status of the pthread_cancel before attempting the pthread_join\ \ 3.5.1b1 limited distribution\ \ 3.5.0b4 \ a) os-x exposed an issue with EToyPeerToPeer support. It seems under os-x we get the connect, data, close so fast on lans that by the \ time we get around to asking for the remote IP address the connection is closed, and our open transport call fails. We change SqMacNetwork.c to \ return the IP address discovered at connect time in this case. Under os-9 we never saw this behavior because we suspect the network activity \ was slower and more serialized. \ \ 3.5.0b3 (Safari support)\ \ a) The plugin logic was changed to support Safari and better support os-x. This required building a CFM stub to load the mach-o compiled\ NSPLugin. The mach-o plugin now uses a pthread for the interp.c loop. This gives much better performance and user UI feedback. \ b) The GC logic was carefully reworked to optimize the assembler on the ppc. This gave us upwards of a 30-50% improvement, since \ incremental GC is going on all the time, this change actually has a effect you can see say in the solitaire example where we save 10%. \ c) sqMacNetwork.c was modified, first change in many years. The remote address and port number are requested as an async operation. \ The operation times out after a few milliseconds. This was never a problem in os-9. Now it seems there is an issue sometimes for DHCP clients\ on os-x. There the operation can timeout and return 0 as the address or port. We changed the call to do a sync operation to avoid a timeout.\ d) sqMacMain.c was modified to allow for pthreads for mach-o netscape based squeakland plugin support\ e) sqMacMemory.c changes for mach-o plugin support\ f) sqMacTime.c changes for mach-o plugin support\ g) sqMacUIEvents.c changes for mach-o plugin support\ h) sqMacWindow.c changes for mach-o plugin support \ i) npmac.cpp now this is a netscape glue routine, I changed it to ensure we can see the entry points, originally they are C++, but need \ to be "C" so the loader can find the names the CFM glue routine is looking for. Also we add the logic TV2FP to setup the mach-0 to CFM code stubs to allow the mach-o plugin to callback to the CFM stubs in Safari. \ j) sqMacNSPlugin.c \ 1) Rearrange when the interpret() thread is started to ensure a race condition doesn't happen.\ 2) use Pthreads for the mach-o osx version. \ 3) rework NPP_SetWindow to start interpret() when needed. \ 4) Alter StartDraw, EndDraw to use a mutex lock and handle os-x port locking to prevent races between pthreads.\ 5) Alter ioShowDisplay, optimization and handle os-x\ 6) fix ioSetFullScreen to make it work on Safari\ 7) fix OpenFileReadOnly to make it work on os-x, needed sqFileNameFromStringOpen macro call\ 8) Alter ExitCleanup to mutex lock to prevent race ending issues, and add a bit more cleanup\ \ \ \ Note some versions of 3.4.1 were distributed for testing only, these are superseded by 3.5.0\ \ 3.4.0b2 (Croquet support)\ \ a) Ensure vmVersion information reports correct information, was bogus in 3.4.0b1\ \ 3.4.0b1 (Croquet support)\ a) Added plugin BMPReadWriterPlugin 14 November 2002 (i)\ b) B3DAcceleratorPlugin.c gets primitiveCreateRendererFlags (new api)\ c) two more op codes get added to BitBltPlugin (fixAlphawith, pixClearwith)\ d) Squeak3D gets (b3dOrthoNormInverseMatrix, b3dTransformDirection,b3dTransformPoint,b3dTransposeMatrix)\ e) The scroll wheel mouse logic was using apple cmd key as the modifier on the arrow key events, Other platforms use the Control key. So the \ mac falls in line (changed to use the control-key)\ \ \ Notes About previous VM.\ 3.2.6 VM classic have an issue when the tickcount clock goes over 0x7FFFFFFF, about 24 days. \ This exhibits itself when Squeak won't accept user input, or allow you to switch under os 9 or earlier after 24 days,\ or starting a Squeak image hangs during the initial screen painting.\ Restarting the mac solved these problems. Force quitting Squeak does not.\ This is fixed in 3.2.7b3\ \ Some issues with alias files and folder were fixed in 3.2.7b6 and 3.2.8b3\ \ 3.2.8b9\ a) recompiled os-x version, 3.2.8b8 seem to have a bad compiler option and gave 20% less performance.\ \ 3.2.8b8\ a) exposed \f1 vmParameter \f0 24 & 25 which control how memory is allocated/freed \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f1 \cf0 Smalltalk vmParameterAt: 24 put: 48*1024*1024.\ Smalltalk vmParameterAt: 25 put: 24*1024*1024.\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 b) Added argv,argc, env variables to main\ c) Fixed for Jaguar 10.2. Full screen mode cmd-tab broke menu bar hiding, this is a 10.2 bug\ d) Added support for IP_ADD/DROPMEMBERSHIP and the ability to bind to the wild card port (0).\ e) OpenGL changes for TEA\ \ 3.2.8b7 was testing release and not distributed to the public.\ 3.2.8b6 was testing release and not distributed to the public.\ 3.2.8b5\ a) Oops broke the logic returning the vmversion information in classic. Also incremented os-x version (which was fine) to keep numbers in sync\ \ 3.2.8b3 The squeak.sourceforge.net CVS tree was reorganized and the project builder project revamped. The \ major change to the source was upgrading the netscape browser plugin to 3.2.7b6 levels.\ \ a) Gnunifer.3.cs Changed to add register var on FOO_REG and to remove sqGnu.h file embedded in method.\ b) sqMacDirectory.c Add logic to handle case of building as CFM carbon plugin under CW6, needed some carbon calls\ c) osExports.c needed to ifdef out the getUIToLock entry point (not available as CFM carbon browser plugin)\ d) sqMacFileLogic.c Fix alias problem. Add logic to deal with path names as CFM carbon browser plugin, ensure vmPath is correct.\ e) sqMacImageIO.c Cast to get rid of warning message\ f) sqMacMain.c Cast to get rid of warning message, Check for CFM Carbon and bundle check. Revise vm parm 1201 code to return long file names are ok as CFM carbon browser plugin. Some diagnostic routines for printing to the console as CFM carbon browser plugin.\ g) sqMacMemory.c Logic change as CFM carbon browser plugin.\ h) sqNSPlugin.c Fix to beginFullScreen logic (carbon call is broken?)\ i) sqMacUIEvents.c Remove getUIToLock dummy call. This entry point should only exist for mach-o carbon builds. Not CFM carbon browser plugins\ j) sqMacWindow.c Use old call to create window when a CW 5 carbon application.\ k) sqPlatformSpecific.h Change #ifdef to correct logic error when building as CFM carbon browser plugin under CW 5.\ \ \ \ May 31st, 2002 (3.2.7b6)\ For 3.2.7\ \ 3.2.7b3 We build the VM using patchs to enable globals as a structure. This improves performance by 10%\ \ a) Classic Vm builders might need to add "struct foo *foo = &fum; " to int interpret(void). \ b) readme: add notes about changesets and alter build instructions\ c) sqMacFileLogic.c: use accessors for interp.c globals\ d) sqMacMain.c: use accessors for interp.c globals. Also Alain Fischer added logic to fetch os-x version number and to enable you to put squeak.image in the resource folder for autostarting.\ e) sqMacTime.h: Fix busted lowresclock again. After 24 days of mac uptime, 3.2.6 squeak will hang.\ f) sqMacUIEvents.h: use accessors for interp.c globals.\ g) sqPlatformSpecific.h: alter sqFTruncate to use fileno() as needed.\ h) sqMacWindow.c: use accessors for interp.c globals.\ i) 3.2.7b5 sqMacFileLogic.c: change vmpath to resolve to classic VM if vm is moved from MacOSClassic folder\ j) Misc changes for Netscape plugin support\ k) Introduce osExports.c logic\ l) 3.2.7b6 Fixed a problem in path name resolving need to use UTF8 to properly interact with high ascii characters\ m) 3.2.7b6 Fixed a problem in path name resolving there was a bug with certain types of alias path name combinations in quick name resolving.\ \ Mac VM 3.2.6 mach-o build for Carbon, and build for Classic.\ March 14th, 2002\ Still yet to do, in future versions.\ Verify that file delete rename etc works on aliases, not the targets.\ \ You will need mach-o os-x bundle plugins to work with this VM. example -> \f3 mpeg3Plugin.bundle.\ Old carbon non-bundled plugins will not work, but keep reading to understand where classic \ plugins still are needed.\ \f0 \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ Notes About previous VM.\ 3.2.6b6 Classic or earlier has a bug that makes it stop collecting user input on a 19.88 hour cycle depending on reboot time.\ Seems many systems don't run for more than 19 hours so we've not had major complains about this issue. \ Bug was introduced in 3.2.1.\ 3.2.5 has a bug that prevents the use of accented characters without \ a image patch to fix a VM issue (not an issue in 3.2.4). Also you can't enter an double keystroke characters, ie ^ \ which makes life difficult. It also does not support the AppleScript Plugin (not an issue in 3.2.4)\ 3.2.4 a bug in project builder introduced a performance problem (bad compiler options).\ \ See the 3.2.5 about why this 3.2.6 is different inside.\ \ For 3.2.6:\ a) Change an internal number that dictates how often pending interrupts should be looked at from 5ms to 3ms This improves \ delay accuracy.\ b) Change how sleeping is done when squeak is idle. This reduces CPU consumption, and improves Delay accuracy.\ c) Fix bug with high bit problem with keyboard (accented characters are ok now)\ c2) 3.2.6b6 has fixed characters that require multiple key strokes to enter.\ d) Externals that make UI interactions (IE AppleScript) Must now make a call back to the VM to schedule\ the main thread to do the call that will invoke UI interaction to prevent a deadlock in Carbon between threads. \ See the OSAExecute call in the AppleScript plugin for details.\ e) If you run a classic mac VM more than 23.x days nonstop it will stop responding to UI events. Ensure clocks get anded with 536870911.\ f) signal inputSemaphoreIndex because we are mulithreaded. Not that it does anything for us yet...\ g) 3.2.6b6 Pass the unicode value of the keystroke up as the EventKeyDown/EventKeyUp data, versus mackeyboard code.\ h) Somewhere there is a bug with mktime + time, so use the unix code of time+localtime+gmt \ i) Change iorelinquishPrcessorForMicroseconds to sleep the quatum between now and wakeup time. Also schedule a\ check for interrupts if wakeup time is now or in the past. This improves delay accuracy. For OS-x this was a big deal,\ for os-9 it improves things by 1 or 2ms. Also in os-x we sleep more when idle so CPU usage goes down.\ j) On OS-9 umap AND free the VM backing store. Just doing the free doesn't work and you lose 128Mb of disk space until you reboot\ k) 3.2.6b7 for post event processing ignore mouse move/drag/or scroll wheel events. These are ignored by the open/gl plugin and only suck a major amount of CPU time to process in the post event processing logic. \ l) 3.2.6b8 (3.2.6b4 classic) removed call to uncouple shift keys introduced in 3.2.1. This causes some macs after sleeping not to respond to keyboard input\ m) 3.2.6b8 (3.2.5b7 classic) added function for ioLowResMSecs to avoid early bit overflow. Rework clock checking in ioHandleEvents to handle clock rollovers properly.\ \ Mac VM 3.2.5 mach-o build for Carbon, and build for Classic.\ March 4th, 2002\ Still yet to do, in future versions.\ Verify that file delete rename etc works on aliases, not the targets.\ \ You will need mach-o os-x bundle plugins to work with this VM. example -> \f3 mpeg3Plugin.bundle.\ Old carbon non-bundled plugins will not work, but keep reading to understand where classic \ plugins still are needed.\ \f0 \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ \ Beware this version of the VM is significantly different inside! \ \ \pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural \f1 \cf0 a) Broke sqMacWindow.c into 10 different files by function type.\ \ b) Moved most of the memory allocation logic out of sqMacMain.c into sqMacMemory.c. and ensure memory is freed when Squeak is terminated. \ The major change in this code is support for OS 9.x virtual memory mapping. This only applies to Mac OS 9.2.0 or higher, excluding os-x. It appears Mac OS 9.1 has a bug that prevents this feature from working.\ \ For images that require less than 128MB of memory, mapping is used to allow the image to grow/shrink to the 128MB boundary, therefore you can change the application memory size to about 2MB. \ \ For images that require more than 128MB then change the application memory size to > 128MB and mapping will not occur. \ \ If mapping is not available because virtual memory is turned off or the api is not supported by the macintosh OS then mapping is not used. Note that mapping is not support under the classic os-9.x environment under OS-X, however in this case you should be using the OS-X version of Squeak, not the classic version.\ \ c) Use of Carbon event logic for OS-X only. This is a major structural change. \ \ It also encouraged the use of a pthread for interp.c. \ \ All user interaction with the VM follows a new code path, so problems with keyboard or mouse input should be reported asap. Also any issues with application switching, windows being brought to the foreground or sent to the background and usage of the full screen logic should be reported asap.\ \ As part of this change I have build in support for scroll-wheeled multi-button mice under os-x. Thanks to Doug Way for testing this for me. Maybe someone can post to the list what their favorite 3 button scroll wheeled mouse/trackball is.\ \ d) Use of a carbon call to get the dominate Device if you have multiple screens. People with multiple screens should confirm window resizing, full screen on/off works as expected.\ \ e) Corrected comment in sqMacFileLogic.c\ \ f) Changes to sqMacNSPlugin.c. This makes it compile, but it's not usable yet.\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 \ \ Feb 20th 2002 3.2.4\ \ For this version of the VM I have migrated towards using OS-9 packages. This allows us to provide one \ folder/package that supports os-x and previous operating system versions.\ \ Given Squeak 3.2.4Beta1.app\ The classic VM is found in the *.app:Contents:MacOSClassic, with an alias in *.app:\ The mach-o OS-X VM is found in *.app.Contents:MacOS\ \ If you are running OS-9 then clicking on the *.app or doing drag and drop will just run Squeak, same applies for OS-X.\ If you are running OS-7.5.5 or OS-8.x then the *.app package will appear as a folder, just open and click on the alias within. \ Note that if you want to use classic plugins I suspect you need to put them in the MacOSClassic Folder beside the VM. \ Bundles for os-x go in the same location as the *.app application package.\ \ Changes\ a) Drag and drop at open time with image file that has no meta type, will now open the image, versus prompting you.\ b) Use an os-x window attribute at open time to signal that the window should not be moved by the dock when you go to full screen.\ c) Fix window update logic to use window that needs updating versus stwindowg to fix issues with print dialog windows in classic. \ d) bitblt gets recompile to pickup fixes posted in 3.2 update stream.\ \ Feb 5th 2002 3.2.3\ Changes\ \ a) use old extended time manger to update psudeo-TickCount, versus sigalrm. siglarm make sound recording not work.\ b) fiddle with sound recording and make it work.\ \ Jan 2002 3.2.2\ Changes:\ \ a) AsyncFilePlugin.c Use global to remember security function entry point for performance reasons\ b) FilePlugin.c Use global to remember security function entry point for performance reasons\ c) interp.c Use squeakFileOffsetType versus off_t and add a bunch of checks to handle lack of long long and conversion errors between 64/32 bit integers and LargeInteger objects\ d) readme, it's http://www.mucow.com/Gnuifier.1.cs \ e) SocketPlugin.c Use global to remember security function entry point for performance reasons\ f) sq.h added default sqFilenameFromStringOpen and sqTruncate\ g) sqFilePluginBasicPrims.c revert to anti specs, but ensure #def to fseeko and ftello for 64 bit aware file systems.\ h) sqMacDirectory.c A bit more error checking on bad file names\ i) sqMacFileLogic.c Folders size is now zero in classic, and a bit more checking on bad file names\ j) sqMacSound.c Fixed a problem with sound recording in classic due to a change made in Sept. But sound recording still does not work under os-x\ k) sqMacWindow.c two very important changes:\ \ 1) You can now do FFI calls with the FFI bundle plugin to Mach-o frameworks. \ However you need to rework your api calls. For example:\ apiGetMousePoint: aMacPoint was\ <apicall: void 'GetMouse' (MacPoint*) module:'InterfaceLib'>\ It now is:\ <apicall: void 'GetMouse' (MacPoint*) module:'Carbon.framework'>\ \ If you review /System/Library/Frameworks I'm sure you can come up with interesting ways to \ make mac only squeak images.\ \ I now use map( NULL, gMaxHeapSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED,-1,0);\ anonymous memory mapping to 512MB as the squeak memory block. The VM can then grow or shrink\ within the 512MB block, I just move a pointer. \ \ Note in 3.2.1 a slight error on my part restricted Squeak to 50MB. I am of course\ interested to hear about issues with my choice of 512MB. Note a Squeak VM is limited to 2GB under perfect \ conditions, however if any part of the image crosses the 2GB boundary the VM will fail, right now 512MB\ seemed a safe choice.\ \ PhysMem: 60.2M wired, 78.6M active, 412M inactive, 551M used, 217M free\ VM: 3.03G + 55.3M 7847(0) pageins, 1(0) pageouts \ PID COMMAND %CPU TIME #TH #PRTS #DREGS RPRVT RSHRD RSIZE VSIZE\ 422 Squeak VM 0.8% 0:35.59 2 71 100 23.3M 8.53M 26.5M 571M\ \ but I only have one 80,000,000 byte swap file in /var/vm\ \ Note if you turn crash reporter on, then if the VM crashes a nice report should be generated in your log directory. See the Apple documentation for a description of this feature, currently it is set in OS-X 10.1.x via the preferences window for the Console Application. If you have a crash with this VM, please recreate and post the crash log (found in Users/foobar/Library/Logs/ to the Squeak mailing list so we can continue to make the VM fault tolerant.\ \ 3.2.1 Notes\ \ You might need these change sets to build a new VM or to use all the features of this VM with your image, hopefully these will get into the pending 3.2.x image.\ \ Fixes and feature extensions.\ AsyncFileFixFu...hName-JMM.1.cs fix for async test method.\ DragAndDropAtStart-JMM.5.cs fix to enable drag and drop at startup\ \ Needed to compile a VM with VMMaker\ LargeFiles-JMM.3.cs Enable large file support, files > 2GB\ \ Needed to turn this feature on\ MacLongFileName-JMM.5.cs Enable long file names on the mac\ \ The SUnit\ MacLongFileNamesSUnits-JMM.3.cs Test long file names and long directory names and large file support\ \ Kinda optional features some people might need.\ InternetConfiguration-JMM.5.cs Allow internet configuration information access, internal plugin\ UUID-JMM.3.cs Allow UUID generation, internal plugin\ \ a) The ability to get back a UUID. This uses the hosting UUID generator if the\ hosting OS supports it and we have a primitive we can call. If not then we generate\ a type 4 version of a UUID (the random bits one).\ (This requires a special change set)\ \ b) Ability to start squeak on the mac by dragging multiple documents onto the\ image, or drag and drop of stuff onto the running VM icon.\ (This requires a special change set)\ \ c) Usage of the Internet Configuration tool kit to supply information about\ what the mac proxy is etc. etc.\ (This requires a special change set)\ \ d) Migrate file system to use 64 bits. This allows you to read/write and seek\ with files > 2 GB. This includes a change to the VM to convert from/to long\ long integers. It also allows the file system to actually deal with 2GB files,\ the current file interface actually fails once the file exceeds 1GB.\ \ e) For the carbon based Squeak VM we now support long file names 255\ characters. Close both eyes and touch everywhere the mac VM deals with file\ name paths and hope for the best (Actually we write an Sunit to ensure we've\ not broken everything). This also includes the ability to put an image in a\ long file name directory, but right now the image name must stay under 32 characters.\ \ FilePlugin.c changes to support large integers.\ FilePlugin.h changes\ sq.h changes to support large files.\ sqConfig.h changes to resolve some conflicts.\ sqFilePluginBasicPrims.c changes to support large files.\ sqMacAsyncFilePrims.c changes to use fspec versus 255 file path.\ sqMacDirectory.c changes to use hosting OS (OS-X) bsd create and delete directory\ and truncate. dir_look changes as part of the general rewrite.\ sqMacDragAndDrop.c use new call to get path name from fsspec. Use fsspec more, and added \ interface code to setup drag and drop of items at application startup time. max document name\ goes to 1000 characters.\ sqMacFileLogic.c Mostly rewrote!\ sqMacSecurity.c use new file calls.\ sqMacWindow.c \ increase size of vmpath, docpath, imagepath to 1000 chars, shortname to 255 characters.\ add logic for left/right modifier keys \ reworked LoadLibViaPath logic \ sqImageFileOpen uses fsspec versus 255 path name.\ sqImageFileStartLocation uses ffspec.\ bundle support for bundles\ \ e2) interp.c supports get/put of large integers to long long integers.\ e3) fixed fTruncate\ \ Hint getting this to work was a pain. Think of 255 character folder names and nested aliases,\ folder 1 refers to folder 2 which then refers to folder 1 again, just go down the path say 8 times,\ then ask to create a file or directory!\ \ f) Support to change the Mac screen resolution under Squeak control.\ \ g) Fix to unload/load the scrap at startup time to ensure the clipboard is\ correct when starting up the VM.\ \ h) Uncouple the shift key and left/right shift keys on old extended keyboard.\ Also add a call to get which keys are currently pressed on a USB keyboard or\ the USB codes for an apple non-usb keyboard. (Note this isn't working quite yet under OS-X)\ \ i) Changes to enable us to compile the VM under Apple's OS-X Project Builder\ environments.\ \ j) Some rewriting to ensure serial and midi support can be written as external\ plugins.\ \ k) Fiddling to get sound input to work under OS-X\ \ l) Platform.exports changed macintosh to macintoshSqueak to avoid conflict.\ \ m) Memory is allocated at 50MB at start, then will grow or shrink, verus previous carbon apps\ that did 1GB. \ \ n) sqPlatformSpecific.h changes to support long file names and os-x posix file names\ \ o) sqVirtualmachine.c & sqVirtualmachine.h\ #if VM_PROXY_MINOR > 4\ VM->positive64BitIntegerFor = positive64BitIntegerFor;\ VM->positive64BitValueOf = positive64BitValueOf;\ VM->signed64BitIntegerFor = signed64BitIntegerFor;\ VM->signed64BitValueOf = signed64BitValueOf;\ #endif\ \ Beware this causes an interesting problem, if you compile plugins with VM_PROXY_MINOR now set to 5, then they will not work with older VMs. The solution is to define the VM_PROXY_MINOR in the plugin to the value that indicates what features it is using.\ \ p) Changed to use ITimer logic as a 16ms lowres timer to improve performance\ \ q) Changed to use single thread, no thread manager.\ \ r) Changed to use lowres timer in checking for polling time to improve performance\ \ s) It should have faster startup times.\ \ t) It will hide the empty window at startup, then show the squeak window when required.\ \ u) It has a different menu structure.\ \ v) It does less I/O when navigating directories.\ \ The macintosh 3.1Alpha1MT VM, Sept 24th 2001 \ This VM was built with the base 3.1 image at change set #4347\ V3.1.1 at change set #4347\ \ \ We go to V3.1.1 to indicate that the 3.1 VM is being used. In the past the 3.1 Image was used but some changes in the openGL logic makes 3.1 Vm and 3.0 image not quite work correctly with 3d graphics. Although a 3.1 VM will run many images way back to the 2x series no careful study has been done on the ability to do this. So at this point we are indicating this VM is a 3.1 VM and best used with a 3.1 image.\ \ Use of VMMaker to build VM. As of this version everything can be built as an external except for the window logic which hasn't been decoupled from the VM support for the macintosh. \ \ 1) AsynchFilePlugin the security check for ability to create file is now a plugin call.\ 2) B2DPlugin logic changes to fillLinearGradientfromtoat\ 3) b3dRemapFaces, b3dRemapEdges, b3dRemapEdgeList, b3dRemapAET, b3dRemapEdgeVertices, b3dRemapFaceVertices, b3dRemapFaceFree, b3dRemapEdgeFree, b3dRemapAttributes. Some casting and changing of += to = + to make some compilers happy.\ 4) BitBltPlugin added tableLookupat call.\ 5) DropPlugin added setFileAccessCallback to allow the Security Module plugin the ability to give us the entry point to turn security off so we can open files as read only when security is turned on. This was broken in the past. \ 6) FilePlugin added fileOpennamesizewrite,getThisSession to allow for callbacks. Changed the file security logic to use the plugin interface. \ 7) interp.c, fixes for 4347ByteArrayRangeCheck-di, ability to printAllStacks, security calls for image rename, write to use plugin interface.\ 8) Added GetAttributeString, and recordDragDropEvent and entry points for callbacks.\ 9) SecurityPlugin changed when initialization is called to initialize the safe and unsafe directorys, also added entry points for all the testing calls so it can be a true plugin.\ 10) Serialplugin. The serial plugin was redesigned to seperate out MIDI logic. People with MIDI devices and old serial macintosh should check to see if they still work since we lack equipment now to test this obsolete technology set.\ 11) SocketPlugin. Make security calls true plugin calls.\ 12 SoundGenerationPlugin. Removed \ EXPORT(int) SoundGenerationPlugin_primitiveFMSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveOldSampledSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitivePluckedSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveSampledSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveWaveTableSoundMix(void);\ They were a hack at the plugin level and discussion on the list seemed to show they were no longer used. \ 13) Checking for if defined (__APPLE__) && defined(__MACH__) for the Mac OS-X native development environment\ 14) Changed sqMacAsyncFilePrims, usage of interpreterProxy->, plugin calls for getThisSession. \ 15) Changed sqMacDirectory.c. Removed some utility code and make it a seperate file so that it can be shared between sqMacWindow and other plugins that require them. \ 16) Changed sqMacDragDrop.c. Added plugin callback for getSTWindow, the sqSetFileAccessCallback logic, fileOpennamesizewrite, and secHasFileAccess. Added logic to do the recordDragDropEvent callback to sqMacWindow.c \ 17) sqMacNetwork.c. Some cleanup for the OS-X version of the OpenTransport headers, some constants have name changes\ 18) sqMacNSPlugin.c Use of ioLoadFunctionFrom(NULL, "DropPlugin"); versus explicit call.\ 19) sqMacOpenGL.c. Some cleanup for the OS-X version of the OpenGL headers\ 20) sqMacOpenGLInfo.c. Some cleanup for the OS-X version of the OpenGL headers\ 21) sqMacSecurity.c ioInitSecurity calls back to dragAndDrop plugin to set entry point to turn security off. Added code to create directories if required and ensured callbacks are plugitized.\ 22) sqMacSound.c Some cleanup for the OS-X version of the Sound headers. Use of interpreterProxy-> in the proper places.\ 23) sqMacWindow.c Some cleanup for the OS-X version of the compiler. Fixed saveAsEmbeddedImage, this got broken when we moved from a FAT to a ppc only application. Altered interface to recordDragDropEvent so that it was plugable. Some file path name logic goes to a seperate C source file. The drag and drop plugin is loaded and intialized after the image is loaded but before the interpreter is started, before it was done a bit earlier in the startup process. This also has the effect of initializing the security module.\ 24)sqOpenGLRenderer.c. Some cleanup for the OS-X version of the OpenGL headers\ 25)SurfacePlugin.c gets a hack so it knows when it is internal versus external.\ \ \ \ v3.0.18 at change set #4081\ (Note browser plugin goes to 3.0.23\ \ 1) sqMacOpenGL.c Quite a few changes were made to the code to support it as an internal plugin for the browser. This is because the drawable frame for a browser plugin is a subset of the browser's grafport, so lots more care must be taken to draw in the correct location using OpenGL. We also fixed issues with re-configurating the Open/GL draw area when the window gets resized or goes to full screen, and attempted to ensure multiple screens will work.\ \ 2) sqMacWindow.c, minor fix to cast a constant char * to char * for CW 6.1\ \ \ Browser plugin 3.0.23 fixes\ \ 1) Integerated the H/W Acceleration as an builtin plugin\ 2) Added logic for pre and post event interaction to browser plugin event handler for H/W Acceleration logic. The external H/W Acceleration plugin mostly works with the browser plugin but doesn't work with full screen mode, or if the plugin is embedded in a window or a scrollable frame, so don't use it. Use the browser plugin 3.0.23 or higher which has the H/W Acceleration builtin.\ \ v3.0.17 at change set #4081\ (Note browser plugin goes to 3.0.21)\ \ 1) Added HW acceleration as internal plugin.\ 2) 4079BBAlphaTextFix-ar Fixes the problem with alpha text, changes BitBltPlugin.c \ 3) Added primitive on the mac to truncate a file.\ 4) Added logic to flush volume on a flush file to ensure file and control blocks are flushed.\ 5) For the Carbon VM we increase nextevent wait time if we get sufficent idle time. This should reduce CPU usage under OS-X\ 6) GetAttribute: 1002 now returns the gestaltSystemVersion as a hex string, and getAttribute: 1003 now returns either '68K' or 'PowerPC'.\ 7) Starting with 3.0.17 the VM is build only as a powerpc application. The latest VM as a 68K application will be made available from time to time permits based on people's needs. \ 8) Changes to sqOpenGLRenderer.c to improve performance, OpenGL 1.1 support.\ \ Plugin 3.0.21 fixes\ \ 1) added check for mailto: tag on posts to fix problem with Netscape crashing, and IE hanging.\ 2) Plus above fixes.\ \ What has been fixed/changed.\ v3.0.16 at change set #4041\ (Note browser plugin goes to 3.0.20)\ \ 1) Lots of fixes for BitBlt and HW acceleration.\ 2) Hardware Acceleration plugin goes to 1.0.1. Please note there is a seperate plugin with the same name for Carbon. Doing a get info will identify if the plugin is only usable with Carbon Squeak.\ \ v3.0.15 at change set #4026 (May 17th test version)\ (Note browser plugin goes to 3.0.19)\ \ 1) Added support for OpenGL HW acceleration plugin\ \ Plugin 3.0.19 fixes\ \ a) Obey embedded tag plug\ b) Fix problem with plugin 3.0.17 not working with netscape 4.x\ c) Carbonize plugin for IE 5.1 \ d) Remove debugging printf than occurred on transition to full screen mode\ \ What has been fixed/changed.\ v3.0.14 at change set #3987\ \ (Note plugin goes to 3.0.17)\ \ 1) sqMacDirectory.c. The pathlookup would handle the case of foo:bar::do incorrectly by ignoring the :: path redirection. This has been fixed. However a path lookup will not work if it contains :: and an aliased directory in the middle of the path.\ \ 2) sqMacSecurity.c. The pathname for the untrustedUserDirectory was built incorrectly, and the bug mentioned above in sqMacDirectory.c usually kept this from being noticed.\ \ 3) sqMacWindow.c we added some logic to do the delay for primitiveRelinquishProcessor, but found it had an large effect on a freecell benchmark. I suspect on a Morpic step wait there is nothing to do so primitiveRelinquishProcessor gets called which then affects response time. So for now we revert to the 3.0.11 behavior, good performance and 100% CPU usage!\ \ 4) GetAttribute 1004 returns returns interpreterVersion; which is for example\ "Squeak3.1alpha of 6 February 2001 [latest update: #3987]"\ \ 5) When in full screen mode we now attempt to disable resizing, zooming, or moving the window. The window borders are hidden, but in the past it was feasible to grab an edge and alter it, thus confusing the VM.\ \ 6) Worked on Carbonizing the browser plugin\ \ 7) 3977 & 3978 FloatArray fixes. Makes float arrays go through a new (and working) version of #primitiveHash\ \ 8) Fixed problem with accidental mouse clicks being triggered from pulldown menus on application switching.\ \ 9)\ "Change Set: 3984 BitBltExtensions-ar\ Date: 4 May 2001\ Author: Andreas Raab\ \ The change set includes various extensions for BitBlt with the goal of migrating the useful features from FXBlt into the general BitBlt mechanisms. These include:\ \ * Handling of LSB and MSB forms:\ BitBlt now handles both, MSB and LSB forms (and their conversions). Only instances of Bitmap are assumed to contain big-endian pixels. All others are assumed to be little endian (reason is that we can only identify Bitmap here). Note that 'LSB' and 'MSB' refers to PIXELS, that is a 1bpp LSB form has its left most pixel in the lowest bit whereas a 1bpp MSB form has its left-most pixel in the highest bit.\ \ For pixel depths < 8 this can be different from what your OS supplies (as an example, Windows bitmaps < 8 are big-endian pixels in little-endian words; we might call them 'middle-endian'). We simply don't deal with those - forms are either big or little endian but nothing inbetween.\ \ BitBlt has got an extra combination rule for swapping pixels in the destination form. This can be used to make byte swapping much more efficient (as soon as we've got more VMs with support for it).\ \ * Handling of 'native bitmaps' (aka surfaces):\ BitBlt is now able to deal with OS surfaces that are registered with the surface plugin.\ \ * Handling of full color maps:\ BitBlt has been extended to deal with instances of ColorMap in addition to the prior mechanism of using only indexed lookups and provide an implicit 16-32 bit color conversion. ColorMaps can specify both, a lookup table and an additional set of masks and shifts to apply during the color mapping operation. \ \ Four independent shifts and masks can be given which can be used for a lot more than just color conversion (as an example, one could do byte swapping with this; but see also BitBlt class>>exampleColorMap). \ \ * Better handling of default arguments:\ For most of the required arguments for BitBlt very reasonable default assumptions can be made. This includes the destOrigin (0@0), clipRect (0@0 extent: destForm extent), sourceOrigin (0@0). BitBlt now substitutes these if they are absent (e.g., nil) in the instance provided.\ \ "\ \ \ v3.0.13 at change set #3848\ \ 1) sqMacSecurity was changed to set the unsecure directory to\ system folder:Preferences:Squeak:Internet:My Squeak\ \ v3.0.12 at change set #3848\ 1) Fixed problem with creating My Squeak Folder in Documents Folder with System 8.6\ \ What has been fixed/changed.\ v3.0.11 at change set #3848\ \ 1) sqMacDirectory had a bug when you resolved a path name. The fast resolve always failed, which invoked the slow resolver. Now the fast resolver works.\ \ 2) sqMacSecurity was changed to set the unsecure directory to Documents:My Squeak. \ \ 3) sqMacWindow was changed to fix some issues with Squeak capturing events from other applications and to reduce the number of duplicate mouse events that are generated. Also we capture modifier information directly from the mouse and keyboard on null events to fix some problems with Carbon. We hopefully fixed problems with mouse clicks from foreground applications being seen by Squeak and issues with the OS-X Dock clicks.\ \ 4) sqMacNSPlugin was changed to use the above mouse/keyboard capture code which is much cleaner than the original fix for the bogus modifier information given to us by netscape on a null event. \ \ 5) When you turn full screen off we now correctly reposition the window to the original location versus a few pixels to the left. \ \ What has been fixed/changed.\ v3.0.10 at change set #3848\ \ 1) changed VM exception unwind logic\ 3796-Exception-unwind-V3,ti...@su..., Paul McDonough, Stephen Pair and others\ \ 2) Fixes for the JPEGReader plugin and for Jitter 3\ \ 3) Added minimal Mac VM logic to assist in building a small VM.\ \ 4) Changed how the browser plugin starts up. Now it starts the interpreter running only after getting the browser setwindow command. This seems to fix a race condition that resulted in a crash at startup time with Netscape 4.x\ \ 5) Fixed broken full screen redraw on cmd-tab\ \ 6) Fixed what looked like mouse-down, mouse-down, mouse-up sequence. Now reports mouse-down, mouse up.\ \ 7) Added StarSqueak plugin as internal plugin\ \ 8) Note the current Squeak Plugin should be gotten from the www.squeakland.org site.\ \ v3.0.9 at change set #3776, Boston Snow storm build.\ \ 1) A number of changes were made to the interpreter:\ a) added primitive to change a class.\ b) added primitives to get or put 32bit integers\ c) Fix problem with GC and class reshaping\ d) Better logic for method cache flushing\ \ 2) Added JPEGReader plugin\ \ \ V3.0.8 at change set #3740\ \ 1) The caps lock no longer maps to the shift attribute. So if the caps lock is down mouse clicks will behave normally. \ \ 2) Numerous fixes for the BitBltPlugin plugin\ \ 3) Memory allocation grow/shrink logic for Carbon was added.\ \ 4) Spurious mouse clicks for the browser plugin has been fixed. (This took awhile to fix, I'm sure it's a bug with the Swedish version of Netscape)\ \ 5) The browser plugin will attempt first to allocate memory from the browser heap, then the system heap. Most people when faced with a memory issue usually increase memory for the browser first. However memory for the plugin is controlled by an attribute in the EMBED HTML statement. \ \ V3.0.7\ \ 1) A bug exists in pre OS 8.x that causes a crash in activate window if the standard get file \ dialog comes up before the Squeak Window. I remove the InvalWindow call found in that routine since it is actually redundant.\ \ 2) The standard get file dialog on system 7.x would not terminate if you did a cancel.\ \ 3) The InterfaceLib had to be weak linked to prevent CFM startup issues. \ \ V3.0.6\ \ 1) Alias resolving is less aggressive.\ \ 2) We no longer cache image reads or writes. This was done because OS 9.1 allows you to have very large disk caches, and it's pointless to cache the image read or write.\ \ 3) The file flush primitive now actually flushes the file via an OS call. This was a bug in the CodeWarrior 5.3 source code.\ \ 4) The 68K version was being built with the 68881 math library. This fails on 68040LC chips. We now use the non-68881 math library. Thanks to Bruce ONeel for find this.\ \ 5) A bug was found in the path resolving logic that was added for 3.x. This bug apparently only affects 68K machines, never was identified as a PowerPC issue. \ \ 6) The Netscape plugin needs a properly allocated clip region, this code seemed to work ok on new systems, but fails on system 7.6.1\ \ 7) The security interface will create a Documents folder on the root volume if the default Document folder has been deleted. This is needed for security purposes. \ \ 8) Jitter needs 1MB of free memory to run.\ \ 9) 68K machines require another 32K of stack\ \ 10) Threads now work on 68K machines, but turned off because of possible performance issues. (I think more study is needed).\ \ 11) The 68K version was compiled with better optimization, expect a 15% improvement.\ \ 12) fix for BitBltPlugin ascii = byteAt((sourcePtr + charIndex) - 1);\ \ 13) The interpreter object validation checking code was alter to work correctly.\ \ V3.0.5\ \ 1) sqConfig.h changed due to BE OS header changes\ \ 2) sqMacDirectory.c. Added support for Navigation services or Standard File Get to find the image at startup time when the Squeak.image is not found by the VM. This replaces the DOS like console message that comes up saying that Squeak can't find a image.\ \ 3) A fix to drag and drop for the browser plugin.\ \ 4) We now use Apple's cooperative multithreading package to run the UI in one thread, the VM in the other. This solves some issues with the browser and makes the UI versus VM logic and execution responsibilities easier to understand. \ \ 5) Changed the sqMacNSPlugin.c code to support a 3.0VM using multithreading support. This should give Squeak in a browser better performance. Also changed the full screen support to correctly work with multiple monitors.\ \ 6) BitBltPlugin.c gets one more op code\ \ 7) Added the security interface\ \ 8) Added the file flush primitive\ \ 9) Rewrote the macintosh readme file\ \ 10) Revisited the zoomWindow code and found a bug with multiple monitor support, then I fixed the code to make Full Screen mode work on screen that Squeak window is mostly on, versus the menubar screen. Also if you switch from full screen back it resizes the window back to the orginal size and location before you invoked the full screen. \ \ V3.0.2\ Plugins\ \ Recompiled the internal BitBltPlugin plugin to encorporate:\ Change Set: 258AlphaBlendOpt-dsm\ Author: Duane Maxwell, Paul Phillips/exobox\ a) Short circuits full opaque and full transparent pixels when alpha blending.\ \ Recompiled the internal LargeIntegerPlugin\ 3298LargeIntegersV1-2-sr -- Stephan Rudlof -- 29 November 2000\ 3299LargeIntV1-2For29-sr -- Stephan Rudlof -- 29 November 2000\ \ VM Software\ \ (b) PowerManagement for macintosh is now supported. You can disable the power manager to give you better performance on some powerbooks at the expense of battery life. See the Preferences Panel for details, category 'Performance'\ - changed sq.h\ - changed sqMacWindow.c to add support for power mgr disabling\ \ (c) Drag and Drop support for the macintosh, dragging files from the Finder to the Squeak window is now supported.\ - sqMacDragDrop.c added\ - sqMacWindow.c changed\ \ (d) Added primitive for get macintosh creator and file type.\ - sqMacDirectory.c changed\ \ (e) Carbon support. Thanks to Karl Goiser ka...@wa... for work he did on sound and other Carbonization hotspots.\ - sqMacAsyncFilePrims.c changed\ - sqMacFFIPPC.c changed (not supported for Carbon)\ - sqMacNetwork.c changed per Apple tech note 1173 Carbon asset tracking\ -sqMacSerialAndMIDIPort.c chnaged (Not supported for Carbon)\ - sqMacSound.c changed per Apple tech note 1198 Carbon double sound buffer playing\ - sqMacWindow.c changed (various changes for Carbon)\ \ (f) Poll at least 60 times a second for the mouse if required. Previous 2.9.x VM did it 30 times but this is too slow and 2.8.x VM do it 60 times a second.\ \ (g) Reworked path support Thanks to Karl Goiser ka...@wa... for starting this.\ - sqmacDirectory.c changed reworked lookupPath\ - sqMacWindow.c changed, added GetApplicationDirectory to get application directory\ \ (h) I rewrote the sqMacDirectory.c logic to enable proper understanding of Apple's Alias logic. This means for example you can alias the "SqueakV3.sources" file and then only have one copy and have all your images point to it. \ \ (i) Added Zoom Window support.\ \ (j) Change the Squeak change file icon to better match Apple's visual guidelines, Thanks to Doug Way for the suggestion and the new icons.\ \ (k) The sound plugins have changed...\ \ (j) Dropped FFI out of the base Squeak because of security concerns\ \ (k) Compiled for 750(G3) processor versus 603\ \ (l) Added screenDepth primitive\ \ The 3.0.x VM contains most of the optional plugins, you might want to check this by inspecting "Smalltalk listBuiltinModules" to see where your plugins are coming from. In some case people have been accidentally overriding the new builtin plugins with older plugins. \ \ The file "Squeak 3.0Alpha10MT.sig" contains the PGP signature for the Squeak 3.0Alpha10MT VM\ \ John M McIntosh jo...@sm...\ \ \ \ \ \ \ \ \ } |
|
From: Bert F. <be...@us...> - 2004-08-31 21:14:07
|
Update of /cvsroot/squeak/squeak/platforms/Cross/plugins/B3DAcceleratorPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16789 Modified Files: sqOpenGLRenderer.c Log Message: Fixed ARGB to RGBA conversion. Index: sqOpenGLRenderer.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Cross/plugins/B3DAcceleratorPlugin/sqOpenGLRenderer.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** sqOpenGLRenderer.c 1 Sep 2003 23:05:55 -0000 1.9 --- sqOpenGLRenderer.c 31 Aug 2004 21:13:51 -0000 1.10 *************** *** 879,883 **** for(i=1;i<=nVertices;i++) { unsigned int argb = vtxPointer[i].pixelValue32; ! unsigned int rgba = (argb >> 8) | (argb << 24); vtxPointer[i].pixelValue32 = rgba; } --- 879,883 ---- for(i=1;i<=nVertices;i++) { unsigned int argb = vtxPointer[i].pixelValue32; ! unsigned int rgba = (argb << 8) | (argb >> 24); vtxPointer[i].pixelValue32 = rgba; } |
|
From: John M M. <jo...@us...> - 2004-08-05 05:20:42
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20192/squeak/platforms/Mac OS/vm/Documentation Modified Files: 3.7.4 Release Notes.rtf Log Message: 3.7.4b3 Index: 3.7.4 Release Notes.rtf =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/Documentation/3.7.4 Release Notes.rtf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 3.7.4 Release Notes.rtf 3 Aug 2004 02:47:09 -0000 1.1 --- 3.7.4 Release Notes.rtf 5 Aug 2004 05:20:32 -0000 1.2 *************** *** 7,11 **** \f0\fs24 \cf0 Mac VM 3.7.4 mach-o build for Carbon, and build for Classic. Support for Croquet, and support for Safari\ ! June 14th, 2004 (3.7.4b1)\ \ Still yet to do, in future versions -> Verify that file delete rename etc works on aliases, not the targets. (Yawn, someday)\ --- 7,11 ---- \f0\fs24 \cf0 Mac VM 3.7.4 mach-o build for Carbon, and build for Classic. Support for Croquet, and support for Safari\ ! Aug 4th, 2004 (3.7.4b3)\ \ Still yet to do, in future versions -> Verify that file delete rename etc works on aliases, not the targets. (Yawn, someday)\ *************** *** 15,21 **** 3.7.3 seems a fine VM, from what people tell me, but now we've 3.7.4...\ \ ! 3.7.4b1 primitive Function Pointer goes into method cache logic, better lookup times.\ ! Force Interrupt Check logic in VM to fix most/all? issues with tight loops and keyboard interrupt logic. \ more sanity checks in displayBitsOfLeftTopRightBottom\ cleanup of flushExternalPrimitiveOf\ --- 15,28 ---- 3.7.3 seems a fine VM, from what people tell me, but now we've 3.7.4...\ \ ! 3.7.4b3 Released to fix issues in Netscape plugin code\ ! FIX PROBLEM that triggers image read failure on G5 machines. This prevents image from running on G5 machines.\ ! Problem shows up as browser crash or failure to start squeakland project.\ ! \ ! 3.7.4b2 Released to fix issues in Netscape plugin code\ ! Do not start timers until later in the image start, this prevents failure if image doesn't load\ ! Support failureURL and imageName embed html tags\ \ + 3.7.4b1 primitive Function Pointer goes into method cache logic, better lookup times.\ + Force Interrupt Check logic in VM to fix most/all? issues with tight loops and keyboard interrupt logic.\ more sanity checks in displayBitsOfLeftTopRightBottom\ cleanup of flushExternalPrimitiveOf\ *************** *** 53,58 **** \f2\fs20 \CocoaLigature0 \ \cf2 "ShiftJIS"\cf0 kCFStringEncodingShiftJIS\ ! \f1\fs24 \CocoaLigature1 \ sqMacFileLogic.c Alter makeFSSpec(), get kCFStringNormalizationFormD path name\ Alter PathToFile(), get kCFStringNormalizationFormKC path name\ --- 60,66 ---- \f2\fs20 \CocoaLigature0 \ \cf2 "ShiftJIS"\cf0 kCFStringEncodingShiftJIS\ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f1\fs24 \cf0 \CocoaLigature1 \ sqMacFileLogic.c Alter makeFSSpec(), get kCFStringNormalizationFormD path name\ Alter PathToFile(), get kCFStringNormalizationFormKC path name\ *************** *** 96,104 **** Broke high bit ascii macroman in 3.7.0bx.\ For multi-byte character input you get EventKeyDown/EventKeyChar/EventKeyUp for each unicode character coming from the input sequence.\ ! \f0 \ 3.7.0b2 \ ! \f1 a) You can alter the application's Info.plist by setting the SqueakEncodingType using the ICANA readable names\ \ macintosh - >macRoman \ --- 104,114 ---- Broke high bit ascii macroman in 3.7.0bx.\ For multi-byte character input you get EventKeyDown/EventKeyChar/EventKeyUp for each unicode character coming from the input sequence.\ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f0 \cf0 \ 3.7.0b2 \ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f1 \cf0 a) You can alter the application's Info.plist by setting the SqueakEncodingType using the ICANA readable names\ \ macintosh - >macRoman \ *************** *** 108,119 **** c) Usage of VMMaker3-7a2.\ d) Special change sets: make primitive point x/y internal, and slightly faster activate.\ ! \f0 \ 3.7.0b1 \ ! \f1 Changes for the "m17n" package fromTetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}> so one can type Kanji characters.\ \ ! \f0 3.6.1b7 \ SqMacWindow.c Fix for new rending code when used with 2.8 or earlier images, mouse clicks reported in wrong place\ \ --- 118,132 ---- c) Usage of VMMaker3-7a2.\ d) Special change sets: make primitive point x/y internal, and slightly faster activate.\ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f0 \cf0 \ 3.7.0b1 \ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f1 \cf0 Changes for the "m17n" package fromTetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}> so one can type Kanji characters.\ \ + \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural ! \f0 \cf0 3.6.1b7 \ SqMacWindow.c Fix for new rending code when used with 2.8 or earlier images, mouse clicks reported in wrong place\ \ |
|
From: John M M. <jo...@us...> - 2004-08-03 02:47:17
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm/Documentation In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28234/squeak/platforms/Mac OS/vm/Documentation Added Files: 3.7.4 Release Notes.rtf Log Message: 3.7.4b3 Add those release notes --- NEW FILE: 3.7.4 Release Notes.rtf --- {\rtf1\mac\ansicpg10000\cocoartf102 {\fonttbl\f0\fnil\fcharset77 Geneva;\f1\fswiss\fcharset77 Helvetica;\f2\fnil\fcharset77 Monaco; \f3\fnil\fcharset77 LucidaGrande;} {\colortbl;\red255\green255\blue255;\red137\green19\blue21;\red26\green26\blue255;} \margl1440\margr1440\vieww17300\viewh12720\viewkind0 \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0\fs24 \cf0 Mac VM 3.7.4 mach-o build for Carbon, and build for Classic. Support for Croquet, and support for Safari\ June 14th, 2004 (3.7.4b1)\ \ Still yet to do, in future versions -> Verify that file delete rename etc works on aliases, not the targets. (Yawn, someday)\ \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ \ 3.7.3 seems a fine VM, from what people tell me, but now we've 3.7.4...\ \ 3.7.4b1 primitive Function Pointer goes into method cache logic, better lookup times.\ Force Interrupt Check logic in VM to fix most/all? issues with tight loops and keyboard interrupt logic. \ more sanity checks in displayBitsOfLeftTopRightBottom\ cleanup of flushExternalPrimitiveOf\ cleanup of oopFromChunk\ refactor pop then push to pop:thenPush:\ lookupMethodInDictionary refactor to make one loop looking, versus perhaps two.\ mark/sweep logic or type, versus adding type (or is correct math)\ dispatchFunctionPointer logic\ rework primitiveScanCharacters logic\ add parm to VMparms to set interruptChecksEveryNms\ Fix bug in primitiveYield\ \ LargeIntegersPlugin add normalization logic\ \ ZipPlugin added primitiveUpdateAdler32 primitive\ \ 3.7.3b4 Numerous changes for Unicode file name support, and proper support for keyup/keydown on os-x. \ \ sqVirtualMachine.c VM_PROXY_MINOR set to 6 to support isArray = isArray;\ \ interp.c New VMMaker code update, major change is to use dispatchFunctionPointerOnin logic to dispatch \ primitive calls, versus going via a jumptable/case statement. Also Tim reviewed the usage of the \ millisecond clock and improved things so we don't need to check the clock on every prim call. This \ makes the RISC and other platforms faster. However it only has minor effect on the os-x carbon VM \ because of how the cheap millisecond clock is implemented.\ \ sqMacDirectory.c Change dir_Lookup // HFS+ imposes Unicode2.1 decomposed UTF-8 encoding on all path elements\ Per request from \f1 Tetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}>\ \ sqMacEncoding.c Alter SetVMPath() \f0 per request from \f1 Tetsuya HAYASHI , \ add support for \f2\fs20 \CocoaLigature0 \ \cf2 "ShiftJIS"\cf0 kCFStringEncodingShiftJIS\ \f1\fs24 \CocoaLigature1 \ sqMacFileLogic.c Alter makeFSSpec(), get kCFStringNormalizationFormD path name\ Alter PathToFile(), get kCFStringNormalizationFormKC path name\ Alter QuicklyMakePath() get kCFStringNormalizationFormKC path name\ New routine unicode2NativePascalString()\ Alter makeOSXPath, get kCFStringNormalizationFormKD path name \f0 \ Alter resolveLongName, get kCFStringNormalizationFormKC path name\ Alter FSMakeFSSpecCompat(), call \f1 unicode2NativePascalString to normalize path name \f0 \ \ sqMacMemory.c Allow browser plugin to allocate 512MB of VM space for image under os-x. \ \ sqMacUIAppleEvents.c Use CFStringGetSystemEncoding versus suggested plist.info suggestion because the encoding info is quite right yet at\ this point in the startup time.\ \ sqMacUIEvents.c Key Up is now reported as an event when the key is released. Earlier os-x carbon VMs would report the key up after the\ keystroke was processed by Text Services, which was incorrect. We also deal with Key repeat correctly and don't send\ another key down event. This change has made it possible to properly support Morphic games where key up/down state is\ important to game interaction. \ \ sqMacWindow.c Fix crash in ShowWindow(). This was due to a pthread race condition between the UI thread and interp.c. \ Fixed by using UI callback to handle the show screen call. Would show up as a crash before window appeared.\ \ 3.7.3bx Earlier versions of 3.7.3 were released to confirm the file changes for Japanese users worked correctly, and to \ confirm that the keyUp logic changes worked as desired.\ \ 3.7.2b1 Changes for NPSqueak to fix issues with full screen mode under Safari 1.2 (V125) \ Usage of VMMaker3-7b2 to build interp.c\ Unicode values now come up from the classic VM versus the historical (1984) keycode values, this makes Tweak work.\ \ 3.7.1b2 \ JPEG READER WRITER\ usage of Apple '-fast' uncovered a source code issue, initialization routines for internal jpeg plugin were not returning true or false, before this was kinda of considered as true. But when compiled with -fast it's zero, meaning the inialization failed, but that is bogus.\ \ 3.7.1b1\ Use of "-fast" apple gcc 3.3 compiler option, improves sends by significant %\ \f1 On EventKeyUp/EventKeyDown you get the UniCode On EventKeyChar you get the UniCode->MacRoman translated character.\ Broke high bit ascii macroman in 3.7.0bx.\ For multi-byte character input you get EventKeyDown/EventKeyChar/EventKeyUp for each unicode character coming from the input sequence.\ \f0 \ 3.7.0b2 \ \f1 a) You can alter the application's Info.plist by setting the SqueakEncodingType using the ICANA readable names\ \ macintosh - >macRoman \ UTF-8 -> UTF-8\ \ b) Support for sqSocketListenOnPortBacklogSizeInterface, which allows you to specify the interface to use for the listen should work both for os-x and os-9.\ c) Usage of VMMaker3-7a2.\ d) Special change sets: make primitive point x/y internal, and slightly faster activate.\ \f0 \ 3.7.0b1 \ \f1 Changes for the "m17n" package fromTetsuya HAYASHI <{\field{\*\fldinst{HYPERLINK "mailto:te...@st..."}}{\fldrslt te...@st...}}> so one can type Kanji characters.\ \ \f0 3.6.1b7 \ SqMacWindow.c Fix for new rending code when used with 2.8 or earlier images, mouse clicks reported in wrong place\ \ 3.6.1b6\ SqMacWindow.c Enable 8bit all modes of 8 bit rendering\ \ 3.6.1b5\ SqMacWindow.c Enable 8bit support for 8->8 8->16 8->32 \ \ 3.6.1b4\ SqMacWindow.c Fix issues with title bar height calculation, was using the wrong window region to do this. Also failed \ for full screen usage. Tinkered a bit with ioDisplay moving bytes, now do <=32 bytes directly. \ 3.6.1b3\ SqMacWindow.c Alter logic to allow for 16->32 and 32->16 mapping using direct copy logic. Workaround for \ os-x 10.3.0 copybits bug. Released for limited testing. Awaiting real fix from Apple.\ \ 3.6.1b2\ SqMacWindow.c Alter to use unix direct port bit copy versus copybits to get around a crash caused by a bug\ in os-x 10.3.0 copybits. Released for limited testing\ \ 3.6.0b2\ Build from about to be offical 3.6.0 VM, Balloon & VM Maker source.\ Added in \ ArraysToGlobalStruct-JMM.1.cs\ ?3.7 Status unknown, but makes better interp.c interpreter loop code (silly optimizer).\ FasterCopyLoop-JMM.4.cs\ FasterCopyLoopPart2-JMM.2.cs\ ?3.7 Status unknown, but makes drawing 20%+ faster due to better PowerPC code optimizations\ FasterLookupMethod-JMM.1.cs\ ?3.7 Status unknown, but makes method lookup a bit faster. \ MakePrimPointXInternal-JMM.1.cs\ ?3.7 Status unknown, but makes point x/y access faster.\ \ SlightlyFasterActivate-JMM.3.cs\ Rolled into 3.7\ \ You need 3.5.3b1 for Safari plugin support\ \ 3.5.3b1 (browser plugin)\ Fixed issues with IE drawing and crashs related to screen updating in non-thread safe IE.\ \ 3.5.2b6\ Fixed issues with plugin discovery for netscape plugin \ 3.5.2b5\ Fixed primitive dispatch to use gnuified jump table. \ \ 3.5.2b4 \ Fix issue with race on open doc events and squeak VM Thread for drag and drop support when starting squeak\ For os-x expose primitivePluginBrowserReady, not the rest of the URL browser primitives, they don't work in Safari\ For system attribute 1003 return powerpc versus PowerPC to match unix VM\ Start timers later in the VM startup logic, after reading the image, versus before.\ sqMacNSPlugin.c - Look for Squeak folder in User, local, Network, System domains versus just User.\ sqMacTime.c - Use old delay logic (1ms accurate), versus aioPoll (10ms accurate).\ sqMacUIEvents.c - Only create PowerManagerDefeatTimer tick routine if power manager tapping is required which is only os-9 anyways.\ sqMacUIMenuBar.c - Draw menu bar later in startup, after we change it, save 200+ms\ BitBltPlugin.c - alphaSourceBlendBits16 Use table lookup which is 90% faster\ - copyLoopNoSource, roll constants into register versus recalculating.\ \ 3.5.2b2 \ Fix applescript document handling logic to prevent overrunning the drag/drop logic via the command line open cmd by using a spin loop\ to ensure Squeak has sufficent time to read the file name. \ \ 3.5.2b1 \ Changed the bitBlt copyloop logic to use locals in safe places, versus globals. This improves drawing by 5%.\ Major change is usage of GCC 3.3, versus GCC 2.95.x This increases send/second by about 8%.\ \ \ 3.5.1b5 Added some more user changeable attributes, and changed some window behaviour when floating\ OS-x Version only \ SqueakWindowHasTitle - (Yes/No) yes if window should get title.\ SqueakFloatingWindowGetsFocus (Yes/No) yes if window should allow click and type if floating.\ SqueakMaxHeapSize - (Number) set to 512K, max size for os-x memory heap. Note changing this to 1GB may or may not cause a \ core dump depending on where os-x allocates the memory segment above or below the 2GB boundary. \ \ sqMacUIEvents.c - set keyboard focus to floating window if required, do not hide floating window when we go to full screen mode.\ sqMacWindows.c - watch out for memory leak when we free the color table. \ \ 3.5.1b4 Please note the major changes to network code in 3.5.1b2\ a)Added options SqueakWindowType & SqueakWIndowAttributes to info.plist. The SqueakWindowType of 6 is the standard document window, a type of 8 is the floating utility window. The attributes control with window attributes and behavior according to\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f1 \cf3 \ul \ulc3 http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/WindowManager/Window_Manager/wind_mgr_ref/constant_2.html#//apple_ref/c/tdef/WindowAttributes\ &\cf0 \ulnone \ \cf3 \ul http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/WindowManager/Window_Manager/wind_mgr_ref/constant_1.html#//apple_ref/doc/c_ref/WindowClass\cf0 \ulnone \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 b) Sockets are not valid if the network is not initialized. \ c) The os-9 vm can return the open file error in the vm attribute data 1202\ d) MyWindowEventMouseHandler was leaking region handles.\ e) Support for primitiveClosureValue, primitiveClosureValueWithArgs, primitiveExecuteMethod\ f) when rootTableCount goes > 2400 then allocationCount gets allocationsBetweenGCs + 1 \ g) BitBlt Alpha Blending has changed\ h) Added primitiveWrite24BmpLine\ i) The guard if statement for primitiveSerialPortRead was flawed, noted the buffer overflow, but then proceeded, versus returning. \ \ 3.5.1b3 \ a) Fix, Stephane Ducasse <du...@ia...> pointed out that using a virtual desktop we had a crash in ioSetFullScreen. This \ was due to a pthread race condition between the UI thread and interp.c. Fixed by using UI callback to handle fullscreen window/move/resize.\ \ 3.5.1b2\ a) Switch to aio.h logic and unix socket logic! This is a MAJOR change!!!!\ \ b) Call aioPoll (select()) to cause process wait versus old pthread logic. This follows in the footsteps of the unix port. You should verify that \ cpu time when squeak is idle is not affected in a dreadful manner.\ c) Fix, if you call does this directory exists on a file now you will get an error which will signal that the directory does not exist. This ensures\ the FileDirectory test suite works. \ d) Fix, if you quit the browser plugin, check the status of the pthread_cancel before attempting the pthread_join\ \ 3.5.1b1 limited distribution\ \ 3.5.0b4 \ a) os-x exposed an issue with EToyPeerToPeer support. It seems under os-x we get the connect, data, close so fast on lans that by the \ time we get around to asking for the remote IP address the connection is closed, and our open transport call fails. We change SqMacNetwork.c to \ return the IP address discovered at connect time in this case. Under os-9 we never saw this behavior because we suspect the network activity \ was slower and more serialized. \ \ 3.5.0b3 (Safari support)\ \ a) The plugin logic was changed to support Safari and better support os-x. This required building a CFM stub to load the mach-o compiled\ NSPLugin. The mach-o plugin now uses a pthread for the interp.c loop. This gives much better performance and user UI feedback. \ b) The GC logic was carefully reworked to optimize the assembler on the ppc. This gave us upwards of a 30-50% improvement, since \ incremental GC is going on all the time, this change actually has a effect you can see say in the solitaire example where we save 10%. \ c) sqMacNetwork.c was modified, first change in many years. The remote address and port number are requested as an async operation. \ The operation times out after a few milliseconds. This was never a problem in os-9. Now it seems there is an issue sometimes for DHCP clients\ on os-x. There the operation can timeout and return 0 as the address or port. We changed the call to do a sync operation to avoid a timeout.\ d) sqMacMain.c was modified to allow for pthreads for mach-o netscape based squeakland plugin support\ e) sqMacMemory.c changes for mach-o plugin support\ f) sqMacTime.c changes for mach-o plugin support\ g) sqMacUIEvents.c changes for mach-o plugin support\ h) sqMacWindow.c changes for mach-o plugin support \ i) npmac.cpp now this is a netscape glue routine, I changed it to ensure we can see the entry points, originally they are C++, but need \ to be "C" so the loader can find the names the CFM glue routine is looking for. Also we add the logic TV2FP to setup the mach-0 to CFM code stubs to allow the mach-o plugin to callback to the CFM stubs in Safari. \ j) sqMacNSPlugin.c \ 1) Rearrange when the interpret() thread is started to ensure a race condition doesn't happen.\ 2) use Pthreads for the mach-o osx version. \ 3) rework NPP_SetWindow to start interpret() when needed. \ 4) Alter StartDraw, EndDraw to use a mutex lock and handle os-x port locking to prevent races between pthreads.\ 5) Alter ioShowDisplay, optimization and handle os-x\ 6) fix ioSetFullScreen to make it work on Safari\ 7) fix OpenFileReadOnly to make it work on os-x, needed sqFileNameFromStringOpen macro call\ 8) Alter ExitCleanup to mutex lock to prevent race ending issues, and add a bit more cleanup\ \ \ \ Note some versions of 3.4.1 were distributed for testing only, these are superseded by 3.5.0\ \ 3.4.0b2 (Croquet support)\ \ a) Ensure vmVersion information reports correct information, was bogus in 3.4.0b1\ \ 3.4.0b1 (Croquet support)\ a) Added plugin BMPReadWriterPlugin 14 November 2002 (i)\ b) B3DAcceleratorPlugin.c gets primitiveCreateRendererFlags (new api)\ c) two more op codes get added to BitBltPlugin (fixAlphawith, pixClearwith)\ d) Squeak3D gets (b3dOrthoNormInverseMatrix, b3dTransformDirection,b3dTransformPoint,b3dTransposeMatrix)\ e) The scroll wheel mouse logic was using apple cmd key as the modifier on the arrow key events, Other platforms use the Control key. So the \ mac falls in line (changed to use the control-key)\ \ \ Notes About previous VM.\ 3.2.6 VM classic have an issue when the tickcount clock goes over 0x7FFFFFFF, about 24 days. \ This exhibits itself when Squeak won't accept user input, or allow you to switch under os 9 or earlier after 24 days,\ or starting a Squeak image hangs during the initial screen painting.\ Restarting the mac solved these problems. Force quitting Squeak does not.\ This is fixed in 3.2.7b3\ \ Some issues with alias files and folder were fixed in 3.2.7b6 and 3.2.8b3\ \ 3.2.8b9\ a) recompiled os-x version, 3.2.8b8 seem to have a bad compiler option and gave 20% less performance.\ \ 3.2.8b8\ a) exposed \f1 vmParameter \f0 24 & 25 which control how memory is allocated/freed \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f1 \cf0 Smalltalk vmParameterAt: 24 put: 48*1024*1024.\ Smalltalk vmParameterAt: 25 put: 24*1024*1024.\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 b) Added argv,argc, env variables to main\ c) Fixed for Jaguar 10.2. Full screen mode cmd-tab broke menu bar hiding, this is a 10.2 bug\ d) Added support for IP_ADD/DROPMEMBERSHIP and the ability to bind to the wild card port (0).\ e) OpenGL changes for TEA\ \ 3.2.8b7 was testing release and not distributed to the public.\ 3.2.8b6 was testing release and not distributed to the public.\ 3.2.8b5\ a) Oops broke the logic returning the vmversion information in classic. Also incremented os-x version (which was fine) to keep numbers in sync\ \ 3.2.8b3 The squeak.sourceforge.net CVS tree was reorganized and the project builder project revamped. The \ major change to the source was upgrading the netscape browser plugin to 3.2.7b6 levels.\ \ a) Gnunifer.3.cs Changed to add register var on FOO_REG and to remove sqGnu.h file embedded in method.\ b) sqMacDirectory.c Add logic to handle case of building as CFM carbon plugin under CW6, needed some carbon calls\ c) osExports.c needed to ifdef out the getUIToLock entry point (not available as CFM carbon browser plugin)\ d) sqMacFileLogic.c Fix alias problem. Add logic to deal with path names as CFM carbon browser plugin, ensure vmPath is correct.\ e) sqMacImageIO.c Cast to get rid of warning message\ f) sqMacMain.c Cast to get rid of warning message, Check for CFM Carbon and bundle check. Revise vm parm 1201 code to return long file names are ok as CFM carbon browser plugin. Some diagnostic routines for printing to the console as CFM carbon browser plugin.\ g) sqMacMemory.c Logic change as CFM carbon browser plugin.\ h) sqNSPlugin.c Fix to beginFullScreen logic (carbon call is broken?)\ i) sqMacUIEvents.c Remove getUIToLock dummy call. This entry point should only exist for mach-o carbon builds. Not CFM carbon browser plugins\ j) sqMacWindow.c Use old call to create window when a CW 5 carbon application.\ k) sqPlatformSpecific.h Change #ifdef to correct logic error when building as CFM carbon browser plugin under CW 5.\ \ \ \ May 31st, 2002 (3.2.7b6)\ For 3.2.7\ \ 3.2.7b3 We build the VM using patchs to enable globals as a structure. This improves performance by 10%\ \ a) Classic Vm builders might need to add "struct foo *foo = &fum; " to int interpret(void). \ b) readme: add notes about changesets and alter build instructions\ c) sqMacFileLogic.c: use accessors for interp.c globals\ d) sqMacMain.c: use accessors for interp.c globals. Also Alain Fischer added logic to fetch os-x version number and to enable you to put squeak.image in the resource folder for autostarting.\ e) sqMacTime.h: Fix busted lowresclock again. After 24 days of mac uptime, 3.2.6 squeak will hang.\ f) sqMacUIEvents.h: use accessors for interp.c globals.\ g) sqPlatformSpecific.h: alter sqFTruncate to use fileno() as needed.\ h) sqMacWindow.c: use accessors for interp.c globals.\ i) 3.2.7b5 sqMacFileLogic.c: change vmpath to resolve to classic VM if vm is moved from MacOSClassic folder\ j) Misc changes for Netscape plugin support\ k) Introduce osExports.c logic\ l) 3.2.7b6 Fixed a problem in path name resolving need to use UTF8 to properly interact with high ascii characters\ m) 3.2.7b6 Fixed a problem in path name resolving there was a bug with certain types of alias path name combinations in quick name resolving.\ \ Mac VM 3.2.6 mach-o build for Carbon, and build for Classic.\ March 14th, 2002\ Still yet to do, in future versions.\ Verify that file delete rename etc works on aliases, not the targets.\ \ You will need mach-o os-x bundle plugins to work with this VM. example -> \f3 mpeg3Plugin.bundle.\ Old carbon non-bundled plugins will not work, but keep reading to understand where classic \ plugins still are needed.\ \f0 \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ Notes About previous VM.\ 3.2.6b6 Classic or earlier has a bug that makes it stop collecting user input on a 19.88 hour cycle depending on reboot time.\ Seems many systems don't run for more than 19 hours so we've not had major complains about this issue. \ Bug was introduced in 3.2.1.\ 3.2.5 has a bug that prevents the use of accented characters without \ a image patch to fix a VM issue (not an issue in 3.2.4). Also you can't enter an double keystroke characters, ie ^ \ which makes life difficult. It also does not support the AppleScript Plugin (not an issue in 3.2.4)\ 3.2.4 a bug in project builder introduced a performance problem (bad compiler options).\ \ See the 3.2.5 about why this 3.2.6 is different inside.\ \ For 3.2.6:\ a) Change an internal number that dictates how often pending interrupts should be looked at from 5ms to 3ms This improves \ delay accuracy.\ b) Change how sleeping is done when squeak is idle. This reduces CPU consumption, and improves Delay accuracy.\ c) Fix bug with high bit problem with keyboard (accented characters are ok now)\ c2) 3.2.6b6 has fixed characters that require multiple key strokes to enter.\ d) Externals that make UI interactions (IE AppleScript) Must now make a call back to the VM to schedule\ the main thread to do the call that will invoke UI interaction to prevent a deadlock in Carbon between threads. \ See the OSAExecute call in the AppleScript plugin for details.\ e) If you run a classic mac VM more than 23.x days nonstop it will stop responding to UI events. Ensure clocks get anded with 536870911.\ f) signal inputSemaphoreIndex because we are mulithreaded. Not that it does anything for us yet...\ g) 3.2.6b6 Pass the unicode value of the keystroke up as the EventKeyDown/EventKeyUp data, versus mackeyboard code.\ h) Somewhere there is a bug with mktime + time, so use the unix code of time+localtime+gmt \ i) Change iorelinquishPrcessorForMicroseconds to sleep the quatum between now and wakeup time. Also schedule a\ check for interrupts if wakeup time is now or in the past. This improves delay accuracy. For OS-x this was a big deal,\ for os-9 it improves things by 1 or 2ms. Also in os-x we sleep more when idle so CPU usage goes down.\ j) On OS-9 umap AND free the VM backing store. Just doing the free doesn't work and you lose 128Mb of disk space until you reboot\ k) 3.2.6b7 for post event processing ignore mouse move/drag/or scroll wheel events. These are ignored by the open/gl plugin and only suck a major amount of CPU time to process in the post event processing logic. \ l) 3.2.6b8 (3.2.6b4 classic) removed call to uncouple shift keys introduced in 3.2.1. This causes some macs after sleeping not to respond to keyboard input\ m) 3.2.6b8 (3.2.5b7 classic) added function for ioLowResMSecs to avoid early bit overflow. Rework clock checking in ioHandleEvents to handle clock rollovers properly.\ \ Mac VM 3.2.5 mach-o build for Carbon, and build for Classic.\ March 4th, 2002\ Still yet to do, in future versions.\ Verify that file delete rename etc works on aliases, not the targets.\ \ You will need mach-o os-x bundle plugins to work with this VM. example -> \f3 mpeg3Plugin.bundle.\ Old carbon non-bundled plugins will not work, but keep reading to understand where classic \ plugins still are needed.\ \f0 \ Pre OS-X users should read about OS-9 packages in the 3.2.4 change notes.\ \ Beware this version of the VM is significantly different inside! \ \ \pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural \f1 \cf0 a) Broke sqMacWindow.c into 10 different files by function type.\ \ b) Moved most of the memory allocation logic out of sqMacMain.c into sqMacMemory.c. and ensure memory is freed when Squeak is terminated. \ The major change in this code is support for OS 9.x virtual memory mapping. This only applies to Mac OS 9.2.0 or higher, excluding os-x. It appears Mac OS 9.1 has a bug that prevents this feature from working.\ \ For images that require less than 128MB of memory, mapping is used to allow the image to grow/shrink to the 128MB boundary, therefore you can change the application memory size to about 2MB. \ \ For images that require more than 128MB then change the application memory size to > 128MB and mapping will not occur. \ \ If mapping is not available because virtual memory is turned off or the api is not supported by the macintosh OS then mapping is not used. Note that mapping is not support under the classic os-9.x environment under OS-X, however in this case you should be using the OS-X version of Squeak, not the classic version.\ \ c) Use of Carbon event logic for OS-X only. This is a major structural change. \ \ It also encouraged the use of a pthread for interp.c. \ \ All user interaction with the VM follows a new code path, so problems with keyboard or mouse input should be reported asap. Also any issues with application switching, windows being brought to the foreground or sent to the background and usage of the full screen logic should be reported asap.\ \ As part of this change I have build in support for scroll-wheeled multi-button mice under os-x. Thanks to Doug Way for testing this for me. Maybe someone can post to the list what their favorite 3 button scroll wheeled mouse/trackball is.\ \ d) Use of a carbon call to get the dominate Device if you have multiple screens. People with multiple screens should confirm window resizing, full screen on/off works as expected.\ \ e) Corrected comment in sqMacFileLogic.c\ \ f) Changes to sqMacNSPlugin.c. This makes it compile, but it's not usable yet.\ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural \f0 \cf0 \ \ Feb 20th 2002 3.2.4\ \ For this version of the VM I have migrated towards using OS-9 packages. This allows us to provide one \ folder/package that supports os-x and previous operating system versions.\ \ Given Squeak 3.2.4Beta1.app\ The classic VM is found in the *.app:Contents:MacOSClassic, with an alias in *.app:\ The mach-o OS-X VM is found in *.app.Contents:MacOS\ \ If you are running OS-9 then clicking on the *.app or doing drag and drop will just run Squeak, same applies for OS-X.\ If you are running OS-7.5.5 or OS-8.x then the *.app package will appear as a folder, just open and click on the alias within. \ Note that if you want to use classic plugins I suspect you need to put them in the MacOSClassic Folder beside the VM. \ Bundles for os-x go in the same location as the *.app application package.\ \ Changes\ a) Drag and drop at open time with image file that has no meta type, will now open the image, versus prompting you.\ b) Use an os-x window attribute at open time to signal that the window should not be moved by the dock when you go to full screen.\ c) Fix window update logic to use window that needs updating versus stwindowg to fix issues with print dialog windows in classic. \ d) bitblt gets recompile to pickup fixes posted in 3.2 update stream.\ \ Feb 5th 2002 3.2.3\ Changes\ \ a) use old extended time manger to update psudeo-TickCount, versus sigalrm. siglarm make sound recording not work.\ b) fiddle with sound recording and make it work.\ \ Jan 2002 3.2.2\ Changes:\ \ a) AsyncFilePlugin.c Use global to remember security function entry point for performance reasons\ b) FilePlugin.c Use global to remember security function entry point for performance reasons\ c) interp.c Use squeakFileOffsetType versus off_t and add a bunch of checks to handle lack of long long and conversion errors between 64/32 bit integers and LargeInteger objects\ d) readme, it's http://www.mucow.com/Gnuifier.1.cs \ e) SocketPlugin.c Use global to remember security function entry point for performance reasons\ f) sq.h added default sqFilenameFromStringOpen and sqTruncate\ g) sqFilePluginBasicPrims.c revert to anti specs, but ensure #def to fseeko and ftello for 64 bit aware file systems.\ h) sqMacDirectory.c A bit more error checking on bad file names\ i) sqMacFileLogic.c Folders size is now zero in classic, and a bit more checking on bad file names\ j) sqMacSound.c Fixed a problem with sound recording in classic due to a change made in Sept. But sound recording still does not work under os-x\ k) sqMacWindow.c two very important changes:\ \ 1) You can now do FFI calls with the FFI bundle plugin to Mach-o frameworks. \ However you need to rework your api calls. For example:\ apiGetMousePoint: aMacPoint was\ <apicall: void 'GetMouse' (MacPoint*) module:'InterfaceLib'>\ It now is:\ <apicall: void 'GetMouse' (MacPoint*) module:'Carbon.framework'>\ \ If you review /System/Library/Frameworks I'm sure you can come up with interesting ways to \ make mac only squeak images.\ \ I now use map( NULL, gMaxHeapSize, PROT_READ | PROT_WRITE, MAP_ANON | MAP_SHARED,-1,0);\ anonymous memory mapping to 512MB as the squeak memory block. The VM can then grow or shrink\ within the 512MB block, I just move a pointer. \ \ Note in 3.2.1 a slight error on my part restricted Squeak to 50MB. I am of course\ interested to hear about issues with my choice of 512MB. Note a Squeak VM is limited to 2GB under perfect \ conditions, however if any part of the image crosses the 2GB boundary the VM will fail, right now 512MB\ seemed a safe choice.\ \ PhysMem: 60.2M wired, 78.6M active, 412M inactive, 551M used, 217M free\ VM: 3.03G + 55.3M 7847(0) pageins, 1(0) pageouts \ PID COMMAND %CPU TIME #TH #PRTS #DREGS RPRVT RSHRD RSIZE VSIZE\ 422 Squeak VM 0.8% 0:35.59 2 71 100 23.3M 8.53M 26.5M 571M\ \ but I only have one 80,000,000 byte swap file in /var/vm\ \ Note if you turn crash reporter on, then if the VM crashes a nice report should be generated in your log directory. See the Apple documentation for a description of this feature, currently it is set in OS-X 10.1.x via the preferences window for the Console Application. If you have a crash with this VM, please recreate and post the crash log (found in Users/foobar/Library/Logs/ to the Squeak mailing list so we can continue to make the VM fault tolerant.\ \ 3.2.1 Notes\ \ You might need these change sets to build a new VM or to use all the features of this VM with your image, hopefully these will get into the pending 3.2.x image.\ \ Fixes and feature extensions.\ AsyncFileFixFu...hName-JMM.1.cs fix for async test method.\ DragAndDropAtStart-JMM.5.cs fix to enable drag and drop at startup\ \ Needed to compile a VM with VMMaker\ LargeFiles-JMM.3.cs Enable large file support, files > 2GB\ \ Needed to turn this feature on\ MacLongFileName-JMM.5.cs Enable long file names on the mac\ \ The SUnit\ MacLongFileNamesSUnits-JMM.3.cs Test long file names and long directory names and large file support\ \ Kinda optional features some people might need.\ InternetConfiguration-JMM.5.cs Allow internet configuration information access, internal plugin\ UUID-JMM.3.cs Allow UUID generation, internal plugin\ \ a) The ability to get back a UUID. This uses the hosting UUID generator if the\ hosting OS supports it and we have a primitive we can call. If not then we generate\ a type 4 version of a UUID (the random bits one).\ (This requires a special change set)\ \ b) Ability to start squeak on the mac by dragging multiple documents onto the\ image, or drag and drop of stuff onto the running VM icon.\ (This requires a special change set)\ \ c) Usage of the Internet Configuration tool kit to supply information about\ what the mac proxy is etc. etc.\ (This requires a special change set)\ \ d) Migrate file system to use 64 bits. This allows you to read/write and seek\ with files > 2 GB. This includes a change to the VM to convert from/to long\ long integers. It also allows the file system to actually deal with 2GB files,\ the current file interface actually fails once the file exceeds 1GB.\ \ e) For the carbon based Squeak VM we now support long file names 255\ characters. Close both eyes and touch everywhere the mac VM deals with file\ name paths and hope for the best (Actually we write an Sunit to ensure we've\ not broken everything). This also includes the ability to put an image in a\ long file name directory, but right now the image name must stay under 32 characters.\ \ FilePlugin.c changes to support large integers.\ FilePlugin.h changes\ sq.h changes to support large files.\ sqConfig.h changes to resolve some conflicts.\ sqFilePluginBasicPrims.c changes to support large files.\ sqMacAsyncFilePrims.c changes to use fspec versus 255 file path.\ sqMacDirectory.c changes to use hosting OS (OS-X) bsd create and delete directory\ and truncate. dir_look changes as part of the general rewrite.\ sqMacDragAndDrop.c use new call to get path name from fsspec. Use fsspec more, and added \ interface code to setup drag and drop of items at application startup time. max document name\ goes to 1000 characters.\ sqMacFileLogic.c Mostly rewrote!\ sqMacSecurity.c use new file calls.\ sqMacWindow.c \ increase size of vmpath, docpath, imagepath to 1000 chars, shortname to 255 characters.\ add logic for left/right modifier keys \ reworked LoadLibViaPath logic \ sqImageFileOpen uses fsspec versus 255 path name.\ sqImageFileStartLocation uses ffspec.\ bundle support for bundles\ \ e2) interp.c supports get/put of large integers to long long integers.\ e3) fixed fTruncate\ \ Hint getting this to work was a pain. Think of 255 character folder names and nested aliases,\ folder 1 refers to folder 2 which then refers to folder 1 again, just go down the path say 8 times,\ then ask to create a file or directory!\ \ f) Support to change the Mac screen resolution under Squeak control.\ \ g) Fix to unload/load the scrap at startup time to ensure the clipboard is\ correct when starting up the VM.\ \ h) Uncouple the shift key and left/right shift keys on old extended keyboard.\ Also add a call to get which keys are currently pressed on a USB keyboard or\ the USB codes for an apple non-usb keyboard. (Note this isn't working quite yet under OS-X)\ \ i) Changes to enable us to compile the VM under Apple's OS-X Project Builder\ environments.\ \ j) Some rewriting to ensure serial and midi support can be written as external\ plugins.\ \ k) Fiddling to get sound input to work under OS-X\ \ l) Platform.exports changed macintosh to macintoshSqueak to avoid conflict.\ \ m) Memory is allocated at 50MB at start, then will grow or shrink, verus previous carbon apps\ that did 1GB. \ \ n) sqPlatformSpecific.h changes to support long file names and os-x posix file names\ \ o) sqVirtualmachine.c & sqVirtualmachine.h\ #if VM_PROXY_MINOR > 4\ VM->positive64BitIntegerFor = positive64BitIntegerFor;\ VM->positive64BitValueOf = positive64BitValueOf;\ VM->signed64BitIntegerFor = signed64BitIntegerFor;\ VM->signed64BitValueOf = signed64BitValueOf;\ #endif\ \ Beware this causes an interesting problem, if you compile plugins with VM_PROXY_MINOR now set to 5, then they will not work with older VMs. The solution is to define the VM_PROXY_MINOR in the plugin to the value that indicates what features it is using.\ \ p) Changed to use ITimer logic as a 16ms lowres timer to improve performance\ \ q) Changed to use single thread, no thread manager.\ \ r) Changed to use lowres timer in checking for polling time to improve performance\ \ s) It should have faster startup times.\ \ t) It will hide the empty window at startup, then show the squeak window when required.\ \ u) It has a different menu structure.\ \ v) It does less I/O when navigating directories.\ \ The macintosh 3.1Alpha1MT VM, Sept 24th 2001 \ This VM was built with the base 3.1 image at change set #4347\ V3.1.1 at change set #4347\ \ \ We go to V3.1.1 to indicate that the 3.1 VM is being used. In the past the 3.1 Image was used but some changes in the openGL logic makes 3.1 Vm and 3.0 image not quite work correctly with 3d graphics. Although a 3.1 VM will run many images way back to the 2x series no careful study has been done on the ability to do this. So at this point we are indicating this VM is a 3.1 VM and best used with a 3.1 image.\ \ Use of VMMaker to build VM. As of this version everything can be built as an external except for the window logic which hasn't been decoupled from the VM support for the macintosh. \ \ 1) AsynchFilePlugin the security check for ability to create file is now a plugin call.\ 2) B2DPlugin logic changes to fillLinearGradientfromtoat\ 3) b3dRemapFaces, b3dRemapEdges, b3dRemapEdgeList, b3dRemapAET, b3dRemapEdgeVertices, b3dRemapFaceVertices, b3dRemapFaceFree, b3dRemapEdgeFree, b3dRemapAttributes. Some casting and changing of += to = + to make some compilers happy.\ 4) BitBltPlugin added tableLookupat call.\ 5) DropPlugin added setFileAccessCallback to allow the Security Module plugin the ability to give us the entry point to turn security off so we can open files as read only when security is turned on. This was broken in the past. \ 6) FilePlugin added fileOpennamesizewrite,getThisSession to allow for callbacks. Changed the file security logic to use the plugin interface. \ 7) interp.c, fixes for 4347ByteArrayRangeCheck-di, ability to printAllStacks, security calls for image rename, write to use plugin interface.\ 8) Added GetAttributeString, and recordDragDropEvent and entry points for callbacks.\ 9) SecurityPlugin changed when initialization is called to initialize the safe and unsafe directorys, also added entry points for all the testing calls so it can be a true plugin.\ 10) Serialplugin. The serial plugin was redesigned to seperate out MIDI logic. People with MIDI devices and old serial macintosh should check to see if they still work since we lack equipment now to test this obsolete technology set.\ 11) SocketPlugin. Make security calls true plugin calls.\ 12 SoundGenerationPlugin. Removed \ EXPORT(int) SoundGenerationPlugin_primitiveFMSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveOldSampledSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitivePluckedSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveSampledSoundMix(void);\ EXPORT(int) SoundGenerationPlugin_primitiveWaveTableSoundMix(void);\ They were a hack at the plugin level and discussion on the list seemed to show they were no longer used. \ 13) Checking for if defined (__APPLE__) && defined(__MACH__) for the Mac OS-X native development environment\ 14) Changed sqMacAsyncFilePrims, usage of interpreterProxy->, plugin calls for getThisSession. \ 15) Changed sqMacDirectory.c. Removed some utility code and make it a seperate file so that it can be shared between sqMacWindow and other plugins that require them. \ 16) Changed sqMacDragDrop.c. Added plugin callback for getSTWindow, the sqSetFileAccessCallback logic, fileOpennamesizewrite, and secHasFileAccess. Added logic to do the recordDragDropEvent callback to sqMacWindow.c \ 17) sqMacNetwork.c. Some cleanup for the OS-X version of the OpenTransport headers, some constants have name changes\ 18) sqMacNSPlugin.c Use of ioLoadFunctionFrom(NULL, "DropPlugin"); versus explicit call.\ 19) sqMacOpenGL.c. Some cleanup for the OS-X version of the OpenGL headers\ 20) sqMacOpenGLInfo.c. Some cleanup for the OS-X version of the OpenGL headers\ 21) sqMacSecurity.c ioInitSecurity calls back to dragAndDrop plugin to set entry point to turn security off. Added code to create directories if required and ensured callbacks are plugitized.\ 22) sqMacSound.c Some cleanup for the OS-X version of the Sound headers. Use of interpreterProxy-> in the proper places.\ 23) sqMacWindow.c Some cleanup for the OS-X version of the compiler. Fixed saveAsEmbeddedImage, this got broken when we moved from a FAT to a ppc only application. Altered interface to recordDragDropEvent so that it was plugable. Some file path name logic goes to a seperate C source file. The drag and drop plugin is loaded and intialized after the image is loaded but before the interpreter is started, before it was done a bit earlier in the startup process. This also has the effect of initializing the security module.\ 24)sqOpenGLRenderer.c. Some cleanup for the OS-X version of the OpenGL headers\ 25)SurfacePlugin.c gets a hack so it knows when it is internal versus external.\ \ \ \ v3.0.18 at change set #4081\ (Note browser plugin goes to 3.0.23\ \ 1) sqMacOpenGL.c Quite a few changes were made to the code to support it as an internal plugin for the browser. This is because the drawable frame for a browser plugin is a subset of the browser's grafport, so lots more care must be taken to draw in the correct location using OpenGL. We also fixed issues with re-configurating the Open/GL draw area when the window gets resized or goes to full screen, and attempted to ensure multiple screens will work.\ \ 2) sqMacWindow.c, minor fix to cast a constant char * to char * for CW 6.1\ \ \ Browser plugin 3.0.23 fixes\ \ 1) Integerated the H/W Acceleration as an builtin plugin\ 2) Added logic for pre and post event interaction to browser plugin event handler for H/W Acceleration logic. The external H/W Acceleration plugin mostly works with the browser plugin but doesn't work with full screen mode, or if the plugin is embedded in a window or a scrollable frame, so don't use it. Use the browser plugin 3.0.23 or higher which has the H/W Acceleration builtin.\ \ v3.0.17 at change set #4081\ (Note browser plugin goes to 3.0.21)\ \ 1) Added HW acceleration as internal plugin.\ 2) 4079BBAlphaTextFix-ar Fixes the problem with alpha text, changes BitBltPlugin.c \ 3) Added primitive on the mac to truncate a file.\ 4) Added logic to flush volume on a flush file to ensure file and control blocks are flushed.\ 5) For the Carbon VM we increase nextevent wait time if we get sufficent idle time. This should reduce CPU usage under OS-X\ 6) GetAttribute: 1002 now returns the gestaltSystemVersion as a hex string, and getAttribute: 1003 now returns either '68K' or 'PowerPC'.\ 7) Starting with 3.0.17 the VM is build only as a powerpc application. The latest VM as a 68K application will be made available from time to time permits based on people's needs. \ 8) Changes to sqOpenGLRenderer.c to improve performance, OpenGL 1.1 support.\ \ Plugin 3.0.21 fixes\ \ 1) added check for mailto: tag on posts to fix problem with Netscape crashing, and IE hanging.\ 2) Plus above fixes.\ \ What has been fixed/changed.\ v3.0.16 at change set #4041\ (Note browser plugin goes to 3.0.20)\ \ 1) Lots of fixes for BitBlt and HW acceleration.\ 2) Hardware Acceleration plugin goes to 1.0.1. Please note there is a seperate plugin with the same name for Carbon. Doing a get info will identify if the plugin is only usable with Carbon Squeak.\ \ v3.0.15 at change set #4026 (May 17th test version)\ (Note browser plugin goes to 3.0.19)\ \ 1) Added support for OpenGL HW acceleration plugin\ \ Plugin 3.0.19 fixes\ \ a) Obey embedded tag plug\ b) Fix problem with plugin 3.0.17 not working with netscape 4.x\ c) Carbonize plugin for IE 5.1 \ d) Remove debugging printf than occurred on transition to full screen mode\ \ What has been fixed/changed.\ v3.0.14 at change set #3987\ \ (Note plugin goes to 3.0.17)\ \ 1) sqMacDirectory.c. The pathlookup would handle the case of foo:bar::do incorrectly by ignoring the :: path redirection. This has been fixed. However a path lookup will not work if it contains :: and an aliased directory in the middle of the path.\ \ 2) sqMacSecurity.c. The pathname for the untrustedUserDirectory was built incorrectly, and the bug mentioned above in sqMacDirectory.c usually kept this from being noticed.\ \ 3) sqMacWindow.c we added some logic to do the delay for primitiveRelinquishProcessor, but found it had an large effect on a freecell benchmark. I suspect on a Morpic step wait there is nothing to do so primitiveRelinquishProcessor gets called which then affects response time. So for now we revert to the 3.0.11 behavior, good performance and 100% CPU usage!\ \ 4) GetAttribute 1004 returns returns interpreterVersion; which is for example\ "Squeak3.1alpha of 6 February 2001 [latest update: #3987]"\ \ 5) When in full screen mode we now attempt to disable resizing, zooming, or moving the window. The window borders are hidden, but in the past it was feasible to grab an edge and alter it, thus confusing the VM.\ \ 6) Worked on Carbonizing the browser plugin\ \ 7) 3977 & 3978 FloatArray fixes. Makes float arrays go through a new (and working) version of #primitiveHash\ \ 8) Fixed problem with accidental mouse clicks being triggered from pulldown menus on application switching.\ \ 9)\ "Change Set: 3984 BitBltExtensions-ar\ Date: 4 May 2001\ Author: Andreas Raab\ \ The change set includes various extensions for BitBlt with the goal of migrating the useful features from FXBlt into the general BitBlt mechanisms. These include:\ \ * Handling of LSB and MSB forms:\ BitBlt now handles both, MSB and LSB forms (and their conversions). Only instances of Bitmap are assumed to contain big-endian pixels. All others are assumed to be little endian (reason is that we can only identify Bitmap here). Note that 'LSB' and 'MSB' refers to PIXELS, that is a 1bpp LSB form has its left most pixel in the lowest bit whereas a 1bpp MSB form has its left-most pixel in the highest bit.\ \ For pixel depths < 8 this can be different from what your OS supplies (as an example, Windows bitmaps < 8 are big-endian pixels in little-endian words; we might call them 'middle-endian'). We simply don't deal with those - forms are either big or little endian but nothing inbetween.\ \ BitBlt has got an extra combination rule for swapping pixels in the destination form. This can be used to make byte swapping much more efficient (as soon as we've got more VMs with support for it).\ \ * Handling of 'native bitmaps' (aka surfaces):\ BitBlt is now able to deal with OS surfaces that are registered with the surface plugin.\ \ * Handling of full color maps:\ BitBlt has been extended to deal with instances of ColorMap in addition to the prior mechanism of using only indexed lookups and provide an implicit 16-32 bit color conversion. ColorMaps can specify both, a lookup table and an additional set of masks and shifts to apply during the color mapping operation. \ \ Four independent shifts and masks can be given which can be used for a lot more than just color conversion (as an example, one could do byte swapping with this; but see also BitBlt class>>exampleColorMap). \ \ * Better handling of default arguments:\ For most of the required arguments for BitBlt very reasonable default assumptions can be made. This includes the destOrigin (0@0), clipRect (0@0 extent: destForm extent), sourceOrigin (0@0). BitBlt now substitutes these if they are absent (e.g., nil) in the instance provided.\ \ "\ \ \ v3.0.13 at change set #3848\ \ 1) sqMacSecurity was changed to set the unsecure directory to\ system folder:Preferences:Squeak:Internet:My Squeak\ \ v3.0.12 at change set #3848\ 1) Fixed problem with creating My Squeak Folder in Documents Folder with System 8.6\ \ What has been fixed/changed.\ v3.0.11 at change set #3848\ \ 1) sqMacDirectory had a bug when you resolved a path name. The fast resolve always failed, which invoked the slow resolver. Now the fast resolver works.\ \ 2) sqMacSecurity was changed to set the unsecure directory to Documents:My Squeak. \ \ 3) sqMacWindow was changed to fix some issues with Squeak capturing events from other applications and to reduce the number of duplicate mouse events that are generated. Also we capture modifier information directly from the mouse and keyboard on null events to fix some problems with Carbon. We hopefully fixed problems with mouse clicks from foreground applications being seen by Squeak and issues with the OS-X Dock clicks.\ \ 4) sqMacNSPlugin was changed to use the above mouse/keyboard capture code which is much cleaner than the original fix for the bogus modifier information given to us by netscape on a null event. \ \ 5) When you turn full screen off we now correctly reposition the window to the original location versus a few pixels to the left. \ \ What has been fixed/changed.\ v3.0.10 at change set #3848\ \ 1) changed VM exception unwind logic\ 3796-Exception-unwind-V3,ti...@su..., Paul McDonough, Stephen Pair and others\ \ 2) Fixes for the JPEGReader plugin and for Jitter 3\ \ 3) Added minimal Mac VM logic to assist in building a small VM.\ \ 4) Changed how the browser plugin starts up. Now it starts the interpreter running only after getting the browser setwindow command. This seems to fix a race condition that resulted in a crash at startup time with Netscape 4.x\ \ 5) Fixed broken full screen redraw on cmd-tab\ \ 6) Fixed what looked like mouse-down, mouse-down, mouse-up sequence. Now reports mouse-down, mouse up.\ \ 7) Added StarSqueak plugin as internal plugin\ \ 8) Note the current Squeak Plugin should be gotten from the www.squeakland.org site.\ \ v3.0.9 at change set #3776, Boston Snow storm build.\ \ 1) A number of changes were made to the interpreter:\ a) added primitive to change a class.\ b) added primitives to get or put 32bit integers\ c) Fix problem with GC and class reshaping\ d) Better logic for method cache flushing\ \ 2) Added JPEGReader plugin\ \ \ V3.0.8 at change set #3740\ \ 1) The caps lock no longer maps to the shift attribute. So if the caps lock is down mouse clicks will behave normally. \ \ 2) Numerous fixes for the BitBltPlugin plugin\ \ 3) Memory allocation grow/shrink logic for Carbon was added.\ \ 4) Spurious mouse clicks for the browser plugin has been fixed. (This took awhile to fix, I'm sure it's a bug with the Swedish version of Netscape)\ \ 5) The browser plugin will attempt first to allocate memory from the browser heap, then the system heap. Most people when faced with a memory issue usually increase memory for the browser first. However memory for the plugin is controlled by an attribute in the EMBED HTML statement. \ \ V3.0.7\ \ 1) A bug exists in pre OS 8.x that causes a crash in activate window if the standard get file \ dialog comes up before the Squeak Window. I remove the InvalWindow call found in that routine since it is actually redundant.\ \ 2) The standard get file dialog on system 7.x would not terminate if you did a cancel.\ \ 3) The InterfaceLib had to be weak linked to prevent CFM startup issues. \ \ V3.0.6\ \ 1) Alias resolving is less aggressive.\ \ 2) We no longer cache image reads or writes. This was done because OS 9.1 allows you to have very large disk caches, and it's pointless to cache the image read or write.\ \ 3) The file flush primitive now actually flushes the file via an OS call. This was a bug in the CodeWarrior 5.3 source code.\ \ 4) The 68K version was being built with the 68881 math library. This fails on 68040LC chips. We now use the non-68881 math library. Thanks to Bruce ONeel for find this.\ \ 5) A bug was found in the path resolving logic that was added for 3.x. This bug apparently only affects 68K machines, never was identified as a PowerPC issue. \ \ 6) The Netscape plugin needs a properly allocated clip region, this code seemed to work ok on new systems, but fails on system 7.6.1\ \ 7) The security interface will create a Documents folder on the root volume if the default Document folder has been deleted. This is needed for security purposes. \ \ 8) Jitter needs 1MB of free memory to run.\ \ 9) 68K machines require another 32K of stack\ \ 10) Threads now work on 68K machines, but turned off because of possible performance issues. (I think more study is needed).\ \ 11) The 68K version was compiled with better optimization, expect a 15% improvement.\ \ 12) fix for BitBltPlugin ascii = byteAt((sourcePtr + charIndex) - 1);\ \ 13) The interpreter object validation checking code was alter to work correctly.\ \ V3.0.5\ \ 1) sqConfig.h changed due to BE OS header changes\ \ 2) sqMacDirectory.c. Added support for Navigation services or Standard File Get to find the image at startup time when the Squeak.image is not found by the VM. This replaces the DOS like console message that comes up saying that Squeak can't find a image.\ \ 3) A fix to drag and drop for the browser plugin.\ \ 4) We now use Apple's cooperative multithreading package to run the UI in one thread, the VM in the other. This solves some issues with the browser and makes the UI versus VM logic and execution responsibilities easier to understand. \ \ 5) Changed the sqMacNSPlugin.c code to support a 3.0VM using multithreading support. This should give Squeak in a browser better performance. Also changed the full screen support to correctly work with multiple monitors.\ \ 6) BitBltPlugin.c gets one more op code\ \ 7) Added the security interface\ \ 8) Added the file flush primitive\ \ 9) Rewrote the macintosh readme file\ \ 10) Revisited the zoomWindow code and found a bug with multiple monitor support, then I fixed the code to make Full Screen mode work on screen that Squeak window is mostly on, versus the menubar screen. Also if you switch from full screen back it resizes the window back to the orginal size and location before you invoked the full screen. \ \ V3.0.2\ Plugins\ \ Recompiled the internal BitBltPlugin plugin to encorporate:\ Change Set: 258AlphaBlendOpt-dsm\ Author: Duane Maxwell, Paul Phillips/exobox\ a) Short circuits full opaque and full transparent pixels when alpha blending.\ \ Recompiled the internal LargeIntegerPlugin\ 3298LargeIntegersV1-2-sr -- Stephan Rudlof -- 29 November 2000\ 3299LargeIntV1-2For29-sr -- Stephan Rudlof -- 29 November 2000\ \ VM Software\ \ (b) PowerManagement for macintosh is now supported. You can disable the power manager to give you better performance on some powerbooks at the expense of battery life. See the Preferences Panel for details, category 'Performance'\ - changed sq.h\ - changed sqMacWindow.c to add support for power mgr disabling\ \ (c) Drag and Drop support for the macintosh, dragging files from the Finder to the Squeak window is now supported.\ - sqMacDragDrop.c added\ - sqMacWindow.c changed\ \ (d) Added primitive for get macintosh creator and file type.\ - sqMacDirectory.c changed\ \ (e) Carbon support. Thanks to Karl Goiser ka...@wa... for work he did on sound and other Carbonization hotspots.\ - sqMacAsyncFilePrims.c changed\ - sqMacFFIPPC.c changed (not supported for Carbon)\ - sqMacNetwork.c changed per Apple tech note 1173 Carbon asset tracking\ -sqMacSerialAndMIDIPort.c chnaged (Not supported for Carbon)\ - sqMacSound.c changed per Apple tech note 1198 Carbon double sound buffer playing\ - sqMacWindow.c changed (various changes for Carbon)\ \ (f) Poll at least 60 times a second for the mouse if required. Previous 2.9.x VM did it 30 times but this is too slow and 2.8.x VM do it 60 times a second.\ \ (g) Reworked path support Thanks to Karl Goiser ka...@wa... for starting this.\ - sqmacDirectory.c changed reworked lookupPath\ - sqMacWindow.c changed, added GetApplicationDirectory to get application directory\ \ (h) I rewrote the sqMacDirectory.c logic to enable proper understanding of Apple's Alias logic. This means for example you can alias the "SqueakV3.sources" file and then only have one copy and have all your images point to it. \ \ (i) Added Zoom Window support.\ \ (j) Change the Squeak change file icon to better match Apple's visual guidelines, Thanks to Doug Way for the suggestion and the new icons.\ \ (k) The sound plugins have changed...\ \ (j) Dropped FFI out of the base Squeak because of security concerns\ \ (k) Compiled for 750(G3) processor versus 603\ \ (l) Added screenDepth primitive\ \ The 3.0.x VM contains most of the optional plugins, you might want to check this by inspecting "Smalltalk listBuiltinModules" to see where your plugins are coming from. In some case people have been accidentally overriding the new builtin plugins with older plugins. \ \ The file "Squeak 3.0Alpha10MT.sig" contains the PGP signature for the Squeak 3.0Alpha10MT VM\ \ John M McIntosh jo...@sm...\ \ \ \ \ \ \ \ \ } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:46:53
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28178/squeak/platforms/Mac OS/vm Modified Files: sqMacNSPlugin.c Log Message: 3.7.4b3 Compiler warning cleanup. Add two new parms, imageName to indicate the image name. failureURL to indicate which web page to redirect to if the image is not found Index: sqMacNSPlugin.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacNSPlugin.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** sqMacNSPlugin.c 19 Feb 2004 04:34:42 -0000 1.16 --- sqMacNSPlugin.c 3 Aug 2004 02:46:43 -0000 1.17 *************** *** 66,69 **** --- 66,70 ---- May 2002 JMM 3.2.7b1 Ok lets see if the sucker will compile again 3.7.0bx Nov 24th, 2003 JMM gCurrentVMEncoding + July 31st, 2004 JMM 3.7.4b2 Add imageName and URL redirection. **********/ *************** *** 82,86 **** #include <Gestalt.h> #include <Notification.h> - #include <Strings.h> #include <MacWindows.h> #include <Movies.h> --- 83,86 ---- *************** *** 90,93 **** --- 90,97 ---- #include <Threads.h> + #if defined ( __APPLE__ ) && defined ( __MACH__ ) + #include <pthread.h> + #endif + #if TARGET_API_MAC_CARBON #define EnableMenuItemCarbon(m1,v1) EnableMenuItem(m1,v1); *************** *** 96,100 **** #define EnableMenuItemCarbon(m1,v1) EnableItem(m1,v1); #define DisableMenuItemCarbon(m1,v1) DisableItem(m1,v1); - inline pascal long InvalWindowRect(WindowRef window, const Rect * bounds) {InvalRect (bounds);} #endif --- 100,103 ---- *************** *** 113,117 **** * **********/ - //#define ENABLE_URL_FETCH #define IMAGE_NAME "SqueakPlugin.image" --- 116,119 ---- *************** *** 181,186 **** int needsUpdate = false; NPWindow* netscapeWindow = nil; - Str255 notificationMsg = ""; - NMRec notifyRec; int pluginArgCount = 0; char *pluginArgName[MAX_ARG_STRING_LENGTH]; --- 183,186 ---- *************** *** 188,192 **** Boolean ignoreFirstEvent=false,gIWasRunning=false; int squeakHeapMBytes = STARTINGsqueakHeapMBytes; /* default heap size, override via the "memory" EMBED tag */ ! char squeakPluginImageName[] = IMAGE_NAME; NPP thisInstance = nil; WindowPtr gAFullscreenWindow = nil; --- 188,193 ---- Boolean ignoreFirstEvent=false,gIWasRunning=false; int squeakHeapMBytes = STARTINGsqueakHeapMBytes; /* default heap size, override via the "memory" EMBED tag */ ! char squeakPluginImageName[256] = IMAGE_NAME; ! char failureURL[1024] = ""; NPP thisInstance = nil; WindowPtr gAFullscreenWindow = nil; *************** *** 213,217 **** /*** From VM ***/ ! int checkImageVersionFromstartingAt(sqImageFile f, int imageOffset); int getLongFromFileswap(sqImageFile f, int swapFlag); extern int inputSemaphoreIndex; --- 214,218 ---- /*** From VM ***/ ! int checkImageVersionFromstartingAt(sqImageFile f, squeakFileOffsetType imageOffset); int getLongFromFileswap(sqImageFile f, int swapFlag); extern int inputSemaphoreIndex; *************** *** 324,328 **** int16 argc, char* argn[], char* argv[], NPSavedData* saved) { int i; - OSErr err; /* only one Squeak instance can be active at a time */ --- 325,328 ---- *************** *** 340,343 **** --- 340,349 ---- pluginArgValue[i] = (char *) NPN_MemAlloc(strlen(argv[i]) + 1); strcpy(pluginArgValue[i], argv[i]); + if (CaseInsensitiveMatch(pluginArgName[i], "imagename")) { + strcpy(squeakPluginImageName,pluginArgValue[i]); + } + if (CaseInsensitiveMatch(pluginArgName[i], "failureurl")) { + strcpy(failureURL,pluginArgValue[i]); + } if (CaseInsensitiveMatch(pluginArgName[i], "memory")) { strcpy(rememberMemoryString,pluginArgValue[i]); *************** *** 346,352 **** memory = nil; ReadSqueakImage(); if (!memory) return NPERR_GENERIC_ERROR; - thisInstance = instance; gSavePortClipRgn = NewRgn(); --- 352,358 ---- memory = nil; + thisInstance = instance; ReadSqueakImage(); if (!memory) return NPERR_GENERIC_ERROR; gSavePortClipRgn = NewRgn(); *************** *** 369,373 **** +++++++++++++++++++++++++++++++++++++++++++++++++*/ NPError NPP_Destroy(NPP instance, NPSavedData** save) { - long i; exitRequested = true; --- 375,378 ---- *************** *** 743,748 **** --- 748,755 ---- EndUpdate(FrontWindow()); //EndUpdate((WindowPtr) eventPtr->message); + #if defined ( __APPLE__ ) && defined ( __MACH__ ) pthread_mutex_lock(&gEventDrawLock); pthread_mutex_unlock(&gEventNSAccept); + #endif return true; } *************** *** 750,753 **** --- 757,761 ---- fullDisplayUpdate(); /* ask VM to call ioShowDisplay */ } + #if defined ( __APPLE__ ) && defined ( __MACH__ ) if (!getFullScreenFlag()) { ProcessSerialNumber psn = { 0, kCurrentProcess }; *************** *** 762,765 **** --- 770,774 ---- return false; } + #endif } *************** *** 775,783 **** --- 784,796 ---- } */ if (getFullScreenFlag()) { + #if defined ( __APPLE__ ) && defined ( __MACH__ ) pthread_mutex_lock(&gEventDrawLock); pthread_mutex_unlock(&gEventNSAccept); + #endif ok = WaitNextEvent(everyEvent, &theEvent,1,null); + #if defined ( __APPLE__ ) && defined ( __MACH__ ) pthread_mutex_unlock(&gEventDrawLock); pthread_mutex_lock(&gEventNSAccept); + #endif eventPtr = &theEvent; SqueakYieldToAnyThread(); *************** *** 857,866 **** if (stWindow == nil || exitRequested) { ! return; } StartDraw(); if (exitRequested) ! return; dstRect.right = width; --- 870,879 ---- if (stWindow == nil || exitRequested) { ! return 0; } StartDraw(); if (exitRequested) ! return 0; dstRect.right = width; *************** *** 893,899 **** CopyBits((BitMap *) *stPixMap, GetPortBitMapForCopyBits(GetWindowPort(stWindow)), &srcRect, &dstRect, srcCopy, maskRect); #if defined ( __APPLE__ ) && defined ( __MACH__ ) ! QDFlushPortBuffer ((struct CGrafPort*)stWindow, maskRect); #endif ! EndDraw(); } --- 906,913 ---- CopyBits((BitMap *) *stPixMap, GetPortBitMapForCopyBits(GetWindowPort(stWindow)), &srcRect, &dstRect, srcCopy, maskRect); #if defined ( __APPLE__ ) && defined ( __MACH__ ) ! QDFlushPortBuffer ((CGrafPtr)stWindow, maskRect); #endif ! EndDraw(); ! return 0; } *************** *** 912,916 **** int headerStart; int headerSize; - int heapSize; plugInInit(squeakPluginImageName); --- 926,929 ---- *************** *** 918,927 **** /* read the image file and allocate memory for Squeak heap */ ! f = sqImageFileOpen(imageName, "rb"); if (f == NULL) { strcpy(msg, "Could not open Squeak image file \""); strcat(msg, imageName); strcat(msg, "\""); plugInNotifyUser(msg); return; } --- 931,950 ---- /* read the image file and allocate memory for Squeak heap */ ! if (CaseInsensitiveMatch(imageName, ! "Problems finding the Internet folder in the Squeak Preference folder or finding the SqueakPlugin.image")) ! f = NULL; ! else ! f = sqImageFileOpen(imageName, "rb"); ! if (f == NULL) { + if (failureURL[0] != 0x00) { + // July 31/2004 added per Michaels request for squeakland camp in chicago + NPN_GetURL(thisInstance, failureURL, "_self"); + } else { strcpy(msg, "Could not open Squeak image file \""); strcat(msg, imageName); strcat(msg, "\""); plugInNotifyUser(msg); + } return; } *************** *** 947,950 **** --- 970,974 ---- setInterruptKeycode(515); /* ctrl-C, since Netscape blocks cmd-. */ setFullScreenFlag(false); //Note image can be saved with true + SetUpTimers(); } *************** *** 957,961 **** int handle, notifyData; - long junk; char mail[8]; NPError err; --- 981,984 ---- *************** *** 973,977 **** strncpy(mail,url,7); mail[7] = 0x00; ! #ifdef TARGET_API_MAC_CARBON err = CFNetworkGoGetURL(thisInstance, url, target, (void *) notifyData); #else --- 996,1000 ---- strncpy(mail,url,7); mail[7] = 0x00; ! #if defined ( __APPLE__ ) && defined ( __MACH__ ) err = CFNetworkGoGetURL(thisInstance, url, target, (void *) notifyData); #else *************** *** 990,995 **** int handle, notifyData; ! long junk; NPError error; if (thisInstance == null) return -1; --- 1013,1019 ---- int handle, notifyData; ! #if !(defined ( __APPLE__ ) && defined ( __MACH__ )) NPError error; + #endif if (thisInstance == null) return -1; *************** *** 1002,1006 **** notifyData = (urlRequests[handle].id << 8) + handle; ! #ifdef TARGET_API_MAC_CARBON { OSStatus status; //kURLDisplayProgressFlag --- 1026,1030 ---- notifyData = (urlRequests[handle].id << 8) + handle; ! #if defined ( __APPLE__ ) && defined ( __MACH__ ) { OSStatus status; //kURLDisplayProgressFlag *************** *** 1177,1180 **** --- 1201,1205 ---- ioSetFullScreenRestore(); exitRequested = true; + return 0; } *************** *** 1213,1217 **** if (fullScreen) { ! if (getFullScreenFlag()) return; desiredWidth = 0; --- 1238,1242 ---- if (fullScreen) { ! if (getFullScreenFlag()) return 0; desiredWidth = 0; *************** *** 1219,1223 **** oldNetscapeWindow = netscapeWindow; oldStWindow = stWindow; ! #if TARGET_API_MAC_CARBON GetWindowGreatestAreaDevice((WindowPtr) FrontWindow(),kWindowContentRgn,&dominantGDevice,&windRect); #else --- 1244,1248 ---- oldNetscapeWindow = netscapeWindow; oldStWindow = stWindow; ! #if defined ( __APPLE__ ) && defined ( __MACH__ ) GetWindowGreatestAreaDevice((WindowPtr) FrontWindow(),kWindowContentRgn,&dominantGDevice,&windRect); #else *************** *** 1249,1257 **** ignoreFirstEvent = true; } else { ! if (!getFullScreenFlag()) return; setFullScreenFlag(false); ioSetFullScreenRestore(); } ! } --- 1274,1282 ---- ignoreFirstEvent = true; } else { ! if (!getFullScreenFlag()) return 0; setFullScreenFlag(false); ioSetFullScreenRestore(); } ! return 0; } *************** *** 1264,1275 **** EndFullScreen(gRestorableStateForScreen,nil); if (gAFullscreenWindow == nil) ! return; gRestorableStateForScreen = nil; netscapeWindow = oldNetscapeWindow; stWindow = oldStWindow; err = ShowHideProcess (&psn,false); waitAFewMilliseconds(); } } --- 1289,1303 ---- EndFullScreen(gRestorableStateForScreen,nil); if (gAFullscreenWindow == nil) ! return 0; gRestorableStateForScreen = nil; netscapeWindow = oldNetscapeWindow; stWindow = oldStWindow; + #if defined ( __APPLE__ ) && defined ( __MACH__ ) err = ShowHideProcess (&psn,false); waitAFewMilliseconds(); + #endif } + return 0; } *************** *** 1355,1358 **** --- 1383,1387 ---- interpreterProxy->pop(1); interpreterProxy->pushBool(1); + return 0; } *************** *** 1360,1364 **** /*** Optional URL Fetch Primitives ***/ #ifdef ENABLE_URL_FETCH ! #ifdef TARGET_API_MAC_CARBON int CFNetworkGoGetURL(NPP instance, const char* url, const char* window, void* notifyData) --- 1389,1393 ---- /*** Optional URL Fetch Primitives ***/ #ifdef ENABLE_URL_FETCH ! #if defined ( __APPLE__ ) && defined ( __MACH__ ) int CFNetworkGoGetURL(NPP instance, const char* url, const char* window, void* notifyData) *************** *** 1371,1375 **** error = URLSimpleDownload (url,&tempFileSpec,NULL,NULL,NULL,notifyData); PathToFile(fileName,MAX_STRING_LENGTH, &tempFileSpec,gCurrentVMEncoding); ! URLRequestCompleted(notifyData, fileName); } --- 1400,1405 ---- error = URLSimpleDownload (url,&tempFileSpec,NULL,NULL,NULL,notifyData); PathToFile(fileName,MAX_STRING_LENGTH, &tempFileSpec,gCurrentVMEncoding); ! URLRequestCompleted((int) notifyData, fileName); ! return 0; } *************** *** 1378,1383 **** CFURLRef sillyThing; CFStringRef filePath; - FSRef theFSRef; - OSErr err; strcpy(tempName,tmpnam(0)); --- 1408,1411 ---- *************** *** 1407,1410 **** --- 1435,1439 ---- URLRequestDestroy(handle); interpreterProxy->pop(1); + return 0; } *************** *** 1448,1451 **** --- 1477,1481 ---- interpreterProxy->pop(2); interpreterProxy->push(fileObj); + return 0; } *************** *** 1483,1486 **** --- 1513,1517 ---- interpreterProxy->pop(2); interpreterProxy->push(resultObj); + return 0; } *************** *** 1543,1546 **** --- 1574,1578 ---- interpreterProxy->pop(4); interpreterProxy->pushInteger(handle); + return 0; } *************** *** 1632,1635 **** --- 1664,1668 ---- interpreterProxy->pop(5); interpreterProxy->pushInteger(handle); + return 0; } *************** *** 1675,1678 **** --- 1708,1712 ---- interpreterProxy->pop(3); interpreterProxy->pushInteger(handle); + return 0; } *************** *** 1758,1762 **** void ExitCleanup(void) { /* Clean up and stop running plugin. */ - Boolean URLFetchInProgress; int i; --- 1792,1795 ---- *************** *** 1771,1774 **** --- 1804,1808 ---- #endif /* do { This hangs things, not sure what to do about outstanding URL requests... + Boolean URLFetchInProgress; URLFetchInProgress = false; for (i = 0; i < URL_REQUEST_COUNT; i++) { *************** *** 1813,1828 **** int plugInNotifyUser(char *msg) { /* Notify the user that there was a problem starting Squeak. */ CopyCStringToPascal(msg,notificationMsg); /* copy message, since notification is asynchronous */ ! notifyRec.qType = nmType; ! notifyRec.nmMark = false; /* no mark in applications menu */ ! notifyRec.nmIcon = nil; /* no menu bar icon */ ! notifyRec.nmSound = (Handle) -1; /* -1 means system beep */ ! notifyRec.nmStr = notificationMsg; ! notifyRec.nmResp = (NMUPP) -1; /* -1 means remove notification when user confirms */ /* add to notification queue */ ! NMInstall(¬ifyRec); } --- 1847,1865 ---- int plugInNotifyUser(char *msg) { /* Notify the user that there was a problem starting Squeak. */ + unsigned char * notificationMsg = malloc(256); + NMRec *notifyRec = malloc(sizeof(NMRec)); CopyCStringToPascal(msg,notificationMsg); /* copy message, since notification is asynchronous */ ! notifyRec->qType = nmType; ! notifyRec->nmMark = false; /* no mark in applications menu */ ! notifyRec->nmIcon = nil; /* no menu bar icon */ ! notifyRec->nmSound = (Handle) -1; /* -1 means system beep */ ! notifyRec->nmStr = notificationMsg; ! notifyRec->nmResp = (NMUPP) -1; /* -1 means remove notification when user confirms */ /* add to notification queue */ ! NMInstall(notifyRec); ! return 0; } *************** *** 1918,1921 **** --- 1955,1960 ---- } + #ifdef JMMFoo + /* LowRunAppleScript compiles and runs an AppleScript provided as text in the buffer pointed to by text. textLength *************** *** 2004,2006 **** --- 2043,2046 ---- */ + #endif #endif \ No newline at end of file |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:43
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27667/squeak/platforms/Mac OS/vm Modified Files: sqMacWindow.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacWindow.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacWindow.c,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** sqMacWindow.c 23 Apr 2004 20:48:31 -0000 1.31 --- sqMacWindow.c 3 Aug 2004 02:42:35 -0000 1.32 *************** *** 32,38 **** #include "sqMacUIMenuBar.h" - #if !TARGET_API_MAC_CARBON - inline pascal long InvalWindowRect(WindowRef window, const Rect * bounds) {InvalRect (bounds);} - #endif /*** Variables -- Imported from Virtual Machine ***/ --- 32,35 ---- *************** *** 143,146 **** --- 140,144 ---- setFullScreenFlag(false); } + return 0; } *************** *** 151,155 **** void sqShowWindow(void) { ! int giLocker,return_value=0; giLocker = interpreterProxy->ioLoadFunctionFrom("getUIToLock", ""); if (giLocker != 0) { --- 149,153 ---- void sqShowWindow(void) { ! int giLocker; giLocker = interpreterProxy->ioLoadFunctionFrom("getUIToLock", ""); if (giLocker != 0) { *************** *** 167,170 **** --- 165,169 ---- void sqShowWindowActual(void){ #else + void sqShowWindow(void); void sqShowWindow(void) { #endif *************** *** 185,189 **** if (stWindow == nil) { ! return; } --- 184,188 ---- if (stWindow == nil) { ! return 0; } *************** *** 228,231 **** --- 227,231 ---- gWindowsIsInvisible = false; } + return 0; } #else *************** *** 243,247 **** if ((stWindow == nil) || (affectedW <= 0) || (affectedH <= 0)){ ! return; } --- 243,247 ---- if ((stWindow == nil) || (affectedW <= 0) || (affectedH <= 0)){ ! return 0; } *************** *** 292,296 **** else if (depth == 16) while (affectedH--) { ! register long i,count= bytes/2; register short *to= (short *) out; register short *from= (short *) in; --- 292,296 ---- else if (depth == 16) while (affectedH--) { ! register long count= bytes/2; register short *to= (short *) out; register short *from= (short *) in; *************** *** 439,442 **** --- 439,443 ---- // NOT YET givers poor performance SetupSurface(); } + return 0; } *************** *** 572,575 **** --- 573,577 ---- int ioForceDisplayUpdate(void) { /* do nothing on a Mac */ + return 0; } *************** *** 625,629 **** int ioSetCursor(int cursorBitsIndex, int offsetX, int offsetY) { /* Old version; forward to new version. */ ! ioSetCursorWithMask(cursorBitsIndex, nil, offsetX, offsetY); } --- 627,631 ---- int ioSetCursor(int cursorBitsIndex, int offsetX, int offsetY) { /* Old version; forward to new version. */ ! return ioSetCursorWithMask(cursorBitsIndex, nil, offsetX, offsetY); } *************** *** 657,660 **** --- 659,663 ---- macCursor.hotSpot.v = -offsetY; SetCursor(&macCursor); + return 0; } *************** *** 976,979 **** --- 979,983 ---- pascal void ModeListIterator(void *userData, DMListIndexType itemIndex, DMDisplayModeListEntryPtr displaymodeInfo) { + #pragma unused(itemIndex) unsigned long depthCount; short iCount; |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:36
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/UUIDPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27641/squeak/platforms/Mac OS/plugins/UUIDPlugin Modified Files: sqMacUUID.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacUUID.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/UUIDPlugin/sqMacUUID.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqMacUUID.c 5 Feb 2002 20:05:57 -0000 1.3 --- sqMacUUID.c 3 Aug 2004 02:42:26 -0000 1.4 *************** *** 29,32 **** --- 29,33 ---- memcpy((char *) location,(char *) &theBytes,sizeof(sqUUID)); CFRelease(theUUID); + return 0; } *************** *** 45,49 **** --- 46,52 ---- MakeUUID(sqUUID location) { + #pragma unused(location) interpreterProxy->success(false); + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:28
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27624/squeak/platforms/Mac OS/vm Modified Files: sqMacUIEvents.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacUIEvents.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacUIEvents.c,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** sqMacUIEvents.c 23 Apr 2004 20:49:34 -0000 1.22 --- sqMacUIEvents.c 3 Aug 2004 02:42:18 -0000 1.23 *************** *** 165,173 **** void HandleMouseDown(EventRecord *theEvent); int ioProcessEvents(void) { /* This is a noop when running as a plugin; the browser handles events. */ static unsigned long nextPollTick = 0, nextPowerCheck=0, disableIdleTickLimit=0; unsigned long clockTime; - #ifndef BROWSERPLUGIN clockTime = ioLowResMSecs(); if (abs(nextPollTick - clockTime) >= 16) { --- 165,173 ---- void HandleMouseDown(EventRecord *theEvent); int ioProcessEvents(void) { + #ifndef BROWSERPLUGIN /* This is a noop when running as a plugin; the browser handles events. */ static unsigned long nextPollTick = 0, nextPowerCheck=0, disableIdleTickLimit=0; unsigned long clockTime; clockTime = ioLowResMSecs(); if (abs(nextPollTick - clockTime) >= 16) { *************** *** 195,198 **** --- 195,199 ---- } #endif + return 0; } *************** *** 1455,1459 **** OSStatus result = eventNotHandledErr; /* report failure by default */ static RgnHandle ioWinRgn=null; - WindowPtr theWindow; extern Boolean gSqueakWindowIsFloating,gSqueakFloatingWindowGetsFocus; --- 1456,1459 ---- *************** *** 1919,1922 **** --- 1919,1923 ---- pthread_exit(null); } + return 0; } #endif *************** *** 1934,1937 **** --- 1935,1939 ---- pthread_mutex_unlock(&gEventUILock); } + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:17
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27608/squeak/platforms/Mac OS/vm Modified Files: sqMacUIClipBoard.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacUIClipBoard.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacUIClipBoard.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sqMacUIClipBoard.c 23 Feb 2002 11:25:55 -0000 1.2 --- sqMacUIClipBoard.c 3 Aug 2004 02:42:09 -0000 1.3 *************** *** 64,67 **** --- 64,68 ---- err = GetCurrentScrap (&scrap); err = PutScrapFlavor ( scrap, kScrapFlavorTypeText, kScrapFlavorMaskNone , count, (const void *) (byteArrayIndex + startIndex)); + return 0; } *************** *** 119,122 **** --- 120,124 ---- ZeroScrap(); PutScrap(count, 'TEXT', (char *) (byteArrayIndex + startIndex)); + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:08
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27553/squeak/platforms/Mac OS/vm Modified Files: sqMacUIAppleEvents.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacUIAppleEvents.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacUIAppleEvents.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqMacUIAppleEvents.c 23 Apr 2004 20:46:38 -0000 1.3 --- sqMacUIAppleEvents.c 3 Aug 2004 02:42:00 -0000 1.4 *************** *** 57,60 **** --- 57,63 ---- char cname[256]; FSSpec workingDirectory; + #pragma unused(aevt) + #pragma unused(refCon) + #pragma unused(reply) // Get spec to the working directory *************** *** 106,110 **** char shortImageName[256]; ! reply; refCon; /* reference args to avoid compiler warnings */ /* record path to VM's home folder */ --- 109,114 ---- char shortImageName[256]; ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ /* record path to VM's home folder */ *************** *** 289,298 **** pascal OSErr HandlePrintDocEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! aevt; reply; refCon; /* reference args to avoid compiler warnings */ return errAEEventNotHandled; } pascal OSErr HandleQuitAppEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! aevt; reply; refCon; /* reference args to avoid compiler warnings */ return noErr; //Note under Carbon it sends us a Quit event, but we don't process because image might not get saved? } --- 293,306 ---- pascal OSErr HandlePrintDocEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! #pragma unused(aevt) ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ return errAEEventNotHandled; } pascal OSErr HandleQuitAppEvent(const AEDescList *aevt, AEDescList *reply, long refCon) { ! #pragma unused(aevt) ! #pragma unused(reply) ! #pragma unused(refCon) /* reference args to avoid compiler warnings */ return noErr; //Note under Carbon it sends us a Quit event, but we don't process because image might not get saved? } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:42:00
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27536/squeak/platforms/Mac OS/vm Modified Files: sqMacTime.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacTime.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacTime.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** sqMacTime.c 23 Apr 2004 20:47:52 -0000 1.15 --- sqMacTime.c 3 Aug 2004 02:41:48 -0000 1.16 *************** *** 74,78 **** gTMTask.tmReserved = 0; ! InsXTime((QElemPtr)&gTMTask); PrimeTime((QElemPtr)&gTMTask,LOW_RES_TICK_MSECS); --- 74,78 ---- gTMTask.tmReserved = 0; ! InsXTime((QElemPtr)(&gTMTask)); PrimeTime((QElemPtr)&gTMTask,LOW_RES_TICK_MSECS); *************** *** 238,243 **** #if defined ( __APPLE__ ) && defined ( __MACH__ ) static Boolean doInitialization=true; ! int realTimeToWait,now,err; ! struct timespec tspec; if (doInitialization) { --- 238,242 ---- #if defined ( __APPLE__ ) && defined ( __MACH__ ) static Boolean doInitialization=true; ! int realTimeToWait,now; if (doInitialization) { *************** *** 253,257 **** realTimeToWait = 16; else { ! return; } else --- 252,256 ---- realTimeToWait = 16; else { ! return 0; } else *************** *** 277,284 **** if ((getNextWakeupTick() <= (ioMSecs() & 536870911)) && (getNextWakeupTick() != 0)) { setInterruptCheckCounter(0); ! return; } #endif #endif } #undef ioMSecs --- 276,284 ---- if ((getNextWakeupTick() <= (ioMSecs() & 536870911)) && (getNextWakeupTick() != 0)) { setInterruptCheckCounter(0); ! return 0; } #endif #endif + return 0; } #undef ioMSecs |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:49
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SoundPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27509/squeak/platforms/Mac OS/plugins/SoundPlugin Modified Files: sqMacSound.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacSound.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SoundPlugin/sqMacSound.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sqMacSound.c 8 Feb 2003 18:30:35 -0000 1.5 --- sqMacSound.c 3 Aug 2004 02:41:40 -0000 1.6 *************** *** 36,40 **** /* initialize/shutdown */ int soundInit() { return true; } ! int soundShutdown() { snd_Stop(); } /* End of adjustments for pluginized VM */ --- 36,40 ---- /* initialize/shutdown */ int soundInit() { return true; } ! int soundShutdown() { snd_Stop(); return 1;} /* End of adjustments for pluginized VM */ *************** *** 199,203 **** PlayStateRec *state; ! chan; /* reference argument to avoid compiler warnings */ state = (PlayStateRec *) buf->dbUserInfo[0]; --- 199,203 ---- PlayStateRec *state; ! #pragma unused(chan) /* reference argument to avoid compiler warnings */ state = (PlayStateRec *) buf->dbUserInfo[0]; *************** *** 237,240 **** --- 237,241 ---- } } + return 0; } *************** *** 307,312 **** } else { /* mono */ /* if mono, average the left and right channels of the source */ while (src < end) { ! *dst++ = (*src++ + *src++) / 2; } } --- 308,316 ---- } else { /* mono */ /* if mono, average the left and right channels of the source */ + unsigned int a,b; while (src < end) { ! a = *src++; ! b = *src++; ! *dst++ = (a+b) / 2; } } *************** *** 343,349 **** } else { /* mono */ /* if mono, average the left and right channels of the source */ dst = (short int *) (dstBufPtr + (dstStartIndex * 2)); while (src < end) { ! sample = *dst + ((*src++ + *src++) / 2); if (sample > 32767) sample = 32767; if (sample < -32767) sample = -32767; --- 347,356 ---- } else { /* mono */ /* if mono, average the left and right channels of the source */ + unsigned int a,b; dst = (short int *) (dstBufPtr + (dstStartIndex * 2)); while (src < end) { ! a = *src++; ! b = *src++; ! sample = *dst + ((a+b) / 2); if (sample > 32767) sample = 32767; if (sample < -32767) sample = -32767; *************** *** 352,355 **** --- 359,363 ---- } } + return 0; } *************** *** 485,489 **** long i, junk; ! if (!bufState.open) return; bufState.open = false; --- 493,497 ---- long i, junk; ! if (!bufState.open) return 0; bufState.open = false; *************** *** 508,511 **** --- 516,520 ---- } bufState.open = false; + return 0; } *************** *** 519,523 **** if (!recordingInProgress || (level < 0) || (level > 1000)) { interpreterProxy->success(false); ! return; /* noop if not recording */ } --- 528,532 ---- if (!recordingInProgress || (level < 0) || (level > 1000)) { interpreterProxy->success(false); ! return 0; /* noop if not recording */ } *************** *** 525,528 **** --- 534,538 ---- err = SPBSetDeviceInfo(soundInputRefNum, siInputGain, &inputGainArg); /* don't fail on error; hardware may not support setting the gain */ + return 0; } *************** *** 545,549 **** if (err != noErr) { interpreterProxy->success(false); ! return; } --- 555,559 ---- if (err != noErr) { interpreterProxy->success(false); ! return 0; } *************** *** 559,563 **** interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return; } --- 569,573 ---- interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return 0; } *************** *** 575,579 **** interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return; } --- 585,589 ---- interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return 0; } *************** *** 587,591 **** interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return; } } --- 597,601 ---- interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return 0; } } *************** *** 653,660 **** interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return; } recordingInProgress = true; } --- 663,671 ---- interpreterProxy->success(false); SPBCloseDevice(soundInputRefNum); ! return 0; } recordingInProgress = true; + return 0; } *************** *** 663,667 **** int err; ! if (!recordingInProgress) return; /* noop if not recording */ err = SPBStopRecording(soundInputRefNum); --- 674,678 ---- int err; ! if (!recordingInProgress) return 0; /* noop if not recording */ err = SPBStopRecording(soundInputRefNum); *************** *** 685,688 **** --- 696,700 ---- recordBuffer2.recordSemaIndex = 0; recordingInProgress = false; + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:40
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SerialPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27490/squeak/platforms/Mac OS/plugins/SerialPlugin Modified Files: sqMacSerialPort.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacSerialPort.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SerialPlugin/sqMacSerialPort.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqMacSerialPort.c 1 Mar 2002 00:18:31 -0000 1.3 --- sqMacSerialPort.c 3 Aug 2004 02:41:31 -0000 1.4 *************** *** 51,54 **** --- 51,55 ---- serialPortClose(i); } + return 1; } *************** *** 119,123 **** CopyPascalStringToC((void *) *(serialPtr->inputDriverName),inName); CopyPascalStringToC((void *) *(serialPtr->outputDriverName),outName); ! return; } count++; --- 120,124 ---- CopyPascalStringToC((void *) *(serialPtr->inputDriverName),inName); CopyPascalStringToC((void *) *(serialPtr->outputDriverName),outName); ! return 0; } count++; *************** *** 126,129 **** --- 127,131 ---- } #endif + return 0; } *************** *** 162,165 **** --- 164,168 ---- } #endif + return 0; } /*** Serial Port Functions ***/ *************** *** 172,176 **** if (!serialPortIsOpen(portNum)) { ! return; /* already closed */ } osErr = KillIO(outRefNum[portNum]); --- 175,179 ---- if (!serialPortIsOpen(portNum)) { ! return 0; /* already closed */ } osErr = KillIO(outRefNum[portNum]); *************** *** 190,193 **** --- 193,197 ---- outRefNum[portNum] = 0; #endif + return 0; } *************** *** 298,301 **** --- 302,306 ---- } #endif + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:32
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SecurityPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27470/squeak/platforms/Mac OS/plugins/SecurityPlugin Modified Files: sqMacSecurity.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacSecurity.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SecurityPlugin/sqMacSecurity.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** sqMacSecurity.c 2 Dec 2003 04:52:50 -0000 1.5 --- sqMacSecurity.c 3 Aug 2004 02:41:24 -0000 1.6 *************** *** 103,110 **** --- 103,112 ---- int ioCanGetFileTypeOfSize(char* pathString, int pathStringLength) { + #pragma unused(pathString,pathStringLength) return 1; /* of no importance here */ } int ioCanSetFileTypeOfSize(char* pathString, int pathStringLength) { + #pragma unused(pathString,pathStringLength) return 1; /* of no importance here */ } *************** *** 113,116 **** --- 115,119 ---- int ioDisableFileAccess(void) { allowFileAccess = 0; + return 0; } *************** *** 137,140 **** --- 140,144 ---- int ioDisableImageWrite() { allowImageWrite = 0; + return 0; } *************** *** 148,159 **** --- 152,166 ---- int ioCanCreateSocketOfType(int netType, int socketType) { + #pragma unused(netType,socketType) return allowSocketAccess; } int ioCanConnectToPort(int netAddr, int port) { + #pragma unused(netAddr,port) return allowSocketAccess; } int ioCanListenOnPort(int s, int port) { + #pragma unused(s,port) return allowSocketAccess; } *************** *** 161,164 **** --- 168,172 ---- int ioDisableSocketAccess() { allowSocketAccess = 0; + return 0; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:24
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/B3DAcceleratorPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27450/squeak/platforms/Mac OS/plugins/B3DAcceleratorPlugin Modified Files: sqMacOpenGL.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacOpenGL.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/B3DAcceleratorPlugin/sqMacOpenGL.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** sqMacOpenGL.c 19 May 2003 07:20:07 -0000 1.8 --- sqMacOpenGL.c 3 Aug 2004 02:41:16 -0000 1.9 *************** *** 54,58 **** glRenderer *current = NULL; - static int fUseSoftwareRenderer = 1; glRenderer allRenderer[MAX_RENDERER]; typedef int (*eventMessageHook)(EventRecord* event); --- 54,57 ---- *************** *** 618,621 **** --- 617,621 ---- int glIsOverlayRenderer(int handle) { + #pragma unused(handle) /* we never use overlay renderers */ return 0; |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:19
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SocketPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27432/squeak/platforms/Mac OS/plugins/SocketPlugin Modified Files: sqMacNetwork.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacNetwork.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/SocketPlugin/sqMacNetwork.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** sqMacNetwork.c 16 Dec 2003 22:09:30 -0000 1.6 --- sqMacNetwork.c 3 Aug 2004 02:41:07 -0000 1.7 *************** *** 1945,1949 **** if (link == NULL) { OTAtomicSetBit(&epi->stateFlags2, kReadFlowControl); //NO free buffers we are flow controled ! return; } gFreeReadBuffersCounter--; --- 1945,1949 ---- if (link == NULL) { OTAtomicSetBit(&epi->stateFlags2, kReadFlowControl); //NO free buffers we are flow controled ! return 0; } gFreeReadBuffersCounter--; *************** *** 2008,2012 **** if (link == NULL) { OTAtomicSetBit(&epi->stateFlags2, kReadFlowControl); //Our read flow control, OT will block lower down ! return; } gFreeReadBuffersCounter--; --- 2008,2012 ---- if (link == NULL) { OTAtomicSetBit(&epi->stateFlags2, kReadFlowControl); //Our read flow control, OT will block lower down ! return 0; } gFreeReadBuffersCounter--; *************** *** 2710,2713 **** --- 2710,2714 ---- static pascal void DNSNotifier(void* context, OTEventCode event, OTResult result, void* cookie) { + #pragma unused(cookie) EPInfo* epi = (EPInfo*) context; |
|
From: John M M. <jo...@us...> - 2004-08-03 02:41:05
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/MIDIPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27376/squeak/platforms/Mac OS/plugins/MIDIPlugin Modified Files: sqMacMIDI.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacMIDI.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/MIDIPlugin/sqMacMIDI.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sqMacMIDI.c 18 Dec 2001 21:19:42 -0000 1.2 --- sqMacMIDI.c 3 Aug 2004 02:40:57 -0000 1.3 *************** *** 118,122 **** } ! int midiShutdown() {} /* helper function for MIDI module */ --- 118,124 ---- } ! int midiShutdown() { ! return 1; ! } /* helper function for MIDI module */ *************** *** 125,132 **** --- 127,136 ---- int sqMIDIParameterSet(int whichParameter, int newValue) { sqMIDIParameter(whichParameter, true, newValue); + return 0; } int sqMIDIParameterGet(int whichParameter) { sqMIDIParameter(whichParameter, false, 0); + return 0; } *************** *** 167,170 **** --- 171,175 ---- } #endif + return 0; }/*** MIDI Parameters (used with sqMIDIParameter function) ***/ *************** *** 253,257 **** if (portNum == serialPorts) { closeQuicktimeMIDIPort(); ! return; } else { --- 258,262 ---- if (portNum == serialPorts) { closeQuicktimeMIDIPort(); ! return 0; } else { *************** *** 355,358 **** --- 360,364 ---- Fail if there is no port of the given number.*/ + #pragma unused(readSemaIndex) int serialPorts; int err; *************** *** 364,368 **** if (portNum == serialPorts) { openQuicktimeMIDIPort(); ! return; } --- 370,374 ---- if (portNum == serialPorts) { openQuicktimeMIDIPort(); ! return 0; } *************** *** 378,381 **** --- 384,388 ---- } } + return 0; } *************** *** 387,390 **** --- 394,398 ---- are read-only; attempting to set one of these parameters fails. For boolean parameters, true = 1, false = 0. */ + #pragma unused(newValue) if (modify == 0) { *************** *** 448,451 **** --- 456,460 ---- } } + return 0; } *************** *** 486,490 **** not support a timestamped output queue, such as this one, always send the data immediately; see sqMIDIHasBuffer. */ ! int serialPorts, i; unsigned char *bytePtr; --- 495,499 ---- not support a timestamped output queue, such as this one, always send the data immediately; see sqMIDIHasBuffer. */ ! #pragma unused(time) int serialPorts, i; unsigned char *bytePtr; |
|
From: John M M. <jo...@us...> - 2004-08-03 02:40:55
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27355/squeak/platforms/Mac OS/vm Modified Files: sqMacMemory.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacMemory.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacMemory.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** sqMacMemory.c 23 Apr 2004 20:47:15 -0000 1.13 --- sqMacMemory.c 3 Aug 2004 02:40:47 -0000 1.14 *************** *** 104,109 **** void * sqAllocateMemoryMac(int minHeapSize, int *desiredHeapSize) { void * debug; ! OSErr err; ! minHeapSize; #if (TARGET_API_MAC_CARBON && defined(__MWERKS__)) --- 104,108 ---- void * sqAllocateMemoryMac(int minHeapSize, int *desiredHeapSize) { void * debug; ! #pragma unused(minHeapSize) #if (TARGET_API_MAC_CARBON && defined(__MWERKS__)) *************** *** 130,133 **** --- 129,133 ---- ByteCount viewLength; long i; + OSErr err; err = 1; |
|
From: John M M. <jo...@us...> - 2004-08-03 02:40:47
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27338/squeak/platforms/Mac OS/vm Modified Files: sqMacMain.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacMain.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacMain.c,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** sqMacMain.c 19 Feb 2004 04:34:34 -0000 1.20 --- sqMacMain.c 3 Aug 2004 02:40:39 -0000 1.21 *************** *** 147,152 **** sqImageFile f; OSErr err; long threadGestaltInfo; ! char shortImageName[256]; /* check the interpreter's size assumptions for basic data types */ --- 147,154 ---- sqImageFile f; OSErr err; + char shortImageName[256]; + #if !defined(MINIMALVM) && !defined ( __APPLE__ ) && !defined ( __MACH__ ) long threadGestaltInfo; ! #endif /* check the interpreter's size assumptions for basic data types */ *************** *** 286,290 **** } } ! return; //Note the return, need to refactor this ugly code #endif --- 288,292 ---- } } ! return 0; //Note the return, need to refactor this ugly code #endif *************** *** 300,304 **** SqueakYieldToAnyThread(); } ! return; } } --- 302,306 ---- SqueakYieldToAnyThread(); } ! return 0; } } *************** *** 307,310 **** --- 309,313 ---- /* run Squeak */ squeakThread(0); + return 0; } #endif *************** *** 329,332 **** --- 332,336 ---- return NewThread( kCooperativeThread, gSqueakThreadUPP, nil, 80*1024, kCreateIfNeeded+kNewSuspend, 0L, &gSqueakThread); #endif + return 0; } *************** *** 342,349 **** --- 346,355 ---- YieldToAnyThread(); #endif + return 0; } static pascal void* squeakThread(void *threadParm) { /* run Squeak */ + #pragma unused(threadParm) # ifdef JITTER j_interpret(); *************** *** 351,357 **** interpret(); # endif } - #if TARGET_API_MAC_CARBON void InitMacintosh(void) { --- 357,363 ---- interpret(); # endif + return 0; } #if TARGET_API_MAC_CARBON void InitMacintosh(void) { *************** *** 395,398 **** --- 401,405 ---- int ioDisablePowerManager(int disableIfNonZero) { gDisablePowerManager = disableIfNonZero; + return 0; } *************** *** 421,424 **** --- 428,432 ---- int ioBeep(void) { SysBeep(1000); + return 0; } *************** *** 430,433 **** --- 438,442 ---- sqMacMemoryFree(); ExitToShell(); + return 0; } #endif *************** *** 447,450 **** --- 456,460 ---- the given horizontal and vertical scales in the given orientation However John Mcintosh has introduced a printjob class and plugin to replace this primitive */ + #pragma unused( bitsAddr, width, height, depth, hScale, vScale, landscapeFlag) return true; } *************** *** 496,503 **** if (id == 1001) return "Mac OS"; if (id == 1002) { ! long myattr; static char data[32]; ! Gestalt(gestaltSystemVersion, &myattr); sprintf(data,"%X",myattr); return data; --- 506,513 ---- if (id == 1001) return "Mac OS"; if (id == 1002) { ! unsigned int myattr; static char data[32]; ! Gestalt(gestaltSystemVersion, (long *) &myattr); sprintf(data,"%X",myattr); return data; *************** *** 576,580 **** int plugInInit(char *fullImagePath) { ! fullImagePath; /* check the interpreter's size assumptions for basic data types */ if (sizeof(int) != 4) { --- 586,590 ---- int plugInInit(char *fullImagePath) { ! #pragma unused(fullImagePath) /* check the interpreter's size assumptions for basic data types */ if (sizeof(int) != 4) { *************** *** 588,595 **** } - SetUpTimers(); PowerMgrCheck(); SetUpClipboard(); SetUpPixmap(); } --- 598,605 ---- } PowerMgrCheck(); SetUpClipboard(); SetUpPixmap(); + return 0; } *************** *** 617,620 **** --- 627,631 ---- sqMacMemoryFree(); } + return 0; } *************** *** 687,694 **** /*** Profiling Stubs ***/ ! int clearProfile(void){} ! int dumpProfile(void){} ! int startProfiling(void){} ! int stopProfiling(void) {} #if TARGET_API_MAC_CARBON && defined(__MWERKS__) --- 698,705 ---- /*** Profiling Stubs ***/ ! int clearProfile(void){return 0;} ! int dumpProfile(void){return 0;} ! int startProfiling(void){return 0;} ! int stopProfiling(void) {return 0;} #if TARGET_API_MAC_CARBON && defined(__MWERKS__) |
|
From: John M M. <jo...@us...> - 2004-08-03 02:40:39
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/JoystickTabletPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27317/squeak/platforms/Mac OS/plugins/JoystickTabletPlugin Modified Files: sqMacJoystickAndTablet.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacJoystickAndTablet.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/JoystickTabletPlugin/sqMacJoystickAndTablet.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** sqMacJoystickAndTablet.c 18 Dec 2001 21:18:18 -0000 1.2 --- sqMacJoystickAndTablet.c 3 Aug 2004 02:40:31 -0000 1.3 *************** *** 12,16 **** /* initialize/shutdown */ ! int joystickShutdown() {} /* End of adjustments for pluginized VM */ --- 12,18 ---- /* initialize/shutdown */ ! int joystickShutdown() { ! return 1; ! } /* End of adjustments for pluginized VM */ |
|
From: John M M. <jo...@us...> - 2004-08-03 02:40:31
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/plugins/InternetConfigPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27298/squeak/platforms/Mac OS/plugins/InternetConfigPlugin Modified Files: sqMacInternetConfiguration.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacInternetConfiguration.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/plugins/InternetConfigPlugin/sqMacInternetConfiguration.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sqMacInternetConfiguration.c 2 Dec 2003 04:52:40 -0000 1.3 --- sqMacInternetConfiguration.c 3 Aug 2004 02:40:23 -0000 1.4 *************** *** 55,58 **** --- 55,59 ---- ICStop(gICInstance); gInitializedOk = false; + return 1; } |
|
From: John M M. <jo...@us...> - 2004-08-03 02:40:24
|
Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27264/squeak/platforms/Mac OS/vm Modified Files: sqMacImageIO.c Log Message: 3.7.4b3 Compiler warning reduction process. Return 0 if required, flag or removed unused variables, fix ambigous warning messages Index: sqMacImageIO.c =================================================================== RCS file: /cvsroot/squeak/squeak/platforms/Mac OS/vm/sqMacImageIO.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sqMacImageIO.c 2 Dec 2003 04:52:31 -0000 1.4 --- sqMacImageIO.c 3 Aug 2004 02:40:15 -0000 1.5 *************** *** 156,159 **** --- 156,160 ---- if (f != 0) return fwrite(ptr,elementSize,count,f); + return 0; } *************** *** 294,297 **** --- 295,299 ---- FSSpec imageSpec; + #pragma unused(fileRef) makeFSSpec(filename, strlen(filename), &imageSpec); err = FSpGetFInfo(&imageSpec,&fileInfo); |