[pcre-dev] [Bug 1049] Add support for UTF-16

Startseite
Nachricht löschen
Autor: Philip Hazel
Datum:  
To: pcre-dev
Alte Treads: [pcre-dev] [Bug 1049] New: Add support for UTF-16
Betreff: [pcre-dev] [Bug 1049] Add support for UTF-16
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1049




--- Comment #16 from Philip Hazel <ph10@???> 2011-11-14 12:09:37 ---
On Mon, 14 Nov 2011, Zoltan Herczeg wrote:

> I am wondering whether it would be possible to build both libraries in the same
> time (provided if both are enabled).


Ha! I've just posted an agreement with you to do it separately. :-) I
was previously thinking that we could build them both together.

> Configure and cmake experts, does it possible?


I don't think there are any issues. For example, in pcre_compile.c you
have something like:

#ifndef USDATA
#define USDATA unsigned char
#endif

Then have a separate source file called pcre16_compile.c that contains

#define USDATA unsigned pcre_int16
#include "pcre_compile.c"

> We should start with the build system update (even if the 16 postfixed files
> would contain the same library now).


All the build system would have to do would be to compile a few more
files.

Regards,
Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email