/[pcre]/code/trunk/pcreposix.c
ViewVC logotype

Diff of /code/trunk/pcreposix.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 68 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 69 by nigel, Sat Feb 24 21:40:18 2007 UTC
# Line 236  block of store on the stack, to reduce t Line 236  block of store on the stack, to reduce t
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;
# Line 248  BOOL allocated_ovector = FALSE; Line 248  BOOL allocated_ovector = FALSE;
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    {    {

Legend:
Removed from v.68  
changed lines
  Added in v.69

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12