[TRE-general] Weird bug
Ville Laurikari
ville at laurikari.net
Tue May 16 22:05:17 EEST 2006
> > For ABI compatibility with the system regex functions you need to
> > configure TRE with --enable-system-abi. The compatibility is not
> > perfect.
>
> I don't see how it can work: how do you handle the compiled
> regex struct?
TRE just uses the regex struct to store a pointer to the real compiled
regex object.
Of course you cannot mix a system regcomp() with TRE regexec() or vice
versa. It works as long as you use only the functions from libtre or only
from the system and don't mix and match.
> > When TRE is built with this flag, you can do
> > LD_PRELOAD=libtre.so some-program
>
> .. on Unix systems. For better or worse whilst I develop in
Yeah. I don't know if Windows has similar functionality. Even if it
did, there is no system regex implementation on Windows, so for TRE
this functionality would be practically useless anyway on Windows.
--
http://www.iki.fi/vl/
More information about the TRE-general
mailing list