/[pcre]/code/trunk/ChangeLog
ViewVC logotype

Diff of /code/trunk/ChangeLog

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

revision 5 by nigel, Sat Feb 24 21:38:05 2007 UTC revision 23 by nigel, Sat Feb 24 21:38:41 2007 UTC
# Line 2  ChangeLog for PCRE Line 2  ChangeLog for PCRE
2  ------------------  ------------------
3    
4    
5    Version 2.00 24-Sep-98
6    ----------------------
7    
8    1. Since the (>?) facility is in Perl 5.005, don't require PCRE_EXTRA to enable
9    it any more.
10    
11    2. Allow quantification of (?>) groups, and make it work correctly.
12    
13    3. The first character computation wasn't working for (?>) groups.
14    
15    4. Correct the implementation of \Z (it is permitted to match on the \n at the
16    end of the subject) and add 5.005's \z, which really does match only at the
17    very end of the subject.
18    
19    5. Remove the \X "cut" facility; Perl doesn't have it, and (?> is neater.
20    
21    6. Remove the ability to specify CASELESS, MULTILINE, DOTALL, and
22    DOLLAR_END_ONLY at runtime, to make it possible to implement the Perl 5.005
23    localized options. All options to pcre_study() were also removed.
24    
25    7. Add other new features from 5.005:
26    
27       $(?<=           positive lookbehind
28       $(?<!           negative lookbehind
29       (?imsx-imsx)    added the unsetting capability
30                       such a setting is global if at outer level; local otherwise
31       (?imsx-imsx:)   non-capturing groups with option setting
32       (?(cond)re|re)  conditional pattern matching
33    
34       A backreference to itself in a repeated group matches the previous
35       captured string.
36    
37    8. General tidying up of studying (both automatic and via "study")
38    consequential on the addition of new assertions.
39    
40    9. As in 5.005, unlimited repeated groups that could match an empty substring
41    are no longer faulted at compile time. Instead, the loop is forcibly broken at
42    runtime if any iteration does actually match an empty substring.
43    
44    10. Include the RunTest script in the distribution.
45    
46    11. Added tests from the Perl 5.005_02 distribution. This showed up a few
47    discrepancies, some of which were old and were also with respect to 5.004. They
48    have now been fixed.
49    
50    
51    Version 1.09 28-Apr-98
52    ----------------------
53    
54    1. A negated single character class followed by a quantifier with a minimum
55    value of one (e.g.  [^x]{1,6}  ) was not compiled correctly. This could lead to
56    program crashes, or just wrong answers. This did not apply to negated classes
57    containing more than one character, or to minima other than one.
58    
59    
60    Version 1.08 27-Mar-98
61    ----------------------
62    
63    1. Add PCRE_UNGREEDY to invert the greediness of quantifiers.
64    
65    2. Add (?U) and (?X) to set PCRE_UNGREEDY and PCRE_EXTRA respectively. The
66    latter must appear before anything that relies on it in the pattern.
67    
68    
69    Version 1.07 16-Feb-98
70    ----------------------
71    
72    1. A pattern such as /((a)*)*/ was not being diagnosed as in error (unlimited
73    repeat of a potentially empty string).
74    
75    
76    Version 1.06 23-Jan-98
77    ----------------------
78    
79    1. Added Markus Oberhumer's little patches for C++.
80    
81    2. Literal strings longer than 255 characters were broken.
82    
83    
84    Version 1.05 23-Dec-97
85    ----------------------
86    
87    1. Negated character classes containing more than one character were failing if
88    PCRE_CASELESS was set at run time.
89    
90    
91    Version 1.04 19-Dec-97
92    ----------------------
93    
94    1. Corrected the man page, where some "const" qualifiers had been omitted.
95    
96    2. Made debugging output print "{0,xxx}" instead of just "{,xxx}" to agree with
97    input syntax.
98    
99    3. Fixed memory leak which occurred when a regex with back references was
100    matched with an offsets vector that wasn't big enough. The temporary memory
101    that is used in this case wasn't being freed if the match failed.
102    
103    4. Tidied pcretest to ensure it frees memory that it gets.
104    
105    5. Temporary memory was being obtained in the case where the passed offsets
106    vector was exactly big enough.
107    
108    6. Corrected definition of offsetof() from change 5 below.
109    
110    7. I had screwed up change 6 below and broken the rules for the use of
111    setjmp(). Now fixed.
112    
113    
114    Version 1.03 18-Dec-97
115    ----------------------
116    
117    1. A erroneous regex with a missing opening parenthesis was correctly
118    diagnosed, but PCRE attempted to access brastack[-1], which could cause crashes
119    on some systems.
120    
121    2. Replaced offsetof(real_pcre, code) by offsetof(real_pcre, code[0]) because
122    it was reported that one broken compiler failed on the former because "code" is
123    also an independent variable.
124    
125    3. The erroneous regex a[]b caused an array overrun reference.
126    
127    4. A regex ending with a one-character negative class (e.g. /[^k]$/) did not
128    fail on data ending with that character. (It was going on too far, and checking
129    the next character, typically a binary zero.) This was specific to the
130    optimized code for single-character negative classes.
131    
132    5. Added a contributed patch from the TIN world which does the following:
133    
134      + Add an undef for memmove, in case the the system defines a macro for it.
135    
136      + Add a definition of offsetof(), in case there isn't one. (I don't know
137        the reason behind this - offsetof() is part of the ANSI standard - but
138        it does no harm).
139    
140      + Reduce the ifdef's in pcre.c using macro DPRINTF, thereby eliminating
141        most of the places where whitespace preceded '#'. I have given up and
142        allowed the remaining 2 cases to be at the margin.
143    
144      + Rename some variables in pcre to eliminate shadowing. This seems very
145        pedantic, but does no harm, of course.
146    
147    6. Moved the call to setjmp() into its own function, to get rid of warnings
148    from gcc -Wall, and avoided calling it at all unless PCRE_EXTRA is used.
149    
150    7. Constructs such as \d{8,} were compiling into the equivalent of
151    \d{8}\d{0,65527} instead of \d{8}\d* which didn't make much difference to the
152    outcome, but in this particular case used more store than had been allocated,
153    which caused the bug to be discovered because it threw up an internal error.
154    
155    8. The debugging code in both pcre and pcretest for outputting the compiled
156    form of a regex was going wrong in the case of back references followed by
157    curly-bracketed repeats.
158    
159    
160    Version 1.02 12-Dec-97
161    ----------------------
162    
163    1. Typos in pcre.3 and comments in the source fixed.
164    
165    2. Applied a contributed patch to get rid of places where it used to remove
166    'const' from variables, and fixed some signed/unsigned and uninitialized
167    variable warnings.
168    
169    3. Added the "runtest" target to Makefile.
170    
171    4. Set default compiler flag to -O2 rather than just -O.
172    
173    
174  Version 1.01 19-Nov-97  Version 1.01 19-Nov-97
175  ----------------------  ----------------------
176    

Legend:
Removed from v.5  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.5