Re: incorect PyFile_Get macro
Daniel Veillard <[email protected]> Tue, 17 Sep 2002 15:33:05 -0400
| Newsgroups | gmane.comp.gnome.lib.xml.bindings |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 17, 2002 at 09:13:48PM +0200, [email protected] wrote: > Hi! > > I tried to dump a doc using xmlDoc.dump, but it didn't work > (i'm working with libxml2-2.4.23). I traced the problem to an > incorrect macro definition in libxml_wrap.h. > > #define PyFile_Get(v) (((v) == Py_None) ? NULL : \ > (PyFile_Check(v) ? NULL : (PyFile_AsFile(v)))) > > is better defined as > #define PyFile_Get(v) (((v) == Py_None) ? NULL : \ > (PyFile_Check(v) ? (PyFile_AsFile(v)) : NULL)) > > isn't it? Dohhhh !!!!! thanks ! Applied and commited :-) Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ [email protected] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/