[cairo] Another 1.6 item

Carl Worth cworth at cworth.org
Fri Jan 25 22:06:49 PST 2008

On Fri, 25 Jan 2008 18:34:48 -0500, Behdad Esfahbod wrote:
> So we've talked about it numerous times before.  I want to make it
> happen now.  I'm going to change cairo_get_current_point() to return
> cairo_status_t instead of void.  The interesting part (other than the
> case that if cr is already in error) is returning
> CAIRO_STATUS_NO_CURRENT_POINT, which is sourly missing from the API.


And if we're turning void into cairo_status_t how about going through
all the _destroy functions and emitting the final status value from
them as well?


PS. The destroy function's return value would then be great candidates
for a return-value-must-not-be-ignored warning from the
compiler. Meanwhile, requiring the status from cairo_get_current_point
to not be ignored would be slightly obnoxious in some cases. Maybe we
just have to live with that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080125/8f18a563/attachment.pgp 

More information about the cairo mailing list