Actually, if you use the latest GCC, you don't need the CALLBACK_* defines
anymore.  GCC now uses A5 instead of A4 to access globals.

Gary Clark
Systems Programmer
JELD-WEN, inc.

> ----------
> From:         Holger Klawitter[SMTP:[EMAIL PROTECTED]]
> Reply To:     [EMAIL PROTECTED]
> Sent:         Thursday, September 16, 1999 2:25 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: IR question
> 
> "Alberto." wrote:
> > 
> > This code performs a IR connection. The IrOpen, IrBind, and
> IrDiscoverReq works fine, but it fails calling the IrConnectReq. What is
> wrong?
> >
> > [...]
> >           IrUnbind(refNum, &con);
> > [...]
> 
> You are accessing a global variable from a callback. Are you using
> gcc? If this is the case I have forgotten the CALLBACK_PROLOGUE
> defines. Note: As you have multiple returns in your callback you
> might also need CALLBACK_EPILOGUEs for each of it.
> 
> Hope this helps,
>       Holger Klawitter
> 
> -- 
> Holger Klawitter                                     +49 (0)251 484 0637
> [EMAIL PROTECTED]                             http://www.klawitter.de/
> 
> 

Reply via email to