/[pcre]/code/branches/pcre16/pcre_study.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_study.c

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

revision 800 by zherczeg, Sat Dec 10 02:20:06 2011 UTC revision 801 by ph10, Mon Dec 12 16:23:37 2011 UTC
# Line 288  for (;;) Line 288  for (;;)
288      cc++;      cc++;
289      break;      break;
290    
291      /* 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
292      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
293      appear, but leave the code, just in case.) */      appear, but leave the code, just in case.) */
294    
295      case OP_ANYBYTE:      case OP_ANYBYTE:
# Line 1424  if (bits_set || min > 0 Line 1424  if (bits_set || min > 0
1424    study->size = sizeof(pcre_study_data);    study->size = sizeof(pcre_study_data);
1425    study->flags = 0;    study->flags = 0;
1426    
1427      /* Set the start bits always, to avoid unset memory errors if the
1428      study data is written to a file, but set the flag only if any of the bits
1429      are set, to save time looking when none are. */
1430    
1431    if (bits_set)    if (bits_set)
1432      {      {
1433      study->flags |= PCRE_STUDY_MAPPED;      study->flags |= PCRE_STUDY_MAPPED;
1434      memcpy(study->start_bits, start_bits, sizeof(start_bits));      memcpy(study->start_bits, start_bits, sizeof(start_bits));
1435      }      }
1436      else memset(study->start_bits, 0, 32 * sizeof(pcre_uchar));
1437    
1438  #ifdef PCRE_DEBUG  #ifdef PCRE_DEBUG
1439    if (bits_set)    if (bits_set)

Legend:
Removed from v.800  
changed lines
  Added in v.801

  ViewVC Help
Powered by ViewVC 1.1.5