/[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 834 by ph10, Sun Dec 11 17:09:37 2011 UTC revision 835 by ph10, Wed Dec 28 16:10:09 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 1322  if (bits_set || min > 0 Line 1322  if (bits_set || min > 0
1322    study->size = sizeof(pcre_study_data);    study->size = sizeof(pcre_study_data);
1323    study->flags = 0;    study->flags = 0;
1324    
   /* Set the start bits always, to avoid unset memory errors if the  
   study data is written to a file, but set the flag only if any of the bits  
   are set, to save time looking when none are. */  
   
1325    if (bits_set)    if (bits_set)
1326      {      {
1327      study->flags |= PCRE_STUDY_MAPPED;      study->flags |= PCRE_STUDY_MAPPED;
1328      memcpy(study->start_bits, start_bits, sizeof(start_bits));      memcpy(study->start_bits, start_bits, sizeof(start_bits));
1329      }      }
   else memset(study->start_bits, 0, 32 * sizeof(uschar));  
1330    
1331    /* Always set the minlength value in the block, because the JIT compiler    /* Always set the minlength value in the block, because the JIT compiler
1332    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.834  
changed lines
  Added in v.835

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12