[cairo] "operator" keyword in libcairo

Carl Worth cworth at cworth.org
Wed Jan 19 13:32:41 PST 2005


On Wed, 19 Jan 2005 21:58:21 +0100, Hans Breuer wrote:
> My recent patch had that :
> 
> +#ifdef __cplusplus
> +    /* ugly, but restricts required changes to this header --hb */
> +    cairo_operator_t _operator;
> +#else
>       cairo_operator_t operator;
> +#endif

Clever. But yes, ugly.

I'm thinking that what we really want here is to just make pull the
subset of cairoint.h that backends care about into cairo-backend.h.
That will sidestep the gstate->operator problem, and should make
things simpler for new backend authors anyway.

-Carl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050119/c1524463/attachment.pgp


More information about the cairo mailing list