FIXES revision 221533
185587Sobrien/****************************************************************
285587SobrienCopyright (C) Lucent Technologies 1997
385587SobrienAll Rights Reserved
485587Sobrien
585587SobrienPermission to use, copy, modify, and distribute this software and
685587Sobrienits documentation for any purpose and without fee is hereby
785587Sobriengranted, provided that the above copyright notice appear in all
885587Sobriencopies and that both that the copyright notice and this
985587Sobrienpermission notice and warranty disclaimer appear in supporting
1085587Sobriendocumentation, and that the name Lucent Technologies or any of
1185587Sobrienits entities not be used in advertising or publicity pertaining
1285587Sobriento distribution of the software without specific, written prior
1385587Sobrienpermission.
1485587Sobrien
1585587SobrienLUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1685587SobrienINCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
1785587SobrienIN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
1885587SobrienSPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1985587SobrienWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
2085587SobrienIN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
2185587SobrienARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
2285587SobrienTHIS SOFTWARE.
2385587Sobrien****************************************************************/
2485587Sobrien
2585587SobrienThis file lists all bug fixes, changes, etc., made since the AWK book
2685587Sobrienwas sent to the printers in August, 1987.
2785587Sobrien
28221533SruMay 6, 2011:
29221533Sru	added #ifdef for isblank.
30221533Sru	now allows -ffoo as well as -f foo arguments.
31221533Sru	(thanks, ruslan)
32221533Sru
33221381SruMay 1, 2011:
34221381Sru	after advice from todd miller, kevin lo, ruslan ermilov,
35221381Sru	and arnold robbins, changed srand() to return the previous
36221381Sru	seed (which is 1 on the first call of srand).  the seed is
37221381Sru	an Awkfloat internally though converted to unsigned int to
38221381Sru	pass to the library srand().  thanks, everyone. 
39221381Sru
40221381Sru	fixed a subtle (and i hope low-probability) overflow error
41221381Sru	in fldbld, by adding space for one extra \0.  thanks to 
42221381Sru	robert bassett for spotting this one and providing a fix.
43221381Sru
44221381Sru	removed the files related to compilation on windows.  i no
45221381Sru	longer have anything like a current windows environment, so
46221381Sru	i can't test any of it.
47221381Sru
48221381SruMay 23, 2010:
49221381Sru	fixed long-standing overflow bug in run.c; many thanks to
50221381Sru	nelson beebe for spotting it and providing the fix.
51221381Sru
52221381Sru	fixed bug that didn't parse -vd=1 properly; thanks to santiago
53221381Sru	vila for spotting it.
54221381Sru
55221381SruFeb 8, 2010:
56221381Sru	i give up.  replaced isblank with isspace in b.c; there are
57221381Sru	no consistent header files.
58221381Sru
59201951SruNov 26, 2009:
60201951Sru	fixed a long-standing issue with when FS takes effect.  a
61201951Sru	change to FS is now noticed immediately for subsequent splits.
62201951Sru
63201951Sru	changed the name getline() to awkgetline() to avoid yet another
64201951Sru	name conflict somewhere.
65201951Sru
66201951SruFeb 11, 2009:
67201951Sru	temporarily for now defined HAS_ISBLANK, since that seems to
68201951Sru	be the best way through the thicket.  isblank arrived in C99,
69201951Sru	but seems to be arriving at different systems at different
70201951Sru	times.
71201951Sru
72201951SruOct 8, 2008:
73201951Sru	fixed typo in b.c that set tmpvec wrongly.  no one had ever
74201951Sru	run into the problem, apparently.  thanks to alistair crooks.
75201951Sru
76172958SobrienOct 23, 2007:
77172958Sobrien	minor fix in lib.c: increase inputFS to 100, change malloc
78172958Sobrien	for fields to n+1.  
79172958Sobrien
80172958Sobrien	fixed memory fault caused by out of order test in setsval.
81172958Sobrien
82172958Sobrien	thanks to david o'brien, freebsd, for both fixes.
83172958Sobrien
84170331SrafanMay 1, 2007:
85170331Srafan	fiddle in makefile to fix for BSD make; thanks to igor sobrado.
86170331Srafan
87170331SrafanMar 31, 2007:
88170331Srafan	fixed some null pointer refs calling adjbuf.
89170331Srafan
90170331SrafanFeb 21, 2007:
91170331Srafan	fixed a bug in matching the null RE in sub and gsub.  thanks to al aho
92170331Srafan	who actually did the fix (in b.c), and to wolfgang seeberg for finding
93170331Srafan	it and providing a very compact test case.
94170331Srafan
95170331Srafan	fixed quotation in b.c; thanks to Hal Pratt and the Princeton Dante
96170331Srafan	Project.
97170331Srafan
98170331Srafan	removed some no-effect asserts in run.c.
99170331Srafan
100170331Srafan	fiddled maketab.c to not complain about bison-generated values.
101170331Srafan
102170331Srafan	removed the obsolete -V argument; fixed --version to print the
103170331Srafan	version and exit.
104170331Srafan
105170331Srafan	fixed wording and an outright error in the usage message; thanks to igor
106170331Srafan	sobrado and jason mcintyre.
107170331Srafan
108170331Srafan	fixed a bug in -d that caused core dump if no program followed.
109170331Srafan
110170331SrafanJan 1, 2007:
111170331Srafan	dropped mac.code from makefile; there are few non-MacOSX
112170331Srafan	mac's these days.
113170331Srafan
114170331SrafanJan 17, 2006:
115170331Srafan	system() not flagged as unsafe in the unadvertised -safe option.
116170331Srafan	found it while enhancing tests before shipping the ;login: article.
117170331Srafan	practice what you preach.
118170331Srafan
119170331Srafan	removed the 9-years-obsolete -mr and -mf flags.
120170331Srafan
121170331Srafan	added -version and --version options.
122170331Srafan
123170331Srafan	core dump on linux with BEGIN {nextfile}, now fixed.
124170331Srafan
125170331Srafan	removed some #ifdef's in run.c and lex.c that appear to no 
126170331Srafan	longer be necessary.
127170331Srafan
128146299SruApr 24, 2005:
129146299Sru	modified lib.c so that values of $0 et al are preserved in the END
130146299Sru	block, apparently as required by posix.  thanks to havard eidnes
131146299Sru	for the report and code.
132146299Sru
133146299SruJan 14, 2005:
134146299Sru	fixed infinite loop in parsing, originally found by brian tsang.
135146299Sru	thanks to arnold robbins for a suggestion that started me
136146299Sru	rethinking it.
137146299Sru
138146299SruDec 31, 2004:
139146299Sru	prevent overflow of -f array in main, head off potential error in 
140146299Sru	call of SYNTAX(), test malloc return in lib.c, all with thanks to 
141146299Sru	todd miller.
142146299Sru
143146299SruDec 22, 2004:
144146299Sru	cranked up size of NCHARS; coverity thinks it can be overrun with
145146299Sru	smaller size, and i think that's right.  added some assertions to b.c
146146299Sru	to catch places where it might overrun.  the RE code is still fragile.
147146299Sru
148146299SruDec 5, 2004:
149146299Sru	fixed a couple of overflow problems with ridiculous field numbers:
150146299Sru	e.g., print $(2^32-1).  thanks to ruslan ermilov, giorgos keramidas
151146299Sru	and david o'brien at freebsd.org for patches.  this really should
152146299Sru	be re-done from scratch.
153146299Sru
154146299SruNov 21, 2004:
155146299Sru	fixed another 25-year-old RE bug, in split.  it's another failure
156146299Sru	to (re-)initialize.  thanks to steve fisher for spotting this and
157146299Sru	providing a good test case.
158146299Sru
159125601SruNov 22, 2003:
160125601Sru	fixed a bug in regular expressions that dates (so help me) from 1977;
161125601Sru	it's been there from the beginning.  an anchored longest match that
162125601Sru	was longer than the number of states triggered a failure to initialize
163125601Sru	the machine properly.  many thanks to moinak ghosh for not only finding
164125601Sru	this one but for providing a fix, in some of the most mysterious
165125601Sru	code known to man.
166125601Sru
167125601Sru	fixed a storage leak in call() that appears to have been there since
168125601Sru	1983 or so -- a function without an explicit return that assigns a 
169125601Sru	string to a parameter leaked a Cell.  thanks to moinak ghosh for 
170125601Sru	spotting this very subtle one.
171125601Sru
172125601SruJul 31, 2003:
173125601Sru	fixed, thanks to andrey chernov and ruslan ermilov, a bug in lex.c
174125601Sru	that mis-handled the character 255 in input.  (it was being compared
175125601Sru	to EOF with a signed comparison.)
176125601Sru
177118194SruJul 29, 2003:
178118194Sru	fixed (i think) the long-standing botch that included the beginning of
179118194Sru	line state ^ for RE's in the set of valid characters; this led to a
180118194Sru	variety of odd problems, including failure to properly match certain
181118194Sru	regular expressions in non-US locales.  thanks to ruslan for keeping
182118194Sru	at this one.
183118194Sru
184118194SruJul 28, 2003:
185118194Sru	n-th try at getting internationalization right, with thanks to volker
186118194Sru	kiefel, arnold robbins and ruslan ermilov for advice, though they
187118194Sru	should not be blamed for the outcome.  according to posix, "."  is the
188118194Sru	radix character in programs and command line arguments regardless of
189118194Sru	the locale; otherwise, the locale should prevail for input and output
190118194Sru	of numbers.  so it's intended to work that way.
191118194Sru	
192118194Sru	i have rescinded the attempt to use strcoll in expanding shorthands in
193118194Sru	regular expressions (cclenter).  its properties are much too
194118194Sru	surprising; for example [a-c] matches aAbBc in locale en_US but abBcC
195118194Sru	in locale fr_CA.  i can see how this might arise by implementation
196118194Sru	but i cannot explain it to a human user.  (this behavior can be seen
197118194Sru	in gawk as well; we're leaning on the same library.)
198118194Sru
199118194Sru	the issue appears to be that strcoll is meant for sorting, where
200118194Sru	merging upper and lower case may make sense (though note that unix
201118194Sru	sort does not do this by default either).  it is not appropriate
202118194Sru	for regular expressions, where the goal is to match specific
203118194Sru	patterns of characters.  in any case, the notations [:lower:], etc.,
204118194Sru	are available in awk, and they are more likely to work correctly in
205118194Sru	most locales.
206118194Sru
207118194Sru	a moratorium is hereby declared on internationalization changes.
208118194Sru	i apologize to friends and colleagues in other parts of the world.
209118194Sru	i would truly like to get this "right", but i don't know what
210118194Sru	that is, and i do not want to keep making changes until it's clear.
211118194Sru
212118194SruJul 4, 2003:
213118194Sru	fixed bug that permitted non-terminated RE, as in "awk /x".
214118194Sru
215118194SruJun 1, 2003:
216118194Sru	subtle change to split: if source is empty, number of elems
217118194Sru	is always 0 and the array is not set.
218118194Sru
219118194SruMar 21, 2003:
220118194Sru	added some parens to isblank, in another attempt to make things
221118194Sru	internationally portable.
222118194Sru
223112336SobrienMar 14, 2003:
224112336Sobrien	the internationalization changes, somewhat modified, are now
225112336Sobrien	reinstated.  in theory awk will now do character comparisons
226112336Sobrien	and case conversions in national language, but "." will always
227112336Sobrien	be the decimal point separator on input and output regardless
228112336Sobrien	of national language.  isblank(){} has an #ifndef.
229112336Sobrien
230112336Sobrien	this no longer compiles on windows: LC_MESSAGES isn't defined
231112336Sobrien	in vc6++.
232112336Sobrien
233112336Sobrien	fixed subtle behavior in field and record splitting: if FS is
234112336Sobrien	a single character and RS is not empty, \n is NOT a separator.
235112336Sobrien	this tortuous reading is found in the awk book; behavior now
236112336Sobrien	matches gawk and mawk.
237112336Sobrien
238108072SobrienDec 13, 2002:
239108072Sobrien	for the moment, the internationalization changes of nov 29 are
240108072Sobrien	rolled back -- programs like x = 1.2 don't work in some locales,
241108072Sobrien	because the parser is expecting x = 1,2.  until i understand this
242108072Sobrien	better, this will have to wait.
243108072Sobrien
244107806SobrienNov 29, 2002:
245107806Sobrien	modified b.c (with tiny changes in main and run) to support
246107806Sobrien	locales, using strcoll and iswhatever tests for posix character
247107806Sobrien	classes.  thanks to ruslan ermilov (ru@freebsd.org) for code.
248107806Sobrien	the function isblank doesn't seem to have propagated to any
249107806Sobrien	header file near me, so it's there explicitly.  not properly
250107806Sobrien	tested on non-ascii character sets by me.
251107806Sobrien
252107806SobrienJun 28, 2002:
253107806Sobrien	modified run/format() and tran/getsval() to do a slightly better
254107806Sobrien	job on using OFMT for output from print and CONVFMT for other
255107806Sobrien	number->string conversions, as promised by posix and done by 
256107806Sobrien	gawk and mawk.  there are still places where it doesn't work
257107806Sobrien	right if CONVFMT is changed; by then the STR attribute of the
258107806Sobrien	variable has been irrevocably set.  thanks to arnold robbins for
259107806Sobrien	code and examples.
260107806Sobrien
261107806Sobrien	fixed subtle bug in format that could get core dump.  thanks to
262107806Sobrien	Jaromir Dolecek <jdolecek@NetBSD.org> for finding and fixing.
263107806Sobrien	minor cleanup in run.c / format() at the same time.
264107806Sobrien
265107806Sobrien	added some tests for null pointers to debugging printf's, which
266107806Sobrien	were never intended for external consumption.  thanks to dave
267107806Sobrien	kerns (dkerns@lucent.com) for pointing this out.
268107806Sobrien
269107806Sobrien	GNU compatibility: an empty regexp matches anything (thanks to
270107806Sobrien	dag-erling smorgrav, des@ofug.org).  subject to reversion if
271107806Sobrien	this does more harm than good.
272107806Sobrien
273107806Sobrien	pervasive small changes to make things more const-correct, as
274107806Sobrien	reported by gcc's -Wwrite-strings.  as it says in the gcc manual,
275107806Sobrien	this may be more nuisance than useful.  provoked by a suggestion
276107806Sobrien	and code from arnaud desitter, arnaud@nimbus.geog.ox.ac.uk
277107806Sobrien
278107806Sobrien	minor documentation changes to note that this now compiles out
279107806Sobrien	of the box on Mac OS X.
280107806Sobrien
28190902SdesFeb 10, 2002:
28290902Sdes	changed types in posix chars structure to quiet solaris cc.
28390902Sdes
28490902SdesJan 1, 2002:
28590902Sdes	fflush() or fflush("") flushes all files and pipes.
28690902Sdes
28790902Sdes	length(arrayname) returns number of elements; thanks to 
28890902Sdes	arnold robbins for suggestion.
28990902Sdes
29090902Sdes	added a makefile.win to make it easier to build on windows.
29190902Sdes	based on dan allen's buildwin.bat.
29290902Sdes
29390902SdesNov 16, 2001:
29490902Sdes	added support for posix character class names like [:digit:],
29590902Sdes	which are not exactly shorter than [0-9] and perhaps no more
29690902Sdes	portable.  thanks to dag-erling smorgrav for code.
29790902Sdes
29890902SdesFeb 16, 2001:
29990902Sdes	removed -m option; no longer needed, and it was actually
30090902Sdes	broken (noted thanks to volker kiefel).
30190902Sdes
30290902SdesFeb 10, 2001:
30390902Sdes	fixed an appalling bug in gettok: any sequence of digits, +,-, E, e,
30490902Sdes	and period was accepted as a valid number if it started with a period.
30590902Sdes	this would never have happened with the lex version.
30690902Sdes
30790902Sdes	other 1-character botches, now fixed, include a bare $ and a
30890902Sdes	bare " at the end of the input.
30990902Sdes
31090902SdesFeb 7, 2001:
31190902Sdes	more (const char *) casts in b.c and tran.c to silence warnings.
31290902Sdes
31385587SobrienNov 15, 2000:
31485587Sobrien	fixed a bug introduced in august 1997 that caused expressions
31585587Sobrien	like $f[1] to be syntax errors.  thanks to arnold robbins for
31685587Sobrien	noticing this and providing a fix.
31785587Sobrien
31885587SobrienOct 30, 2000:
31985587Sobrien	fixed some nextfile bugs: not handling all cases.  thanks to
32085587Sobrien	arnold robbins for pointing this out.  new regressions added.
32185587Sobrien
32285587Sobrien	close() is now a function.  it returns whatever the library
32385587Sobrien	fclose returns, and -1 for closing a file or pipe that wasn't
32485587Sobrien	opened.
32585587Sobrien
32685587SobrienSep 24, 2000:
32785587Sobrien	permit \n explicitly in character classes; won't work right
32885587Sobrien	if comes in as "[\n]" but ok as /[\n]/, because of multiple
32985587Sobrien	processing of \'s.  thanks to arnold robbins.
33085587Sobrien
33185587SobrienJuly 5, 2000:
33285587Sobrien	minor fiddles in tran.c to keep compilers happy about uschar.
33385587Sobrien	thanks to norman wilson.
33485587Sobrien
33585587SobrienMay 25, 2000:
33685587Sobrien	yet another attempt at making 8-bit input work, with another
33785587Sobrien	band-aid in b.c (member()), and some (uschar) casts to head 
33885587Sobrien	off potential errors in subscripts (like isdigit).  also
33985587Sobrien	changed HAT to NCHARS-2.  thanks again to santiago vila.
34085587Sobrien
34185587Sobrien	changed maketab.c to ignore apparently out of range definitions
34285587Sobrien	instead of halting; new freeBSD generates one.  thanks to
34385587Sobrien	jon snader <jsnader@ix.netcom.com> for pointing out the problem.
34485587Sobrien
34585587SobrienMay 2, 2000:
34685587Sobrien	fixed an 8-bit problem in b.c by making several char*'s into
34785587Sobrien	unsigned char*'s.  not clear i have them all yet.  thanks to
34885587Sobrien	Santiago Vila <sanvila@unex.es> for the bug report.
34985587Sobrien
35085587SobrienApr 21, 2000:
35185587Sobrien	finally found and fixed a memory leak in function call; it's
35285587Sobrien	been there since functions were added ~1983.  thanks to
35385587Sobrien	jon bentley for the test case that found it.
35485587Sobrien
35585587Sobrien	added test in envinit to catch environment "variables" with
356146299Sru	names beginning with '='; thanks to Berend Hasselman.
35785587Sobrien
35885587SobrienJul 28, 1999:
35985587Sobrien	added test in defn() to catch function foo(foo), which
36085587Sobrien	otherwise recurses until core dump.  thanks to arnold
36185587Sobrien	robbins for noticing this.
36285587Sobrien
36385587SobrienJun 20, 1999:
36485587Sobrien	added *bp in gettok in lex.c; appears possible to exit function
36585587Sobrien	without terminating the string.  thanks to russ cox.
36685587Sobrien
36785587SobrienJun 2, 1999:
36885587Sobrien	added function stdinit() to run to initialize files[] array,
36985587Sobrien	in case stdin, etc., are not constants; some compilers care.
37085587Sobrien
37185587SobrienMay 10, 1999:
37285587Sobrien	replaced the ERROR ... FATAL, etc., macros with functions
37385587Sobrien	based on vprintf, to avoid problems caused by overrunning
37485587Sobrien	fixed-size errbuf array.  thanks to ralph corderoy for the
37585587Sobrien	impetus, and for pointing out a string termination bug in
37685587Sobrien	qstring as well.
37785587Sobrien
37885587SobrienApr 21, 1999:
37985587Sobrien	fixed bug that caused occasional core dumps with commandline
38085587Sobrien	variable with value ending in \.  (thanks to nelson beebe for
38185587Sobrien	the test case.)
38285587Sobrien
38385587SobrienApr 16, 1999:
38485587Sobrien	with code kindly provided by Bruce Lilly, awk now parses 
38585587Sobrien	/=/ and similar constructs more sensibly in more places.
38685587Sobrien	Bruce also provided some helpful test cases.
38785587Sobrien
38885587SobrienApr 5, 1999:
38985587Sobrien	changed true/false to True/False in run.c to make it
39085587Sobrien	easier to compile with C++.  Added some casts on malloc
39185587Sobrien	and realloc to be honest about casts; ditto.  changed
39285587Sobrien	ltype int to long in struct rrow to reduce some 64-bit
39385587Sobrien	complaints; other changes scattered throughout for the
39485587Sobrien	same purpose.  thanks to Nelson Beebe for these portability
39585587Sobrien	improvements.
39685587Sobrien
39785587Sobrien	removed some horrible pointer-int casting in b.c and elsewhere
39885587Sobrien	by adding ptoi and itonp to localize the casts, which are
39985587Sobrien	all benign.  fixed one incipient bug that showed up on sgi
40085587Sobrien	in 64-bit mode.
40185587Sobrien
40285587Sobrien	reset lineno for new source file; include filename in error
40385587Sobrien	message.  also fixed line number error in continuation lines.
40485587Sobrien	(thanks to Nelson Beebe for both of these.)
40585587Sobrien
40685587SobrienMar 24, 1999:
40785587Sobrien	Nelson Beebe notes that irix 5.3 yacc dies with a bogus
40885587Sobrien	error; use a newer version or switch to bison, since sgi
40985587Sobrien	is unlikely to fix it.
41085587Sobrien
41185587SobrienMar 5, 1999:
41285587Sobrien	changed isnumber to is_number to avoid the problem caused by
41385587Sobrien	versions of ctype.h that include the name isnumber.
41485587Sobrien
41585587Sobrien	distribution now includes a script for building on a Mac,
41685587Sobrien	thanks to Dan Allen.
41785587Sobrien
41885587SobrienFeb 20, 1999:
41985587Sobrien	fixed memory leaks in run.c (call) and tran.c (setfval).
42085587Sobrien	thanks to Stephen Nutt for finding these and providing the fixes.
42185587Sobrien
42285587SobrienJan 13, 1999:
42385587Sobrien	replaced srand argument by (unsigned int) in run.c;
42485587Sobrien	avoids problem on Mac and potentially on Unix & Windows.
42585587Sobrien	thanks to Dan Allen.
42685587Sobrien
42785587Sobrien	added a few (int) casts to silence useless compiler warnings.
42885587Sobrien	e.g., errorflag= in run.c jump().
42985587Sobrien
43085587Sobrien	added proctab.c to the bundle outout; one less thing
43185587Sobrien	to have to compile out of the box.
43285587Sobrien
43385587Sobrien	added calls to _popen and _pclose to the win95 stub for
43485587Sobrien	pipes (thanks to Steve Adams for this helpful suggestion).
43585587Sobrien	seems to work, though properties are not well understood
43685587Sobrien	by me, and it appears that under some circumstances the
43785587Sobrien	pipe output is truncated.  Be careful.
43885587Sobrien
43985587SobrienOct 19, 1998:
44085587Sobrien	fixed a couple of bugs in getrec: could fail to update $0
44185587Sobrien	after a getline var; because inputFS wasn't initialized, 
44285587Sobrien	could split $0 on every character, a misleading diversion.
44385587Sobrien
44485587Sobrien	fixed caching bug in makedfa: LRU was actually removing
44585587Sobrien	least often used.
44685587Sobrien
44785587Sobrien	thanks to ross ridge for finding these, and for providing
44885587Sobrien	great bug reports.
44985587Sobrien
45085587SobrienMay 12, 1998:
45185587Sobrien	fixed potential bug in readrec: might fail to update record
45285587Sobrien	pointer after growing.  thanks to dan levy for spotting this
45385587Sobrien	and suggesting the fix.
45485587Sobrien
45585587SobrienMar 12, 1998:
45685587Sobrien	added -V to print version number and die.
45785587Sobrien
45885587SobrienFeb 11, 1998:
45985587Sobrien	subtle silent bug in lex.c: if the program ended with a number
46085587Sobrien	longer than 1 digit, part of the input would be pushed back and
46185587Sobrien	parsed again because token buffer wasn't terminated right.
46285587Sobrien	example:  awk 'length($0) > 10'.  blush.  at least i found it
46385587Sobrien	myself.
46485587Sobrien
46585587SobrienAug 31, 1997:
46685587Sobrien	s/adelete/awkdelete/: SGI uses this in malloc.h.
46785587Sobrien	thanks to nelson beebe for pointing this one out.
46885587Sobrien
46985587SobrienAug 21, 1997:
47085587Sobrien	fixed some bugs in sub and gsub when replacement includes \\.
47185587Sobrien	this is a dark, horrible corner, but at least now i believe that
47285587Sobrien	the behavior is the same as gawk and the intended posix standard.
47385587Sobrien	thanks to arnold robbins for advice here.
47485587Sobrien
47585587SobrienAug 9, 1997:
47685587Sobrien	somewhat regretfully, replaced the ancient lex-based lexical
47785587Sobrien	analyzer with one written in C.  it's longer, generates less code,
47885587Sobrien	and more portable; the old one depended too much on mysterious
47985587Sobrien	properties of lex that were not preserved in other environments.
48085587Sobrien	in theory these recognize the same language.
48185587Sobrien
48285587Sobrien	now using strtod to test whether a string is a number, instead of
48385587Sobrien	the convoluted original function.  should be more portable and
48485587Sobrien	reliable if strtod is implemented right.
48585587Sobrien
48685587Sobrien	removed now-pointless optimization in makefile that tries to avoid
48785587Sobrien	recompilation when awkgram.y is changed but symbols are not.
48885587Sobrien
48985587Sobrien	removed most fixed-size arrays, though a handful remain, some
49085587Sobrien	of which are unchecked.  you have been warned.
49185587Sobrien
49285587SobrienAug 4, 1997:
49385587Sobrien	with some trepidation, replaced the ancient code that managed
49485587Sobrien	fields and $0 in fixed-size arrays with arrays that grow on
49585587Sobrien	demand.  there is still some tension between trying to make this
49685587Sobrien	run fast and making it clean; not sure it's right yet.
49785587Sobrien
49885587Sobrien	the ill-conceived -mr and -mf arguments are now useful only
49985587Sobrien	for debugging.  previous dynamic string code removed.
50085587Sobrien
50185587Sobrien	numerous other minor cleanups along the way.
50285587Sobrien
50385587SobrienJul 30, 1997:
50485587Sobrien	using code provided by dan levy (to whom profuse thanks), replaced
50585587Sobrien	fixed-size arrays and awkward kludges by a fairly uniform mechanism
50685587Sobrien	to grow arrays as needed for printf, sub, gsub, etc.
50785587Sobrien
50885587SobrienJul 23, 1997:
50985587Sobrien	falling off the end of a function returns "" and 0, not 0.
51085587Sobrien	thanks to arnold robbins.
51185587Sobrien
51285587SobrienJun 17, 1997:
51385587Sobrien	replaced several fixed-size arrays by dynamically-created ones
51485587Sobrien	in run.c; added overflow tests to some previously unchecked cases.
51585587Sobrien	getline, toupper, tolower.
51685587Sobrien
51785587Sobrien	getline code is still broken in that recursive calls may wind
51885587Sobrien	up using the same space.  [fixed later]
51985587Sobrien
52085587Sobrien	increased RECSIZE to 8192 to push problems further over the horizon.
52185587Sobrien
52285587Sobrien	added \r to \n as input line separator for programs, not data.
52385587Sobrien	damn CRLFs.
52485587Sobrien
52585587Sobrien	modified format() to permit explicit printf("%c", 0) to include
52685587Sobrien	a null byte in output.  thanks to ken stailey for the fix.
52785587Sobrien
52885587Sobrien	added a "-safe" argument that disables file output (print >,
52985587Sobrien	print >>), process creation (cmd|getline, print |, system), and
53085587Sobrien	access to the environment (ENVIRON).  this is a first approximation
53185587Sobrien	to a "safe" version of awk, but don't rely on it too much.  thanks
53285587Sobrien	to joan feigenbaum and matt blaze for the inspiration long ago.
53385587Sobrien
53485587SobrienJul 8, 1996:
53585587Sobrien	fixed long-standing bug in sub, gsub(/a/, "\\\\&"); thanks to
53685587Sobrien	ralph corderoy.
53785587Sobrien
53885587SobrienJun 29, 1996:
53985587Sobrien	fixed awful bug in new field splitting; didn't get all the places
54085587Sobrien	where input was done.
54185587Sobrien
54285587SobrienJun 28, 1996:
54385587Sobrien	changed field-splitting to conform to posix definition: fields are
54485587Sobrien	split using the value of FS at the time of input; it used to be
54585587Sobrien	the value when the field or NF was first referred to, a much less
54685587Sobrien	predictable definition.  thanks to arnold robbins for encouragement
54785587Sobrien	to do the right thing.
54885587Sobrien
54985587SobrienMay 28, 1996:
55085587Sobrien	fixed appalling but apparently unimportant bug in parsing octal
55185587Sobrien	numbers in reg exprs.
55285587Sobrien
55385587Sobrien	explicit hex in reg exprs now limited to 2 chars: \xa, \xaa.
55485587Sobrien
55585587SobrienMay 27, 1996:
55685587Sobrien	cleaned up some declarations so gcc -Wall is now almost silent.
55785587Sobrien
55885587Sobrien	makefile now includes backup copies of ytab.c and lexyy.c in case
55985587Sobrien	one makes before looking; it also avoids recreating lexyy.c unless
56085587Sobrien	really needed.
56185587Sobrien
56285587Sobrien	s/aprintf/awkprint, s/asprintf/awksprintf/ to avoid some name clashes
56385587Sobrien	with unwisely-written header files.
56485587Sobrien
56585587Sobrien	thanks to jeffrey friedl for several of these.
56685587Sobrien
56785587SobrienMay 26, 1996:
56885587Sobrien	an attempt to rationalize the (unsigned) char issue.  almost all
56985587Sobrien	instances of unsigned char have been removed; the handful of places
57085587Sobrien	in b.c where chars are used as table indices have been hand-crafted.
57185587Sobrien	added some latin-1 tests to the regression, but i'm not confident;
57285587Sobrien	none of my compilers seem to care much.  thanks to nelson beebe for
57385587Sobrien	pointing out some others that do care.
57485587Sobrien
57585587SobrienMay 2, 1996:
57685587Sobrien	removed all register declarations.
57785587Sobrien
57885587Sobrien	enhanced split(), as in gawk, etc:  split(s, a, "") splits s into
57985587Sobrien	a[1]...a[length(s)] with each character a single element.
58085587Sobrien
58185587Sobrien	made the same changes for field-splitting if FS is "".
58285587Sobrien
58385587Sobrien	added nextfile, as in gawk: causes immediate advance to next
58485587Sobrien	input file. (thanks to arnold robbins for inspiration and code).
58585587Sobrien
58685587Sobrien	small fixes to regexpr code:  can now handle []], [[], and
58785587Sobrien	variants;  [] is now a syntax error, rather than matching 
58885587Sobrien	everything;  [z-a] is now empty, not z.  far from complete
58985587Sobrien	or correct, however.  (thanks to jeffrey friedl for pointing out
59085587Sobrien	some awful behaviors.)
59185587Sobrien
59285587SobrienApr 29, 1996:
593146299Sru	replaced uchar by uschar everywhere; apparently some compilers
59485587Sobrien	usurp this name and this causes conflicts.
59585587Sobrien
59685587Sobrien	fixed call to time in run.c (bltin); arg is time_t *.
59785587Sobrien
59885587Sobrien	replaced horrible pointer/long punning in b.c by a legitimate
59985587Sobrien	union.  should be safer on 64-bit machines and cleaner everywhere.
60085587Sobrien	(thanks to nelson beebe for pointing out some of these problems.)
60185587Sobrien
60285587Sobrien	replaced nested comments by #if 0...#endif in run.c, lib.c.
60385587Sobrien
60485587Sobrien	removed getsval, setsval, execute macros from run.c and lib.c.
60585587Sobrien	machines are 100x faster than they were when these macros were
60685587Sobrien	first used.
60785587Sobrien
60885587Sobrien	revised filenames: awk.g.y => awkgram.y, awk.lx.l => awklex.l,
60985587Sobrien	y.tab.[ch] => ytab.[ch], lex.yy.c => lexyy.c, all in the aid of
61085587Sobrien	portability to nameless systems.
61185587Sobrien
61285587Sobrien	"make bundle" now includes yacc and lex output files for recipients
61385587Sobrien	who don't have yacc or lex.
61485587Sobrien
61585587SobrienAug 15, 1995:
61685587Sobrien	initialized Cells in setsymtab more carefully; some fields
61785587Sobrien	were not set.  (thanks to purify, all of whose complaints i
61885587Sobrien	think i now understand.)
61985587Sobrien
62085587Sobrien	fixed at least one error in gsub that looked at -1-th element
62185587Sobrien	of an array when substituting for a null match (e.g., $).
62285587Sobrien
62385587Sobrien	delete arrayname is now legal; it clears the elements but leaves
62485587Sobrien	the array, which may not be the right behavior.
62585587Sobrien
62685587Sobrien	modified makefile: my current make can't cope with the test used
62785587Sobrien	to avoid unnecessary yacc invocations.
62885587Sobrien
62985587SobrienJul 17, 1995:
63085587Sobrien	added dynamically growing strings to awk.lx.l and b.c
63185587Sobrien	to permit regular expressions to be much bigger.
63285587Sobrien	the state arrays can still overflow.
63385587Sobrien
63485587SobrienAug 24, 1994:
63585587Sobrien	detect duplicate arguments in function definitions (mdm).
63685587Sobrien
63785587SobrienMay 11, 1994:
63885587Sobrien	trivial fix to printf to limit string size in sub().
63985587Sobrien
64085587SobrienApr 22, 1994:
64185587Sobrien	fixed yet another subtle self-assignment problem:
64285587Sobrien	$1 = $2; $1 = $1 clobbered $1.
64385587Sobrien
64485587Sobrien	Regression tests now use private echo, to avoid quoting problems.
64585587Sobrien
64685587SobrienFeb 2, 1994:
64785587Sobrien	changed error() to print line number as %d, not %g.
64885587Sobrien
64985587SobrienJul 23, 1993:
65085587Sobrien	cosmetic changes: increased sizes of some arrays,
65185587Sobrien	reworded some error messages.
65285587Sobrien
65385587Sobrien	added CONVFMT as in posix (just replaced OFMT in getsval)
65485587Sobrien
65585587Sobrien	FILENAME is now "" until the first thing that causes a file
65685587Sobrien	to be opened.
65785587Sobrien
65885587SobrienNov 28, 1992:
65985587Sobrien	deleted yyunput and yyoutput from proto.h;
66085587Sobrien	different versions of lex give these different declarations.
66185587Sobrien
66285587SobrienMay 31, 1992:
66385587Sobrien	added -mr N and -mf N options: more record and fields.
66485587Sobrien	these really ought to adjust automatically.
66585587Sobrien
66685587Sobrien	cleaned up some error messages; "out of space" now means
66785587Sobrien	malloc returned NULL in all cases.
66885587Sobrien
66985587Sobrien	changed rehash so that if it runs out, it just returns;
67085587Sobrien	things will continue to run slow, but maybe a bit longer.
67185587Sobrien
67285587SobrienApr 24, 1992:
67385587Sobrien	remove redundant close of stdin when using -f -.
67485587Sobrien
67585587Sobrien	got rid of core dump with -d; awk -d just prints date.
67685587Sobrien
67785587SobrienApr 12, 1992:
67885587Sobrien	added explicit check for /dev/std(in,out,err) in redirection.
67985587Sobrien	unlike gawk, no /dev/fd/n yet.
68085587Sobrien
68185587Sobrien	added (file/pipe) builtin.  hard to test satisfactorily.
68285587Sobrien	not posix.
68385587Sobrien
68485587SobrienFeb 20, 1992:
68585587Sobrien	recompile after abortive changes;  should be unchanged.
68685587Sobrien
68785587SobrienDec 2, 1991:
68885587Sobrien	die-casting time:  converted to ansi C, installed that.
68985587Sobrien
69085587SobrienNov 30, 1991:
69185587Sobrien	fixed storage leak in freefa, failing to recover [N]CCL.
69285587Sobrien	thanks to Bill Jones (jones@cs.usask.ca)
69385587Sobrien
69485587SobrienNov 19, 1991:
69585587Sobrien	use RAND_MAX instead of literal in builtin().
69685587Sobrien
69785587SobrienNov 12, 1991:
69885587Sobrien	cranked up some fixed-size arrays in b.c, and added a test for
69985587Sobrien	overflow in penter.  thanks to mark larsen.
70085587Sobrien
70185587SobrienSep 24, 1991:
70285587Sobrien	increased buffer in gsub.  a very crude fix to a general problem.
70385587Sobrien	and again on Sep 26.
70485587Sobrien
70585587SobrienAug 18, 1991:
70685587Sobrien	enforce variable name syntax for commandline variables: has to
70785587Sobrien	start with letter or _.
70885587Sobrien
70985587SobrienJul 27, 1991:
71085587Sobrien	allow newline after ; in for statements.
71185587Sobrien
71285587SobrienJul 21, 1991:
71385587Sobrien	fixed so that in self-assignment like $1=$1, side effects
71485587Sobrien	like recomputing $0 take place.  (this is getting subtle.)
71585587Sobrien
71685587SobrienJun 30, 1991:
71785587Sobrien	better test for detecting too-long output record.
71885587Sobrien
71985587SobrienJun 2, 1991:
72085587Sobrien	better defense against very long printf strings.
72185587Sobrien	made break and continue illegal outside of loops.
72285587Sobrien
72385587SobrienMay 13, 1991:
72485587Sobrien	removed extra arg on gettemp, tempfree.  minor error message rewording.
72585587Sobrien
72685587SobrienMay 6, 1991:
72785587Sobrien	fixed silly bug in hex parsing in hexstr().
72885587Sobrien	removed an apparently unnecessary test in isnumber().
72985587Sobrien	warn about weird printf conversions.
73085587Sobrien	fixed unchecked array overwrite in relex().
73185587Sobrien
73285587Sobrien	changed for (i in array) to access elements in sorted order.
73385587Sobrien	then unchanged it -- it really does run slower in too many cases.
73485587Sobrien	left the code in place, commented out.
73585587Sobrien
73685587SobrienFeb 10, 1991:
73785587Sobrien	check error status on all writes, to avoid banging on full disks.
73885587Sobrien
73985587SobrienJan 28, 1991:
74085587Sobrien	awk -f - reads the program from stdin.
74185587Sobrien
74285587SobrienJan 11, 1991:
74385587Sobrien	failed to set numeric state on $0 in cmd|getline context in run.c.
74485587Sobrien
74585587SobrienNov 2, 1990:
74685587Sobrien	fixed sleazy test for integrality in getsval;  use modf.
74785587Sobrien
74885587SobrienOct 29, 1990:
74985587Sobrien	fixed sleazy buggy code in lib.c that looked (incorrectly) for
75085587Sobrien	too long input lines.
75185587Sobrien
75285587SobrienOct 14, 1990:
75385587Sobrien	fixed the bug on p. 198 in which it couldn't deduce that an
75485587Sobrien	argument was an array in some contexts.  replaced the error
75585587Sobrien	message in intest() by code that damn well makes it an array.
75685587Sobrien
75785587SobrienOct 8, 1990:
75885587Sobrien	fixed horrible bug:  types and values were not preserved in
75985587Sobrien	some kinds of self-assignment. (in assign().)
76085587Sobrien
76185587SobrienAug 24, 1990:
76285587Sobrien	changed NCHARS to 256 to handle 8-bit characters in strings
76385587Sobrien	presented to match(), etc.
76485587Sobrien
76585587SobrienJun 26, 1990:
76685587Sobrien	changed struct rrow (awk.h) to use long instead of int for lval,
76785587Sobrien	since cfoll() stores a pointer in it.  now works better when int's
76885587Sobrien	are smaller than pointers!
76985587Sobrien
77085587SobrienMay 6, 1990:
77185587Sobrien	AVA fixed the grammar so that ! is uniformly of the same precedence as
77285587Sobrien	unary + and -.  This renders illegal some constructs like !x=y, which
77385587Sobrien	now has to be parenthesized as !(x=y), and makes others work properly:
77485587Sobrien	!x+y is (!x)+y, and x!y is x !y, not two pattern-action statements.
77585587Sobrien	(These problems were pointed out by Bob Lenk of Posix.)
77685587Sobrien
77785587Sobrien	Added \x to regular expressions (already in strings).
77885587Sobrien	Limited octal to octal digits; \8 and \9 are not octal.
77985587Sobrien	Centralized the code for parsing escapes in regular expressions.
78085587Sobrien	Added a bunch of tests to T.re and T.sub to verify some of this.
78185587Sobrien
78285587SobrienFeb 9, 1990:
78385587Sobrien	fixed null pointer dereference bug in main.c:  -F[nothing].  sigh.
78485587Sobrien
78585587Sobrien	restored srand behavior:  it returns the current seed.
78685587Sobrien
78785587SobrienJan 18, 1990:
78885587Sobrien	srand now returns previous seed value (0 to start).
78985587Sobrien
79085587SobrienJan 5, 1990:
79185587Sobrien	fix potential problem in tran.c -- something was freed,
79285587Sobrien	then used in freesymtab.
79385587Sobrien
79485587SobrienOct 18, 1989:
79585587Sobrien	another try to get the max number of open files set with
79685587Sobrien	relatively machine-independent code.
79785587Sobrien
79885587Sobrien	small fix to input() in case of multiple reads after EOF.
79985587Sobrien
80085587SobrienOct 11, 1989:
80185587Sobrien	FILENAME is now defined in the BEGIN block -- too many old
80285587Sobrien	programs broke.
80385587Sobrien
80485587Sobrien	"-" means stdin in getline as well as on the commandline.
80585587Sobrien
80685587Sobrien	added a bunch of casts to the code to tell the truth about
80785587Sobrien	char * vs. unsigned char *, a right royal pain.  added a
80885587Sobrien	setlocale call to the front of main, though probably no one
80985587Sobrien	has it usefully implemented yet.
81085587Sobrien
81185587SobrienAug 24, 1989:
81285587Sobrien	removed redundant relational tests against nullnode if parse
81385587Sobrien	tree already had a relational at that point.
81485587Sobrien
81585587SobrienAug 11, 1989:
81685587Sobrien	fixed bug:  commandline variable assignment has to look like
81785587Sobrien	var=something.  (consider the man page for =, in file =.1)
81885587Sobrien
81985587Sobrien	changed number of arguments to functions to static arrays
82085587Sobrien	to avoid repeated malloc calls.
82185587Sobrien
82285587SobrienAug 2, 1989:
82385587Sobrien	restored -F (space) separator
82485587Sobrien
82585587SobrienJul 30, 1989:
82685587Sobrien	added -v x=1 y=2 ... for immediate commandline variable assignment;
82785587Sobrien	done before the BEGIN block for sure.  they have to precede the
82885587Sobrien	program if the program is on the commandline.
82985587Sobrien	Modified Aug 2 to require a separate -v for each assignment.
83085587Sobrien
83185587SobrienJul 10, 1989:
83285587Sobrien	fixed ref-thru-zero bug in environment code in tran.c
83385587Sobrien
83485587SobrienJun 23, 1989:
83585587Sobrien	add newline to usage message.
83685587Sobrien
83785587SobrienJun 14, 1989:
83885587Sobrien	added some missing ansi printf conversion letters: %i %X %E %G.
83985587Sobrien	no sensible meaning for h or L, so they may not do what one expects.
84085587Sobrien
84185587Sobrien	made %* conversions work.
84285587Sobrien
84385587Sobrien	changed x^y so that if n is a positive integer, it's done
84485587Sobrien	by explicit multiplication, thus achieving maximum accuracy.
84585587Sobrien	(this should be done by pow() but it seems not to be locally.)
84685587Sobrien	done to x ^= y as well.
84785587Sobrien
84885587SobrienJun 4, 1989:
84985587Sobrien	ENVIRON array contains environment: if shell variable V=thing,
85085587Sobrien		ENVIRON["V"] is "thing"
85185587Sobrien
85285587Sobrien	multiple -f arguments permitted.  error reporting is naive.
85385587Sobrien	(they were permitted before, but only the last was used.)
85485587Sobrien
85585587Sobrien	fixed a really stupid botch in the debugging macro dprintf
85685587Sobrien
85785587Sobrien	fixed order of evaluation of commandline assignments to match
85885587Sobrien	what the book claims:  an argument of the form x=e is evaluated
85985587Sobrien	at the time it would have been opened if it were a filename (p 63).
86085587Sobrien	this invalidates the suggested answer to ex 4-1 (p 195).
86185587Sobrien
86285587Sobrien	removed some code that permitted -F (space) fieldseparator,
86385587Sobrien	since it didn't quite work right anyway.  (restored aug 2)
86485587Sobrien
86585587SobrienApr 27, 1989:
86685587Sobrien	Line number now accumulated correctly for comment lines.
86785587Sobrien
86885587SobrienApr 26, 1989:
86985587Sobrien	Debugging output now includes a version date,
87085587Sobrien	if one compiles it into the source each time.
87185587Sobrien
87285587SobrienApr 9, 1989:
87385587Sobrien	Changed grammar to prohibit constants as 3rd arg of sub and gsub;
87485587Sobrien	prevents class of overwriting-a-constant errors.  (Last one?)
87585587Sobrien	This invalidates the "banana" example on page 43 of the book.
87685587Sobrien
87785587Sobrien	Added \a ("alert"), \v (vertical tab), \xhhh (hexadecimal),
87885587Sobrien	as in ANSI, for strings.  Rescinded the sloppiness that permitted
87985587Sobrien	non-octal digits in \ooo.  Warning:  not all compilers and libraries
88085587Sobrien	will be able to deal with \x correctly.
88185587Sobrien
88285587SobrienJan 9, 1989:
88385587Sobrien	Fixed bug that caused tempcell list to contain a duplicate.
88485587Sobrien	The fix is kludgy.
88585587Sobrien
88685587SobrienDec 17, 1988:
88785587Sobrien	Catches some more commandline errors in main.
88885587Sobrien	Removed redundant decl of modf in run.c (confuses some compilers).
88985587Sobrien	Warning:  there's no single declaration of malloc, etc., in awk.h
89085587Sobrien	that seems to satisfy all compilers.
89185587Sobrien
89285587SobrienDec 7, 1988:
89385587Sobrien	Added a bit of code to error printing to avoid printing nulls.
89485587Sobrien	(Not clear that it actually would.)
89585587Sobrien
89685587SobrienNov 27, 1988:
89785587Sobrien	With fear and trembling, modified the grammar to permit
89885587Sobrien	multiple pattern-action statements on one line without
89985587Sobrien	an explicit separator.  By definition, this capitulation
90085587Sobrien	to the ghost of ancient implementations remains undefined
90185587Sobrien	and thus subject to change without notice or apology.
90285587Sobrien	DO NOT COUNT ON IT.
90385587Sobrien
90485587SobrienOct 30, 1988:
90585587Sobrien	Fixed bug in call() that failed to recover storage.
90685587Sobrien
90785587Sobrien	A warning is now generated if there are more arguments
90885587Sobrien	in the call than in the definition (in lieu of fixing
90985587Sobrien	another storage leak).
91085587Sobrien
91185587SobrienOct 20, 1988:
91285587Sobrien	Fixed %c:  if expr is numeric, use numeric value;
91385587Sobrien	otherwise print 1st char of string value.  still
91485587Sobrien	doesn't work if the value is 0 -- won't print \0.
91585587Sobrien
91685587Sobrien	Added a few more checks for running out of malloc.
91785587Sobrien
91885587SobrienOct 12, 1988:
91985587Sobrien	Fixed bug in call() that freed local arrays twice.
92085587Sobrien
92185587Sobrien	Fixed to handle deletion of non-existent array right;
92285587Sobrien	complains about attempt to delete non-array element.
92385587Sobrien
92485587SobrienSep 30, 1988:
92585587Sobrien	Now guarantees to evaluate all arguments of built-in
92685587Sobrien	functions, as in C;  the appearance is that arguments
92785587Sobrien	are evaluated before the function is called.  Places
92885587Sobrien	affected are sub (gsub was ok), substr, printf, and
92985587Sobrien	all the built-in arithmetic functions in bltin().
93085587Sobrien	A warning is generated if a bltin() is called with
93185587Sobrien	the wrong number of arguments.
93285587Sobrien
93385587Sobrien	This requires changing makeprof on p167 of the book.
93485587Sobrien
93585587SobrienAug 23, 1988:
93685587Sobrien	setting FILENAME in BEGIN caused core dump, apparently
93785587Sobrien	because it was freeing space not allocated by malloc.
93885587Sobrien
93985587SobrienJuly 24, 1988:
94085587Sobrien	fixed egregious error in toupper/tolower functions.
94185587Sobrien	still subject to rescinding, however.
94285587Sobrien
94385587SobrienJuly 2, 1988:
94485587Sobrien	flush stdout before opening file or pipe
94585587Sobrien
94685587SobrienJuly 2, 1988:
94785587Sobrien	performance bug in b.c/cgoto(): not freeing some sets of states.
94885587Sobrien	partial fix only right now, and the number of states increased
94985587Sobrien	to make it less obvious.
95085587Sobrien
95185587SobrienJune 1, 1988:
95285587Sobrien	check error status on close
95385587Sobrien
95485587SobrienMay 28, 1988:
95585587Sobrien	srand returns seed value it's using.
95685587Sobrien	see 1/18/90
95785587Sobrien
95885587SobrienMay 22, 1988:
95985587Sobrien	Removed limit on depth of function calls.
96085587Sobrien
96185587SobrienMay 10, 1988:
96285587Sobrien	Fixed lib.c to permit _ in commandline variable names.
96385587Sobrien
96485587SobrienMar 25, 1988:
96585587Sobrien	main.c fixed to recognize -- as terminator of command-
96685587Sobrien	line options.  Illegal options flagged.
96785587Sobrien	Error reporting slightly cleaned up.
96885587Sobrien
96985587SobrienDec 2, 1987:
97085587Sobrien	Newer C compilers apply a strict scope rule to extern
97185587Sobrien	declarations within functions.  Two extern declarations in
97285587Sobrien	lib.c and tran.c have been moved to obviate this problem.
97385587Sobrien
97485587SobrienOct xx, 1987:
97585587Sobrien	Reluctantly added toupper and tolower functions.
97685587Sobrien	Subject to rescinding without notice.
97785587Sobrien
97885587SobrienSep 17, 1987:
97985587Sobrien	Error-message printer had printf(s) instead of
98085587Sobrien	printf("%s",s);  got core dumps when the message
98185587Sobrien	included a %.
98285587Sobrien
98385587SobrienSep 12, 1987:
98485587Sobrien	Very long printf strings caused core dump;
98585587Sobrien	fixed aprintf, asprintf, format to catch them.
98685587Sobrien	Can still get a core dump in printf itself.
98785587Sobrien
98885587Sobrien
989