[cairo] libcairowrap (was [Bug 13303] _cairo_pen_find_active_cw_vertex_index failed assertion)
cworth at cworth.org
Fri Nov 30 16:10:26 PST 2007
On Thu, 29 Nov 2007 21:07:54 +0100, "Benjamin Otte" wrote:
> > And thanks for the report from libcairowrap. That tool's output is
> > definitely looking really good.
> Thanks. It's currently "just" a neat printf wrapper around cairo
> functions where I made the printfs emit something that looks close to
> compilable C code, so it fits into a simple C file.
Thanks for extracting the conversation from bugzilla. I had meant to
point you at it, but of course I forgot.
> As far as I know, there is no function in libc that does this,
> otherwise I'd have used it. I just know glib provides a special
> version of it. And I didn't want to call setlocale, as that has too
> many side effects. For now, just running the code with LC_ALL=C should
> do the trick.
Sure. And we could automate that easily enough in a calling script.
> Yeah, that would be nice. Unfortunately, this requires mapping
> pointers to strings, and that requires a hash table. So we're back at
> what I said above.
Right. So given any decent library, there's not a lot of work to be
> I don't think that's a good idea, just because it alters the order of
> cairo function calls. And that is something I wouldn't want this tool
> to do.
Yeah, you're probably right.
> No reason at all. I just had no place to put it,because a) I can only
> open new git repos in my home directory and b) I don't think I have
> write access to the cairo repositories.
(b) is definitely a bug, (how could I have not given you cairo access
before?). Anyway, that's fixed now.
And I like Behdad's idea of just throwing this into cairo/util---and
that avoids (a) entirely.
And if we install the library, we should probably install a little
cairo-trace script that sets LC_ALL and LD_PRELOAD to make it easier
to run. That would be right handy.
Welcome, Benjamin! Please have fun hacking on cairo!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20071130/9d2ea320/attachment.pgp
More information about the cairo