[comp.sys.mac.programmer] plate of shrimp

tim@ism780c.isc.com (T.W."Tim" Smith, Knowledgian) (06/14/88)

In article <405@draken.nada.kth.se> ragge@nada.kth.se (Ragnar Sundblad) writes:
< I just discovered a (or two) bug(s) in the Interface libraries
< in MPW 2.0;
< 
< SIntInstall and SIntRemove glue code takes the arguments in the wrong
< order. They are correctly defined in the "Slots.h" file.

This is very strange.  I was using SIntInstall this last weekend.  It was
failing.  I set TMON to trap on _SIntInstall, and found that it appeared
to have garbage in the registers.  So I single stepped through the glue
code, and found that it takes the arguments in the wrong order.

Now for the strange part:  I was using LightspeedC, not MPW!
I was using 2.11, with a copy of SlotMgr.h from god only knows
where.  I haven't yet tried it with 2.13 and the 2.15 libraries
( mainly because it just occured to me that that might make a
difference ).
-- 
Tim Smith				tim@ism780c.isc.com
"I don't practice what I preach because I'm not the
                       kind of person I'm preaching to" -- J.R. "Bob" Dobbs

Michael_mkahl_Kahl@cup.portal.com (06/26/88)

> This is very strange.  I was using SIntInstall this last weekend.  It was
> failing.  I set TMON to trap on _SIntInstall, and found that it appeared
> to have garbage in the registers.  So I single stepped through the glue
> code, and found that it takes the arguments in the wrong order.

> Now for the strange part:  I was using LightspeedC, not MPW!
> I was using 2.11, with a copy of SlotMgr.h from god only knows
> where.  I haven't yet tried it with 2.13 and the 2.15 libraries
> ( mainly because it just occured to me that that might make a
> difference ).

It will indeed make all the difference.  The 2.11 Mactraps copies the
argument reversal bug from the MPW interfaces.  It is corrected in 2.15.
(If memory serves, this is one of the few differences between the 2.13
and 2.15 Mactraps.)

-- Michael Kahl, Symantec