svn commit: r224895 - user/gabor/tre-integration/contrib/tre/lib
Gabor Kovesdan
gabor at FreeBSD.org
Mon Aug 15 18:04:43 UTC 2011
Author: gabor
Date: Mon Aug 15 18:04:42 2011
New Revision: 224895
URL: http://svn.freebsd.org/changeset/base/224895
Log:
- Use TRE-specific internal macro for better portability
Modified:
user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c
Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c
==============================================================================
--- user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c Mon Aug 15 18:03:35 2011 (r224894)
+++ user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c Mon Aug 15 18:04:42 2011 (r224895)
@@ -347,7 +347,7 @@ static int fastcmp(const void *, const v
fg->newline = (cflags & REG_NEWLINE); \
\
/* Cannot handle REG_ICASE with MB string */ \
- if (fg->icase && (MB_CUR_MAX > 1)) \
+ if (fg->icase && (TRE_MB_CUR_MAX > 1)) \
return REG_BADPAT; \
\
/* Calculate length if unspecified */ \
@@ -363,7 +363,7 @@ tre_compile_literal(fastmatch_t *fg, con
INIT_COMP;
/* Cannot handle word boundaries with MB string */
- if (fg->word && (MB_CUR_MAX > 1))
+ if (fg->word && (TRE_MB_CUR_MAX > 1))
return REG_BADPAT;
#ifdef TRE_WCHAR
@@ -419,7 +419,7 @@ tre_compile_fast(fastmatch_t *fg, const
}
/* Cannot handle word boundaries with MB string */
- if (fg->word && (MB_CUR_MAX > 1))
+ if (fg->word && (TRE_MB_CUR_MAX > 1))
return REG_BADPAT;
/* Look for ways to cheat...er...avoid the full regex engine. */
More information about the svn-src-user
mailing list