[Glade-devel] strcmp in glade-xml-utils [was: ShortCuts]



Tristan Van Berkom wrote:
[...]
Ahhh,
   that must be because of xmlChar definitions, from a glance at
the libxml2 docs, we need to be using the BAD_CAST macro for all
the const strings that are passed into the glade-xml-utils api
for comparisons... nice catch; gcc 4 is looking good ;-p


Created this:
     http://bugzilla.gnome.org/show_bug.cgi?id=316201

I forgot to mention, on top of using BAD_CAST, we also need to
use xmlStrcmp on the "xmlChar *"s, if you want to fix that that'd
be great, otherwise I'll eventually get around to it :)

Cheers,
                               -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]