Minor regex config changes, fixed KMP search code.

[SVN r10115]
This commit is contained in:
John Maddock
2001-05-15 12:00:33 +00:00
parent f913683002
commit f466b2ad2a
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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
{