Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'pascal' keyword not accepted in typedefs



So, I'm wondering.  Do you a get a backtrace in gdb when you Debug
your app?  That should lead you to the caller of one your "pascal"'s
callbacks.  (Ok, I'm assuming that is where your crash is).  Does the
caller of the callback make any weird assumptions about parameter
order?  i.e. pascal params are passed in the opposite order than C
params (c,b,a) vs (a,b,c) in foo(a,b,c) - I could have that backwards,
it has been a while.

I can image some convoluted (or legacy) code passing in reversed
params by hand (though you shouldn't have to).  That's the worst thing
my twisted mind can come with short of the actual code (no thanks!)
:-)

I really don't miss those pre-OS X days...

hth (??)

H.


On 10/1/05, Robert Slifka <email@hidden> wrote:
> Hi Bob,
>
> Removing the pascal keyword definitely builds, but I get a SIGILL the first
> time it casts/runs a function with one of those data types, and I'm having a
> hard time figuring out the cause.
>
> Definitely feel like I'm in over my head here.
>
> Rob
>
> > From: Bob Currier <email@hidden>
> > Date: Sat, 1 Oct 2005 16:06:30 -0700
> > To: Robert Slifka <email@hidden>, <email@hidden>
> > Subject: Re: 'pascal' keyword not accepted in typedefs
> >
> > On Sat, Oct 1, 2005 3:44 PM, Robert Slifka <email@hidden> wrote:
> >
> >> The cross-platform header file this is in (supplied by device mfr.)
> >> specifically defines it.
> >>
> >> #ifdef _WINDOWS
> >>    #define PASCAL
> >> #else
> >>    #define PASCAL pascal
> >> #endif
> >>
> >
> > I think the definition of pascal is done in ConditionalMacros.h, where
> > most of the compiler-specific stuff is. If you're on 10.4, it's certainly
> > possible the headers are just broken for CodeWarrior--since Apple claims
> > to have no copy of it in-house to test with.
> >
> > But first I'd just try using the Windows definition for the Mac to see if
> > this is even the right track to be on.
> >
> > -- Bob
> >
> >
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Carbon-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/carbon-dev/email@hidden
>
> This email sent to email@hidden
>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: 'pascal' keyword not accepted in typedefs (From: "Bob Currier" <email@hidden>)
 >Re: 'pascal' keyword not accepted in typedefs (From: Robert Slifka <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.