📄 whatsnew
字号:
New in alpha3.8: Bug fix for signed/unsigned mixup, found and fixedby the FreeBSD folks.New in alpha3.7: A bit of cleanup aimed at maximizing portability,possibly at slight cost in efficiency. "ul" suffixes and "unsigned long"no longer appear, in particular.New in alpha3.6: A couple more portability glitches fixed.New in alpha3.5: Active development of this code has been stopped --I'm working on a complete reimplementation -- but folks have found someminor portability glitches and the like, hence this release to fix them.One penalty: slightly reduced compatibility with old compilers, becausethe ANSI C `unsigned long' type and `ul' constant suffix are used in afew places (I could avoid this but it would be considerably more work).New in alpha3.4: The complex bug alluded to below has been fixed (in aslightly kludgey temporary way that may hurt efficiency a bit; this isanother "get it out the door for 4.4" release). The tests at the end ofthe tests file have accordingly been uncommented. The primary sign ofthe bug was that something like a?b matching ab matched b rather than ab.(The bug was essentially specific to this exact situation, else it wouldhave shown up earlier.)New in alpha3.3: The definition of word boundaries has been alteredslightly, to more closely match the usual programming notion that "_"is an alphabetic. Stuff used for pre-ANSI systems is now in a subdir,and the makefile no longer alludes to it in mysterious ways. Themakefile has generally been cleaned up some. Fixes have been made(again!) so that the regression test will run without -DREDEBUG, atthe cost of weaker checking. A workaround for a bug in some folks'<assert.h> has been added. And some more things have been added totests, including a couple right at the end which are commented outbecause the code currently flunks them (complex bug; fix coming).Plus the usual minor cleanup.New in alpha3.2: Assorted bits of cleanup and portability improvement(the development base is now a BSDI system using GCC instead of an ancientSun system, and the newer compiler exposed some glitches). Fix for aserious bug that affected REs using many [] (including REG_ICASE REsbecause of the way they are implemented), *sometimes*, depending onmemory-allocation patterns. The header-file prototypes no longer namethe parameters, avoiding possible name conflicts. The possibility thatsome clot has defined CHAR_MIN as (say) `-128' instead of `(-128)' isnow handled gracefully. "uchar" is no longer used as an internal typename (too many people have the same idea). Still the same old lousyperformance, alas.New in alpha3.1: Basically nothing, this release is just a bookkeepingconvenience. Stay tuned.New in alpha3.0: Performance is no better, alas, but some fixes have beenmade and some functionality has been added. (This is basically the "getit out the door in time for 4.4" release.) One bug fix: regfree() didn'tfree the main internal structure (how embarrassing). It is now possibleto put NULs in either the RE or the target string, using (resp.) a newREG_PEND flag and the old REG_STARTEND flag. The REG_NOSPEC flag toregcomp() makes all characters ordinary, so you can match a literalstring easily (this will become more useful when performance improves!).There are now primitives to match beginnings and ends of words, althoughthe syntax is disgusting and so is the implementation. The REG_ATOIdebugging interface has changed a bit. And there has been considerableinternal cleanup of various kinds.New in alpha2.3: Split change list out of README, and moved flags notesinto Makefile. Macro-ized the name of regex(7) in regex(3), since it hasto change for 4.4BSD. Cleanup work in engine.c, and some new regressiontests to catch tricky cases thereof.New in alpha2.2: Out-of-date manpages updated. Regerror() acquires twosmall extensions -- REG_ITOA and REG_ATOI -- which avoid debugging kludgesin my own test program and might be useful to others for similar purposes.The regression test will now compile (and run) without REDEBUG. TheBRE \$ bug is fixed. Most uses of "uchar" are gone; it's all chars now.Char/uchar parameters are now written int/unsigned, to avoid possibleportability problems with unpromoted parameters. Some unsigned casts havebeen introduced to minimize portability problems with shifting into signbits.New in alpha2.1: Lots of little stuff, cleanup and fixes. The one bigthing is that regex.h is now generated, using mkh, rather than beingsupplied in the distribution; due to circularities in dependencies,you have to build regex.h explicitly by "make h". The two known bugshave been fixed (and the regression test now checks for them), as has aproblem with assertions not being suppressed in the absence of REDEBUG.No performance work yet.New in alpha2: Backslash-anything is an ordinary character, not anerror (except, of course, for the handful of backslashed metacharactersin BREs), which should reduce script breakage. The regression testchecks *where* null strings are supposed to match, and has generallybeen tightened up somewhat. Small bug fixes in parameter passing (notharmful, but technically errors) and some other areas. Debugginginvoked by defining REDEBUG rather than not defining NDEBUG.New in alpha+3: full prototyping for internal routines, using a littlehelper program, mkh, which extracts prototypes given in stylized comments.More minor cleanup. Buglet fix: it's CHAR_BIT, not CHAR_BITS. Simplepre-screening of input when a literal string is known to be part of theRE; this does wonders for performance.New in alpha+2: minor bits of cleanup. Notably, the number "32" for theword width isn't hardwired into regexec.c any more, the public headerfile prototypes the functions if __STDC__ is defined, and some small typosin the manpages have been fixed.New in alpha+1: improvements to the manual pages, and an importantextension, the REG_STARTEND option to regexec().
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -