/[pcre]/code/trunk/pcrecpp.cc
ViewVC logotype

Diff of /code/trunk/pcrecpp.cc

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

revision 486 by ph10, Tue Jan 5 17:44:57 2010 UTC revision 530 by ph10, Tue Jun 1 13:42:06 2010 UTC
# Line 605  bool RE::DoMatch(const StringPiece& text Line 605  bool RE::DoMatch(const StringPiece& text
605                                         // (as for kVecSize)                                         // (as for kVecSize)
606    int space[21];   // use stack allocation for small vecsize (common case)    int space[21];   // use stack allocation for small vecsize (common case)
607    int* vec = vecsize <= 21 ? space : new int[vecsize];    int* vec = vecsize <= 21 ? space : new int[vecsize];
608    bool retval = DoMatchImpl(text, anchor, consumed, args, n, vec, vecsize);    bool retval = DoMatchImpl(text, anchor, consumed, args, n, vec, (int)vecsize);
609    if (vec != space) delete [] vec;    if (vec != space) delete [] vec;
610    return retval;    return retval;
611  }  }

Legend:
Removed from v.486  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC 1.1.5