Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

  (email not shown publicly)
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Thursday June 01, 2006
12:24 AM

Mac::Carbon::Intel Porting, Day One

[ #29770 ]

Step one: apply fix for T_OSTYPE to typemap, and fix the same problem in MacPerl::GetFileInfo, which bypassed T_OSTYPE.

Step two: fix ReadHex in Carbon.h, which takes a hex string of two or four bytes and converts it to an integer for use in GUSIPath2FSp, which converts a GUSI-encoded file spec to a FSSpec. For Intel, it was doing it in the wrong order.

Step three: there's no step three!

Fixing those three bugs tonight dropped me from 79/199 failed tests, down to 1/199. And the one remaining is GetAliasInfo(), which is deprecated, and simply does not work on Intel Macs (nor UFS volumes).

So, it's all done. Well, not really. I have a lot more testing to do. But I am far further along after one night with this loaner Mac than I thought I would be. I really need to doublecheck and expand my test coverage, and then test a bunch of other things that use Mac::Carbon.

The remaining point that worries me most is that I was informed that the blanket fix for OSType might be wrong on a per-API basis, as mentioned previously, but so far that doesn't seem to be the case with any of the APIs I am testing.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Thanks for doing this. Its perfect timing. I have a homebrew time reporting system for my consulting biz that uses Mac::Glue to integrate iCal into it. I just got a new MacBook Pro and tried to move the system to it yesterday and discovered it didn't work.

    If there's any way I can help out with testing, I'm willing.
    McC "Fallacies do not cease to be fallacies because they become fashions." GK Chesterton
  • really, with the usefulness of Mac::Carbon, Glue etc, they should just let you keep the machine.