📄 changelog
字号:
Version 3.9 02-Jan-02---------------------1. A bit of extraneous text had somehow crept into the pcregrep documentation.2. If --disable-static was given, the building process failed when trying tobuild pcretest and pcregrep. (For some reason it was using libtool to compilethem, which is not right, as they aren't part of the library.)Version 3.8 18-Dec-01---------------------1. The experimental UTF-8 code was completely screwed up. It was packing thebytes in the wrong order. How dumb can you get?Version 3.7 29-Oct-01---------------------1. In updating pcretest to check change 1 of version 3.6, I screwed up.This caused pcretest, when used on the test data, to segfault. Unfortunately,this didn't happen under Solaris 8, where I normally test things.2. The Makefile had to be changed to make it work on BSD systems, where 'make'doesn't seem to recognize that ./xxx and xxx are the same file. (This entryisn't in ChangeLog distributed with 3.7 because I forgot when I hastily madethis fix an hour or so after the initial 3.7 release.)Version 3.6 23-Oct-01---------------------1. Crashed with /(sens|respons)e and \1ibility/ and "sense and sensibility" ifoffsets passed as NULL with zero offset count.2. The config.guess and config.sub files had not been updated when I moved tothe latest autoconf.Version 3.5 15-Aug-01---------------------1. Added some missing #if !defined NOPOSIX conditionals in pcretest.c thathad been forgotten.2. By using declared but undefined structures, we can avoid using "void"definitions in pcre.h while keeping the internal definitions of the structuresprivate.3. The distribution is now built using autoconf 2.50 and libtool 1.4. From auser point of view, this means that both static and shared libraries are builtby default, but this can be individually controlled. More of the work ofhandling this static/shared cases is now inside libtool instead of PCRE's makefile.4. The pcretest utility is now installed along with pcregrep because it isuseful for users (to test regexs) and by doing this, it automatically getsrelinked by libtool. The documentation has been turned into a man page, sothere are now .1, .txt, and .html versions in /doc.5. Upgrades to pcregrep: (i) Added long-form option names like gnu grep. (ii) Added --help to list all options with an explanatory phrase. (iii) Added -r, --recursive to recurse into sub-directories. (iv) Added -f, --file to read patterns from a file.6. pcre_exec() was referring to its "code" argument before testing thatargument for NULL (and giving an error if it was NULL).7. Upgraded Makefile.in to allow for compiling in a different directory fromthe source directory.8. Tiny buglet in pcretest: when pcre_fullinfo() was called to retrieve theoptions bits, the pointer it was passed was to an int instead of to an unsignedlong int. This mattered only on 64-bit systems.9. Fixed typo (3.4/1) in pcre.h again. Sigh. I had changed pcre.h (which isgenerated) instead of pcre.in, which it its source. Also made the same changein several of the .c files.10. A new release of gcc defines printf() as a macro, which broke pcretestbecause it had an ifdef in the middle of a string argument for printf(). Fixedby using separate calls to printf().11. Added --enable-newline-is-cr and --enable-newline-is-lf to the configurescript, to force use of CR or LF instead of \n in the source. On non-Unixsystems, the value can be set in config.h.12. The limit of 200 on non-capturing parentheses is a _nesting_ limit, not anabsolute limit. Changed the text of the error message to make this clear, andlikewise updated the man page.13. The limit of 99 on the number of capturing subpatterns has been removed.The new limit is 65535, which I hope will not be a "real" limit.Version 3.4 22-Aug-00---------------------1. Fixed typo in pcre.h: unsigned const char * changed to const unsigned char *.2. Diagnose condition (?(0) as an error instead of crashing on matching.Version 3.3 01-Aug-00---------------------1. If an octal character was given, but the value was greater than \377, itwas not getting masked to the least significant bits, as documented. This couldlead to crashes in some systems.2. Perl 5.6 (if not earlier versions) accepts classes like [a-\d] and treatsthe hyphen as a literal. PCRE used to give an error; it now behaves like Perl.3. Added the functions pcre_free_substring() and pcre_free_substring_list().These just pass their arguments on to (pcre_free)(), but they are providedbecause some uses of PCRE bind it to non-C systems that can call its functions,but cannot call free() or pcre_free() directly.4. Add "make test" as a synonym for "make check". Corrected some comments inthe Makefile.5. Add $(DESTDIR)/ in front of all the paths in the "install" target in theMakefile.6. Changed the name of pgrep to pcregrep, because Solaris has introduced acommand called pgrep for grepping around the active processes.7. Added the beginnings of support for UTF-8 character strings.8. Arranged for the Makefile to pass over the settings of CC, CFLAGS, andRANLIB to ./ltconfig so that they are used by libtool. I think these are allthe relevant ones. (AR is not passed because ./ltconfig does its own figuringout for the ar command.)Version 3.2 12-May-00---------------------This is purely a bug fixing release.1. If the pattern /((Z)+|A)*/ was matched agained ZABCDEFG it matched Z insteadof ZA. This was just one example of several cases that could provoke this bug,which was introduced by change 9 of version 2.00. The code for breakinginfinite loops after an iteration that matches an empty string was't workingcorrectly.2. The pcretest program was not imitating Perl correctly for the pattern /a*/gwhen matched against abbab (for example). After matching an empty string, itwasn't forcing anchoring when setting PCRE_NOTEMPTY for the next attempt; thiscaused it to match further down the string than it should.3. The code contained an inclusion of sys/types.h. It isn't clear why thiswas there because it doesn't seem to be needed, and it causes trouble on somesystems, as it is not a Standard C header. It has been removed.4. Made 4 silly changes to the source to avoid stupid compiler warnings thatwere reported on the Macintosh. The changes were from while ((c = *(++ptr)) != 0 && c != '\n');to while ((c = *(++ptr)) != 0 && c != '\n') ;Totally extraordinary, but if that's what it takes...5. PCRE is being used in one environment where neither memmove() nor bcopy() isavailable. Added HAVE_BCOPY and an autoconf test for it; if neitherHAVE_MEMMOVE nor HAVE_BCOPY is set, use a built-in emulation function whichassumes the way PCRE uses memmove() (always moving upwards).6. PCRE is being used in one environment where strchr() is not available. Therewas only one use in pcre.c, and writing it out to avoid strchr() probably givesfaster code anyway.Version 3.2 12-May-00---------------------This is purely a bug fixing release.1. If the pattern /((Z)+|A)*/ was matched agained ZABCDEFG it matched Z insteadof ZA. This was just one example of several cases that could provoke this bug,which was introduced by change 9 of version 2.00. The code for breakinginfinite loops after an iteration that matches an empty string was't workingcorrectly.2. The pcretest program was not imitating Perl correctly for the pattern /a*/gwhen matched against abbab (for example). After matching an empty string, itwasn't forcing anchoring when setting PCRE_NOTEMPTY for the next attempt; thiscaused it to match further down the string than it should.3. The code contained an inclusion of sys/types.h. It isn't clear why thiswas there because it doesn't seem to be needed, and it causes trouble on somesystems, as it is not a Standard C header. It has been removed.4. Made 4 silly changes to the source to avoid stupid compiler warnings thatwere reported on the Macintosh. The changes were from while ((c = *(++ptr)) != 0 && c != '\n');to while ((c = *(++ptr)) != 0 && c != '\n') ;Totally extraordinary, but if that's what it takes...5. PCRE is being used in one environment where neither memmove() nor bcopy() isavailable. Added HAVE_BCOPY and an autoconf test for it; if neitherHAVE_MEMMOVE nor HAVE_BCOPY is set, use a built-in emulation function whichassumes the way PCRE uses memmove() (always moving upwards).6. PCRE is being used in one environment where strchr() is not available. Therewas only one use in pcre.c, and writing it out to avoid strchr() probably givesfaster code anyway.Version 3.1 09-Feb-00---------------------The only change in this release is the fixing of some bugs in Makefile.in forthe "install" target:(1) It was failing to install pcreposix.h.(2) It was overwriting the pcre.3 man page with the pcreposix.3 man page.Version 3.0 01-Feb-00---------------------1. Add support for the /+ modifier to perltest (to output $` like it does inpcretest).2. Add support for the /g modifier to perltest.3. Fix pcretest so that it behaves even more like Perl for /g when the patternmatches null strings.4. Fix perltest so that it doesn't do unwanted things when fed an emptypattern. Perl treats empty patterns specially - it reuses the most recentpattern, which is not what we want. Replace // by /(?#)/ in order to avoid thiseffect.5. The POSIX interface was broken in that it was just handing over the POSIXcaptured string vector to pcre_exec(), but (since release 2.00) PCRE hasrequired a bigger vector, with some working space on the end. This means thatthe POSIX wrapper now has to get and free some memory, and copy the results.6. Added some simple autoconf support, placing the test data and thedocumentation in separate directories, re-organizing some of theinformation files, and making it build pcre-config (a GNU standard). Also addedlibtool support for building PCRE as a shared library, which is now thedefault.7. Got rid of the leading zero in the definition of PCRE_MINOR because 08 and09 are not valid octal constants. Single digits will be used for minor valuesless than 10.8. Defined REG_EXTENDED and REG_NOSUB as zero in the POSIX header, so thatexisting programs that set these in the POSIX interface can use PCRE withoutmodification.9. Added a new function, pcre_fullinfo() with an extensible interface. It canreturn all that pcre_info() returns, plus additional data. The pcre_info()function is retained for compatibility, but is considered to be obsolete.10. Added experimental recursion feature (?R) to handle one common case thatPerl 5.6 will be able to do with (?p{...}).11. Added support for POSIX character classes like [:alpha:], which Perl isadopting.Version 2.08 31-Aug-99----------------------1. When startoffset was not zero and the pattern began with ".*", PCRE was nottrying to match at the startoffset position, but instead was moving forward tothe next newline as if a previous match had failed.2. pcretest was not making use of PCRE_NOTEMPTY when repeating for /g and /G,and could get into a loop if a null string was matched other than at the startof the subject.3. Added definitions of PCRE_MAJOR and PCRE_MINOR to pcre.h so the version canbe distinguished at compile time, and for completeness also added PCRE_DATE.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -