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

Diff of /code/trunk/pcre_study.c

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

revision 786 by ph10, Sat Nov 19 18:32:18 2011 UTC revision 787 by ph10, Tue Dec 6 15:37:24 2011 UTC
# Line 286  for (;;) Line 286  for (;;)
286      cc++;      cc++;
287      break;      break;
288    
289      /* The single-byte matcher means we can't proceed in UTF-8 mode. (In      /* The single-byte matcher means we can't proceed in UTF-8 mode. (In
290      non-UTF-8 mode \C will actually be turned into OP_ALLANY, so won't ever      non-UTF-8 mode \C will actually be turned into OP_ALLANY, so won't ever
291      appear, but leave the code, just in case.) */      appear, but leave the code, just in case.) */
292    
293      case OP_ANYBYTE:      case OP_ANYBYTE:
# Line 1321  if (bits_set || min > 0 Line 1321  if (bits_set || min > 0
1321    
1322    study->size = sizeof(pcre_study_data);    study->size = sizeof(pcre_study_data);
1323    study->flags = 0;    study->flags = 0;
1324    
1325      /* Set the start bits always, to avoid unset memory errors if the
1326      study data is written to a file, but set the flag only if any of the bits
1327      are set, to save time looking when none are. */
1328    
1329    if (bits_set)    if (bits_set)
1330      {      {
1331      study->flags |= PCRE_STUDY_MAPPED;      study->flags |= PCRE_STUDY_MAPPED;
1332      memcpy(study->start_bits, start_bits, sizeof(start_bits));      memcpy(study->start_bits, start_bits, sizeof(start_bits));
1333      }      }
1334      else memset(study->start_bits, 0, 32 * sizeof(uschar));
1335    
1336    /* Always set the minlength value in the block, because the JIT compiler    /* Always set the minlength value in the block, because the JIT compiler
1337    makes use of it. However, don't set the bit unless the length is greater than    makes use of it. However, don't set the bit unless the length is greater than

Legend:
Removed from v.786  
changed lines
  Added in v.787

  ViewVC Help
Powered by ViewVC 1.1.5