API Shakeup: user data (was Re: [cairo] Patch improving
fallbacks)
Keith Packard
keithp at keithp.com
Thu Feb 24 17:09:22 PST 2005
Around 15 o'clock on Feb 24, Owen Taylor wrote:
> Do you know of any examples of libraries that don't swallow the
> * inside function typedefs? I can't think of ever seeing that,
> to the point I had to try it out to be sure that:
I agree that function arguments should include the pointer; C doesn't have
first-class functions, so they work like arrays:
typedef int (*foo) (int);
int bletch ();
foo x = bletch;
So, we pretend that pointers to functions are actually functions and get
on with life.
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050224/6ff5d263/attachment.pgp
More information about the cairo
mailing list