Re: [xml] libxml2 API crazy?

2013-04-29 Thread Liam R E Quin
On Mon, 2013-04-29 at 21:26 +0400, Nikita Churaev wrote: > OK, so this is really guaranteed by the standard, good. But how libxml2 > uses that is still insane. The libxml API has been... rather widely used... for more than a decade... Your mail described some of your expectations when coming to l

Re: [xml] libxml2 API crazy?

2013-04-29 Thread Nikita Churaev
OK, so this is really guaranteed by the standard, good. But how libxml2 uses that is still insane. In GTK+, I can always expect a GtkWidget * to point to a GtkWidget or a descendant (like GtkButton), so I can be sure that all of its stucture fields don't contain garbage or point outside the structu