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

Diff of /code/trunk/pcre_exec.c

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

revision 1414 by zherczeg, Sun Dec 22 16:27:35 2013 UTC revision 1417 by ph10, Tue Dec 24 18:03:06 2013 UTC
# Line 2691  for (;;) Line 2691  for (;;)
2691        pcre_uchar *slot = md->name_table + GET2(ecode, 1) * md->name_entry_size;        pcre_uchar *slot = md->name_table + GET2(ecode, 1) * md->name_entry_size;
2692        ecode += 1 + 2*IMM2_SIZE;        ecode += 1 + 2*IMM2_SIZE;
2693    
2694          /* Setting the default length first and initializing 'offset' avoids
2695          compiler warnings in the REF_REPEAT code. */
2696    
2697          length = (md->jscript_compat)? 0 : -1;
2698          offset = 0;
2699    
2700        while (count-- > 0)        while (count-- > 0)
2701          {          {
2702          offset = GET2(slot, 0) << 1;          offset = GET2(slot, 0) << 1;
2703          if (offset < offset_top && md->offset_vector[offset] >= 0) break;          if (offset < offset_top && md->offset_vector[offset] >= 0)
2704              {
2705              length = md->offset_vector[offset+1] - md->offset_vector[offset];
2706              break;
2707              }
2708          slot += md->name_entry_size;          slot += md->name_entry_size;
2709          }          }
       if (count < 0)  
         length = (md->jscript_compat)? 0 : -1;  
       else  
         length = md->offset_vector[offset+1] - md->offset_vector[offset];  
2710        }        }
2711      goto REF_REPEAT;      goto REF_REPEAT;
2712    

Legend:
Removed from v.1414  
changed lines
  Added in v.1417

  ViewVC Help
Powered by ViewVC 1.1.5