forked from boostorg/regex
Minor regex config changes, fixed KMP search code.
[SVN r10115]
This commit is contained in:
1 parent
f913683002
commit
f466b2ad2a
3 files changed
+7
-6
No files matched your search
@@ -307,10 +307,10 @@ full list of macros and their usage.
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef _REENTRANT
|
||||
#if defined(_REENTRANT) || defined(_PTHREADS)
|
||||
//
|
||||
// several compilers define _REENTRANT when
|
||||
// threading support is turned on:
|
||||
// Several compilers define _REENTRANT or
|
||||
// _PTHREADS when threading support is turned on:
|
||||
//
|
||||
#define BOOST_RE_THREADS
|
||||
#endif
|
||||
|
||||
@@ -1192,13 +1192,13 @@ unsigned int reg_grep2(Predicate foo, I first, I last, const reg_expression<char
|
||||
++cmatches;
|
||||
if(foo(m) == false)
|
||||
return cmatches;
|
||||
if(m[0].second == last)
|
||||
return cmatches;
|
||||
_skip_and_inc(clines, last_line, first, restart);
|
||||
next_base = m[0].second;
|
||||
pd.temp_match.init_fail(next_base, last);
|
||||
m.init_fail(next_base, last);
|
||||
j = 0;
|
||||
if(m[0].second == last)
|
||||
return cmatches;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user