Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: 'pascal' keyword not accepted in typedefs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'pascal' keyword not accepted in typedefs




On Oct 1, 2005, at 1:37 PM, Robert Slifka wrote:

The error I get is "parse error before EntryProc". If I remove the 'pascal'
keyword, the program builds, but crashes as soon as any of these typedefs
are used. I suspect they put the pascal there for a reason!


#ifdef __cplusplus
    extern "C" {    // Tell C++ to use C linking for these functions
#endif

    // Callback Functions
    typedef pascal EntryProc (DeviceIDObject pObject, long iCmd);


As far as I know, you can't typedef a function, only a function pointer. Try:


typedef pascal (*EntryProc)( DeviceIDObject pObject, long iCmd );

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >'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 © 2011 Apple Inc. All rights reserved.