| 236 |
in a macro that can be changed at configure time. */ |
in a macro that can be changed at configure time. */ |
| 237 |
|
|
| 238 |
int |
int |
| 239 |
regexec(regex_t *preg, const char *string, size_t nmatch, |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
| 240 |
regmatch_t pmatch[], int eflags) |
regmatch_t pmatch[], int eflags) |
| 241 |
{ |
{ |
| 242 |
int rc; |
int rc; |
| 248 |
if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL; |
if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL; |
| 249 |
if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL; |
if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL; |
| 250 |
|
|
| 251 |
preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ |
((regex_t *)preg)->re_erroffset = (size_t)(-1); /* Only has meaning after compile */ |
| 252 |
|
|
| 253 |
if (nmatch > 0) |
if (nmatch > 0) |
| 254 |
{ |
{ |