[cairo] error handling
brian.ewins at gmail.com
Tue May 29 18:48:10 PDT 2007
On 29/05/07, Behdad Esfahbod <behdad at behdad.org> wrote:
> On Tue, 2007-05-29 at 11:10 +0100, Baz wrote:
> >The first problem is something we should just fix, right?
> Right. And Chris's patch does this I assume.
Yes, it's spot on.
> > The policy on when to return a status_t [etc...].
point taken. I made the change for each of these:
> > Oh while we're at it - get_current_point should return a status_t too
> > :) (I think this has been discussed before)
The tests weren't setting the current point before show_text or
text_extents, so I had 13 failures to fix - the last patch. The only
one of these that might be controversial is the invalid-matrix test -
since it checks the status of a cairo_t when I've converted the error
it's looking for into a return value.
More information about the cairo