[TRE-general] Re: #ifdef tre_isblank around the blank character class
Ville Laurikari
ville at laurikari.net
Sat Apr 23 10:56:31 EEST 2005
On Thu, Apr 21, 2005 at 02:13:10PM -0500, JesusFreke wrote:
> In the tre-parse.c file, on line 238-240, I think the #ifdef/#endif
> lines should be removed. At this point, you are guaranteed that
> tre_isblank_func is defined (on lines 213-217). This unnecessarily
> leaves the "blank" character class out when tre_isblank isn't
> defined (which is only defined if you have HAVE_ISBLANK defined).
You are correct. I'll include a fix for this in the next release.
This piece of code is included only on platforms which don't have
wchar_t support or the wctype() and iswctype() functions are missing.
So, TRE cannot currently guarantee that the "blank" character class is
available on all platforms, even with this fix included.
--
http://www.iki.fi/vl/
More information about the TRE-general
mailing list