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

Diff of /code/trunk/pcre.c

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

revision 25 by nigel, Sat Feb 24 21:38:45 2007 UTC revision 29 by nigel, Sat Feb 24 21:38:53 2007 UTC
# Line 9  the file Tech.Notes for some information Line 9  the file Tech.Notes for some information
9    
10  Written by: Philip Hazel <ph10@cam.ac.uk>  Written by: Philip Hazel <ph10@cam.ac.uk>
11    
12             Copyright (c) 1998 University of Cambridge             Copyright (c) 1997-1999 University of Cambridge
13    
14  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
15  Permission is granted to anyone to use this software for any purpose on any  Permission is granted to anyone to use this software for any purpose on any
# Line 25  restrictions: Line 25  restrictions:
25    
26  3. Altered versions must be plainly marked as such, and must not be  3. Altered versions must be plainly marked as such, and must not be
27     misrepresented as being the original software.     misrepresented as being the original software.
28    
29    4. If PCRE is embedded in any software that is released under the GNU
30       General Purpose Licence (GPL), then the terms of that licence shall
31       supersede any condition above with which it is incompatible.
32  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
33  */  */
34    
# Line 4033  in the pattern. */ Line 4037  in the pattern. */
4037  resetcount = 2 + re->top_bracket * 2;  resetcount = 2 + re->top_bracket * 2;
4038  if (resetcount > offsetcount) resetcount = ocount;  if (resetcount > offsetcount) resetcount = ocount;
4039    
4040    /* Reset the working variable associated with each extraction. These should
4041    never be used unless previously set, but they get saved and restored, and so we
4042    initialize them to avoid reading uninitialized locations. */
4043    
4044    if (match_block.offset_vector != NULL)
4045      {
4046      register int *iptr = match_block.offset_vector + ocount;
4047      register int *iend = iptr - resetcount/2 + 1;
4048      while (--iptr >= iend) *iptr = -1;
4049      }
4050    
4051  /* Set up the first character to match, if available. The first_char value is  /* Set up the first character to match, if available. The first_char value is
4052  never set for an anchored regular expression, but the anchoring may be forced  never set for an anchored regular expression, but the anchoring may be forced
4053  at run time, so we have to test for anchoring. The first char may be unset for  at run time, so we have to test for anchoring. The first char may be unset for

Legend:
Removed from v.25  
changed lines
  Added in v.29

  ViewVC Help
Powered by ViewVC 1.1.5