Hi,
I had to make the attached changes to get it to compile for me on cygwin.
I gave it a quick test with shr in gnus, which caused a spectacular crash,
but the loading & running of libxml2 seems fine.
Robert
On Sat, Feb 2, 2013 at 10:57 PM, Jerry James <james(a)xemacs.org> wrote:
Emacs has a very simple interface to some libxml2 functionality. It
is used by gnus, and also for D-Bus support. It looks like a simple
port to an XEmacs module. Attached is a candidate patch, for
discussion purposes. There are no changelog entries or documentation
updates in it, but those will be forthcoming when I propose this for
inclusion.
A few of the changes need explaining. The libxml2 headers define
ATTRIBUTE_UNUSED, and their definition clashes with ours, hence the
change to src/compiler.h. A few more symbols need to be exposed to
modules. Also, I need to pass -I/usr/include/libxml2 in CPPFLAGS on
Fedora, but CPPFLAGS wasn't being passed down to module builds.
Finally, I'm not totally happy with the way I have to convert a
portion of a buffer to a Lisp string, and then convert the Lisp string
to an externally encoded block of memory. Is there some way of
skipping that middle step, and producing a memory block in an external
encoding from a portion of a Lisp buffer? I couldn't find one.
Comments welcome.
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta