1*58f0484fSRodney W. Grimes# @(#)WHATSNEW 8.3 (Berkeley) 3/18/94 2*58f0484fSRodney W. Grimes 3*58f0484fSRodney W. GrimesNew in alpha3.4: The complex bug alluded to below has been fixed (in a 4*58f0484fSRodney W. Grimesslightly kludgey temporary way that may hurt efficiency a bit; this is 5*58f0484fSRodney W. Grimesanother "get it out the door for 4.4" release). The tests at the end of 6*58f0484fSRodney W. Grimesthe tests file have accordingly been uncommented. The primary sign of 7*58f0484fSRodney W. Grimesthe bug was that something like a?b matching ab matched b rather than ab. 8*58f0484fSRodney W. Grimes(The bug was essentially specific to this exact situation, else it would 9*58f0484fSRodney W. Grimeshave shown up earlier.) 10*58f0484fSRodney W. Grimes 11*58f0484fSRodney W. GrimesNew in alpha3.3: The definition of word boundaries has been altered 12*58f0484fSRodney W. Grimesslightly, to more closely match the usual programming notion that "_" 13*58f0484fSRodney W. Grimesis an alphabetic. Stuff used for pre-ANSI systems is now in a subdir, 14*58f0484fSRodney W. Grimesand the makefile no longer alludes to it in mysterious ways. The 15*58f0484fSRodney W. Grimesmakefile has generally been cleaned up some. Fixes have been made 16*58f0484fSRodney W. Grimes(again!) so that the regression test will run without -DREDEBUG, at 17*58f0484fSRodney W. Grimesthe cost of weaker checking. A workaround for a bug in some folks' 18*58f0484fSRodney W. Grimes<assert.h> has been added. And some more things have been added to 19*58f0484fSRodney W. Grimestests, including a couple right at the end which are commented out 20*58f0484fSRodney W. Grimesbecause the code currently flunks them (complex bug; fix coming). 21*58f0484fSRodney W. GrimesPlus the usual minor cleanup. 22*58f0484fSRodney W. Grimes 23*58f0484fSRodney W. GrimesNew in alpha3.2: Assorted bits of cleanup and portability improvement 24*58f0484fSRodney W. Grimes(the development base is now a BSDI system using GCC instead of an ancient 25*58f0484fSRodney W. GrimesSun system, and the newer compiler exposed some glitches). Fix for a 26*58f0484fSRodney W. Grimesserious bug that affected REs using many [] (including REG_ICASE REs 27*58f0484fSRodney W. Grimesbecause of the way they are implemented), *sometimes*, depending on 28*58f0484fSRodney W. Grimesmemory-allocation patterns. The header-file prototypes no longer name 29*58f0484fSRodney W. Grimesthe parameters, avoiding possible name conflicts. The possibility that 30*58f0484fSRodney W. Grimessome clot has defined CHAR_MIN as (say) `-128' instead of `(-128)' is 31*58f0484fSRodney W. Grimesnow handled gracefully. "uchar" is no longer used as an internal type 32*58f0484fSRodney W. Grimesname (too many people have the same idea). Still the same old lousy 33*58f0484fSRodney W. Grimesperformance, alas. 34*58f0484fSRodney W. Grimes 35*58f0484fSRodney W. GrimesNew in alpha3.1: Basically nothing, this release is just a bookkeeping 36*58f0484fSRodney W. Grimesconvenience. Stay tuned. 37*58f0484fSRodney W. Grimes 38*58f0484fSRodney W. GrimesNew in alpha3.0: Performance is no better, alas, but some fixes have been 39*58f0484fSRodney W. Grimesmade and some functionality has been added. (This is basically the "get 40*58f0484fSRodney W. Grimesit out the door in time for 4.4" release.) One bug fix: regfree() didn't 41*58f0484fSRodney W. Grimesfree the main internal structure (how embarrassing). It is now possible 42*58f0484fSRodney W. Grimesto put NULs in either the RE or the target string, using (resp.) a new 43*58f0484fSRodney W. GrimesREG_PEND flag and the old REG_STARTEND flag. The REG_NOSPEC flag to 44*58f0484fSRodney W. Grimesregcomp() makes all characters ordinary, so you can match a literal 45*58f0484fSRodney W. Grimesstring easily (this will become more useful when performance improves!). 46*58f0484fSRodney W. GrimesThere are now primitives to match beginnings and ends of words, although 47*58f0484fSRodney W. Grimesthe syntax is disgusting and so is the implementation. The REG_ATOI 48*58f0484fSRodney W. Grimesdebugging interface has changed a bit. And there has been considerable 49*58f0484fSRodney W. Grimesinternal cleanup of various kinds. 50*58f0484fSRodney W. Grimes 51*58f0484fSRodney W. GrimesNew in alpha2.3: Split change list out of README, and moved flags notes 52*58f0484fSRodney W. Grimesinto Makefile. Macro-ized the name of regex(7) in regex(3), since it has 53*58f0484fSRodney W. Grimesto change for 4.4BSD. Cleanup work in engine.c, and some new regression 54*58f0484fSRodney W. Grimestests to catch tricky cases thereof. 55*58f0484fSRodney W. Grimes 56*58f0484fSRodney W. GrimesNew in alpha2.2: Out-of-date manpages updated. Regerror() acquires two 57*58f0484fSRodney W. Grimessmall extensions -- REG_ITOA and REG_ATOI -- which avoid debugging kludges 58*58f0484fSRodney W. Grimesin my own test program and might be useful to others for similar purposes. 59*58f0484fSRodney W. GrimesThe regression test will now compile (and run) without REDEBUG. The 60*58f0484fSRodney W. GrimesBRE \$ bug is fixed. Most uses of "uchar" are gone; it's all chars now. 61*58f0484fSRodney W. GrimesChar/uchar parameters are now written int/unsigned, to avoid possible 62*58f0484fSRodney W. Grimesportability problems with unpromoted parameters. Some unsigned casts have 63*58f0484fSRodney W. Grimesbeen introduced to minimize portability problems with shifting into sign 64*58f0484fSRodney W. Grimesbits. 65*58f0484fSRodney W. Grimes 66*58f0484fSRodney W. GrimesNew in alpha2.1: Lots of little stuff, cleanup and fixes. The one big 67*58f0484fSRodney W. Grimesthing is that regex.h is now generated, using mkh, rather than being 68*58f0484fSRodney W. Grimessupplied in the distribution; due to circularities in dependencies, 69*58f0484fSRodney W. Grimesyou have to build regex.h explicitly by "make h". The two known bugs 70*58f0484fSRodney W. Grimeshave been fixed (and the regression test now checks for them), as has a 71*58f0484fSRodney W. Grimesproblem with assertions not being suppressed in the absence of REDEBUG. 72*58f0484fSRodney W. GrimesNo performance work yet. 73*58f0484fSRodney W. Grimes 74*58f0484fSRodney W. GrimesNew in alpha2: Backslash-anything is an ordinary character, not an 75*58f0484fSRodney W. Grimeserror (except, of course, for the handful of backslashed metacharacters 76*58f0484fSRodney W. Grimesin BREs), which should reduce script breakage. The regression test 77*58f0484fSRodney W. Grimeschecks *where* null strings are supposed to match, and has generally 78*58f0484fSRodney W. Grimesbeen tightened up somewhat. Small bug fixes in parameter passing (not 79*58f0484fSRodney W. Grimesharmful, but technically errors) and some other areas. Debugging 80*58f0484fSRodney W. Grimesinvoked by defining REDEBUG rather than not defining NDEBUG. 81*58f0484fSRodney W. Grimes 82*58f0484fSRodney W. GrimesNew in alpha+3: full prototyping for internal routines, using a little 83*58f0484fSRodney W. Grimeshelper program, mkh, which extracts prototypes given in stylized comments. 84*58f0484fSRodney W. GrimesMore minor cleanup. Buglet fix: it's CHAR_BIT, not CHAR_BITS. Simple 85*58f0484fSRodney W. Grimespre-screening of input when a literal string is known to be part of the 86*58f0484fSRodney W. GrimesRE; this does wonders for performance. 87*58f0484fSRodney W. Grimes 88*58f0484fSRodney W. GrimesNew in alpha+2: minor bits of cleanup. Notably, the number "32" for the 89*58f0484fSRodney W. Grimesword width isn't hardwired into regexec.c any more, the public header 90*58f0484fSRodney W. Grimesfile prototypes the functions if __STDC__ is defined, and some small typos 91*58f0484fSRodney W. Grimesin the manpages have been fixed. 92*58f0484fSRodney W. Grimes 93*58f0484fSRodney W. GrimesNew in alpha+1: improvements to the manual pages, and an important 94*58f0484fSRodney W. Grimesextension, the REG_STARTEND option to regexec(). 95