[cairo] Making it easier to track down errors

Mathieu Lacage Mathieu.Lacage at sophia.inria.fr
Wed Jun 15 23:20:52 PDT 2005

On Wed, 2005-06-15 at 17:15 -0700, Carl Worth wrote:
> On Tue, 14 Jun 2005 08:41:49 +0200, Mathieu Lacage wrote:
> > I have been burned by this kind of API before and I cursed the authors
> > of the code more than once. Specifically, I wished they had done
> > something like this:
> > 
> > 1) add a function pointer to their structure which is invoked whenever
> > the error is detected
> > 2) add a public setter for this function pointer
> > 3) initialize it by default to _cairo_error.
> That's a very reasonable request. Since the work in the previous
> patch is a prerequisite to doing this, and since nobody else has
> complained about it, I just committed that patch.

This looks awesome (just quickly looked at the patch). I wish the glibc
maintainers were as easy to convince as you :)

thanks a lot,

More information about the cairo mailing list