xref: /netbsd-src/lib/libc/regex/WHATSNEW (revision 2c84ad3a4149547fef3a4c4e24346adb777eac82)
1*2c84ad3aScgd#	$NetBSD: WHATSNEW,v 1.6 1995/02/27 13:28:25 cgd Exp $
27c6ed81dScgd# @(#)WHATSNEW	8.3 (Berkeley) 3/18/94
37c6ed81dScgd
4b7744e07SjtcNew in alpha3.4:  The complex bug alluded to below has been fixed (in a
5b7744e07Sjtcslightly kludgey temporary way that may hurt efficiency a bit; this is
6b7744e07Sjtcanother "get it out the door for 4.4" release).  The tests at the end of
7b7744e07Sjtcthe tests file have accordingly been uncommented.  The primary sign of
8b7744e07Sjtcthe bug was that something like a?b matching ab matched b rather than ab.
9b7744e07Sjtc(The bug was essentially specific to this exact situation, else it would
10b7744e07Sjtchave shown up earlier.)
11b7744e07Sjtc
123ed83140SjtcNew in alpha3.3:  The definition of word boundaries has been altered
133ed83140Sjtcslightly, to more closely match the usual programming notion that "_"
143ed83140Sjtcis an alphabetic.  Stuff used for pre-ANSI systems is now in a subdir,
153ed83140Sjtcand the makefile no longer alludes to it in mysterious ways.  The
163ed83140Sjtcmakefile has generally been cleaned up some.  Fixes have been made
173ed83140Sjtc(again!) so that the regression test will run without -DREDEBUG, at
183ed83140Sjtcthe cost of weaker checking.  A workaround for a bug in some folks'
193ed83140Sjtc<assert.h> has been added.  And some more things have been added to
203ed83140Sjtctests, including a couple right at the end which are commented out
213ed83140Sjtcbecause the code currently flunks them (complex bug; fix coming).
223ed83140SjtcPlus the usual minor cleanup.
233ed83140Sjtc
246931099eSjtcNew in alpha3.2:  Assorted bits of cleanup and portability improvement
256931099eSjtc(the development base is now a BSDI system using GCC instead of an ancient
266931099eSjtcSun system, and the newer compiler exposed some glitches).  Fix for a
276931099eSjtcserious bug that affected REs using many [] (including REG_ICASE REs
286931099eSjtcbecause of the way they are implemented), *sometimes*, depending on
296931099eSjtcmemory-allocation patterns.  The header-file prototypes no longer name
306931099eSjtcthe parameters, avoiding possible name conflicts.  The possibility that
316931099eSjtcsome clot has defined CHAR_MIN as (say) `-128' instead of `(-128)' is
326931099eSjtcnow handled gracefully.  "uchar" is no longer used as an internal type
336931099eSjtcname (too many people have the same idea).  Still the same old lousy
346931099eSjtcperformance, alas.
356931099eSjtc
36b90ff831SjtcNew in alpha3.1:  Basically nothing, this release is just a bookkeeping
37b90ff831Sjtcconvenience.  Stay tuned.
38b90ff831Sjtc
39b90ff831SjtcNew in alpha3.0:  Performance is no better, alas, but some fixes have been
40b90ff831Sjtcmade and some functionality has been added.  (This is basically the "get
41b90ff831Sjtcit out the door in time for 4.4" release.)  One bug fix:  regfree() didn't
42b90ff831Sjtcfree the main internal structure (how embarrassing).  It is now possible
43b90ff831Sjtcto put NULs in either the RE or the target string, using (resp.) a new
44b90ff831SjtcREG_PEND flag and the old REG_STARTEND flag.  The REG_NOSPEC flag to
45b90ff831Sjtcregcomp() makes all characters ordinary, so you can match a literal
46b90ff831Sjtcstring easily (this will become more useful when performance improves!).
47b90ff831SjtcThere are now primitives to match beginnings and ends of words, although
48b90ff831Sjtcthe syntax is disgusting and so is the implementation.  The REG_ATOI
49b90ff831Sjtcdebugging interface has changed a bit.  And there has been considerable
50b90ff831Sjtcinternal cleanup of various kinds.
51b90ff831Sjtc
52b90ff831SjtcNew in alpha2.3:  Split change list out of README, and moved flags notes
53b90ff831Sjtcinto Makefile.  Macro-ized the name of regex(7) in regex(3), since it has
54b90ff831Sjtcto change for 4.4BSD.  Cleanup work in engine.c, and some new regression
55b90ff831Sjtctests to catch tricky cases thereof.
56b90ff831Sjtc
57b90ff831SjtcNew in alpha2.2:  Out-of-date manpages updated.  Regerror() acquires two
58b90ff831Sjtcsmall extensions -- REG_ITOA and REG_ATOI -- which avoid debugging kludges
59b90ff831Sjtcin my own test program and might be useful to others for similar purposes.
60b90ff831SjtcThe regression test will now compile (and run) without REDEBUG.  The
61b90ff831SjtcBRE \$ bug is fixed.  Most uses of "uchar" are gone; it's all chars now.
62b90ff831SjtcChar/uchar parameters are now written int/unsigned, to avoid possible
63b90ff831Sjtcportability problems with unpromoted parameters.  Some unsigned casts have
64b90ff831Sjtcbeen introduced to minimize portability problems with shifting into sign
65b90ff831Sjtcbits.
66b90ff831Sjtc
67b90ff831SjtcNew in alpha2.1:  Lots of little stuff, cleanup and fixes.  The one big
68b90ff831Sjtcthing is that regex.h is now generated, using mkh, rather than being
69b90ff831Sjtcsupplied in the distribution; due to circularities in dependencies,
70b90ff831Sjtcyou have to build regex.h explicitly by "make h".  The two known bugs
71b90ff831Sjtchave been fixed (and the regression test now checks for them), as has a
72b90ff831Sjtcproblem with assertions not being suppressed in the absence of REDEBUG.
73b90ff831SjtcNo performance work yet.
74b90ff831Sjtc
75b90ff831SjtcNew in alpha2:  Backslash-anything is an ordinary character, not an
76b90ff831Sjtcerror (except, of course, for the handful of backslashed metacharacters
77b90ff831Sjtcin BREs), which should reduce script breakage.  The regression test
78b90ff831Sjtcchecks *where* null strings are supposed to match, and has generally
79b90ff831Sjtcbeen tightened up somewhat.  Small bug fixes in parameter passing (not
80b90ff831Sjtcharmful, but technically errors) and some other areas.  Debugging
81b90ff831Sjtcinvoked by defining REDEBUG rather than not defining NDEBUG.
82b90ff831Sjtc
83b90ff831SjtcNew in alpha+3:  full prototyping for internal routines, using a little
84b90ff831Sjtchelper program, mkh, which extracts prototypes given in stylized comments.
85b90ff831SjtcMore minor cleanup.  Buglet fix:  it's CHAR_BIT, not CHAR_BITS.  Simple
86b90ff831Sjtcpre-screening of input when a literal string is known to be part of the
87b90ff831SjtcRE; this does wonders for performance.
88b90ff831Sjtc
89b90ff831SjtcNew in alpha+2:  minor bits of cleanup.  Notably, the number "32" for the
90b90ff831Sjtcword width isn't hardwired into regexec.c any more, the public header
91b90ff831Sjtcfile prototypes the functions if __STDC__ is defined, and some small typos
92b90ff831Sjtcin the manpages have been fixed.
93b90ff831Sjtc
94b90ff831SjtcNew in alpha+1:  improvements to the manual pages, and an important
95b90ff831Sjtcextension, the REG_STARTEND option to regexec().
96