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

Diff of /code/trunk/pcre_get.c

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

revision 1620 by ph10, Tue Dec 8 11:06:40 2015 UTC revision 1651 by ph10, Mon May 23 15:06:35 2016 UTC
# Line 250  Arguments: Line 250  Arguments:
250    code         the compiled regex    code         the compiled regex
251    stringname   the name of the capturing substring    stringname   the name of the capturing substring
252    ovector      the vector of matched substrings    ovector      the vector of matched substrings
253    stringcount  number of captured substrings    stringcount  number of captured substrings
254    
255  Returns:       the number of the first that is set,  Returns:       the number of the first that is set,
256                 or the number of the last one if none are set,                 or the number of the last one if none are set,
# Line 464  for (i = 0; i < double_count; i += 2) Line 464  for (i = 0; i < double_count; i += 2)
464    {    {
465    size += sizeof(pcre_uchar *) + IN_UCHARS(1);    size += sizeof(pcre_uchar *) + IN_UCHARS(1);
466    if (ovector[i+1] > ovector[i]) size += IN_UCHARS(ovector[i+1] - ovector[i]);    if (ovector[i+1] > ovector[i]) size += IN_UCHARS(ovector[i+1] - ovector[i]);
467    }    }
468    
469  stringlist = (pcre_uchar **)(PUBL(malloc))(size);  stringlist = (pcre_uchar **)(PUBL(malloc))(size);
470  if (stringlist == NULL) return PCRE_ERROR_NOMEMORY;  if (stringlist == NULL) return PCRE_ERROR_NOMEMORY;

Legend:
Removed from v.1620  
changed lines
  Added in v.1651

  ViewVC Help
Powered by ViewVC 1.1.5