emacs-devel
[Top][All Lists]
Advanced

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

Re: Linking Emacs with libxml2


From: Stefan Monnier
Subject: Re: Linking Emacs with libxml2
Date: Fri, 10 Sep 2010 00:28:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> Of course, even better would be passing the buffer text as 2 byte arrays
>> without copying it into a string.
> How would one do that?

You'd have to check the libxml2 API.  On the Emacs side, the buffer is
just made of two char* chunks.

> Like in my original code, just copying it over to a C string?

That would defeat the purpose: if you do the copying, then you might as
well do it into an Elisp string so it can be more flexible.

> Or is there a convenience function to do that?

To do what?


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]