Re: [cc65] function pointer, fastcall

From: Christian Groessler <chris1groessler.org>
Date: 2008-08-16 22:23:09
Hi,

On Sat, 16 Aug 2008, Ullrich von Bassewitz wrote:

> is actually a function returning char*, not a pointer to a function returning
> char. Using parens
> 
>         char (*f)(char);
> 
> you have a pointer to a function taking char and returning char. Now just add
> fastcall
> 
>         char fastcall (*f)(char);
> 
> and you have a pointer to a fastcall function.

I don't know what the C standard says, but I would find

      char (fastcall *f)(char);

more intuitive. I seem to remember when working with Watcom and 16bit DOS 
code, I was able to write "char (far *f)(char);"...

regards,
chris

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Aug 16 22:22:36 2008

This archive was generated by hypermail 2.1.8 : 2008-08-16 22:22:38 CEST