dragonfly.git
7 weeks agovendor/awk: upgrade from 20220912 to 20240122 vendor/AWK
Aaron LI [Wed, 28 Feb 2024 01:11:54 +0000 (09:11 +0800)]
vendor/awk: upgrade from 20220912 to 20240122

This version is described in "The Awk Programming Language", Second
Edition, by Al Aho, Brian Kernighan, and Peter Weinberger
(Addison-Wesley, 2024, ISBN-13 978-0138269722, ISBN-10 0138269726).

Features:
- support UTF-8 input
- support CSV (comma-separated values) input

Fixes:
- see FIXES and FIXES.1e
- see commit history at: https://github.com/onetrueawk/awk/commits/master

17 months agovendor/awk: upgrade from 20200702 to 20220912
Antonio Huete Jimenez [Wed, 9 Nov 2022 08:42:35 +0000 (09:42 +0100)]
vendor/awk: upgrade from 20200702 to 20220912

Bugfixes and maintenance:

- Clean up xfree, remove redundant NULL check.
- Stop leaking tempcells from extra arguments in format.
- Fix leak of qstring result in setclvar.
- Fix leak of regex string representations.
- Fix memory leak in string assignment to built-ins.
- Eliminate file management memory leak.
- When closing, don't flush input streams
- Heap buffer overflow from PR #83 fixed in #121.

For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master

3 years agovendor/awk: upgrade from 20200612 to 20200702
Daniel Fojt [Fri, 3 Jul 2020 08:16:13 +0000 (10:16 +0200)]
vendor/awk: upgrade from 20200612 to 20200702

Bugfixes and maintenance:

- rename dprintf to DPRINTF and use C99 cpp variadic arguments
- fixed backslash not matching against [[:punct:]] (and other
  similar character classes)
- fixed concatenation regression
- fixed regression with changed SUBSEP in subscript

For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master

3 years agovendor/awk: upgrade from 20121220 to 20200612
Daniel Fojt [Wed, 24 Jun 2020 05:45:41 +0000 (07:45 +0200)]
vendor/awk: upgrade from 20121220 to 20200612

Summary of notable changes:

- fixed buffer overflow in error reporting
- OFS value used to rebuild the record was incorrect
- add POSIX standard %a and %A to supported formats
- decrementing NF did not change $0
- unary plus on a string constant returned the string
- avoid undefined behaviour when using ctype(3) functions in relex()
- make getline handle numeric strings
- added support for POSIX-standard interval expressions in regexps
- use of random(3) as the random number generator
- support POSIX-specified C-style escape sequences "\a" and "\v" in
  command line arguments and regular expressions
- fix various array / memory overruns
- import code from NetBSD awk that implements RS as a regular expression
- add an optimization for string concatenation
- fix a bug whereby a{0,3} could match four a's
- input/output errors on closing files are now fatal instead of mere
  warnings
- if POSIXLY_CORRECT is set in the environment, then sub and gsub use
  POSIX rules for multiple backslashes
- it's no longer necessary to use the -y flag to bison
- backslash continuation inside strings removes the newline
- avoid any spurious errors left over from previous calls

For details, see FIXES, or commit history at
https://github.com/onetrueawk/awk/commits/master

10 years agoUpdate awk from 20110810 to 20121220 on vendor branch
John Marino [Wed, 8 May 2013 23:40:12 +0000 (01:40 +0200)]
Update awk from 20110810 to 20121220 on vendor branch

12 years agoImport awk-20110810.
Sascha Wildner [Fri, 12 Aug 2011 21:07:23 +0000 (23:07 +0200)]
Import awk-20110810.

* /pat/, \n /pat/ {...} is now legal, though bad style to use.
* added checks to new -v code that permits -vnospace
* removed fixed limit on number of open files
* fixed day 1 bug that resurrected deleted elements of ARGV when
  used as filenames (in lib.c).
* minor type fiddles to make gcc -Wall -pedantic happier (but not
  totally so)
* split(s, a, //) now behaves the same as split(s, a, "")
* another fix to avoid core dump with delete(ARGV)

12 years agoImport awk-20110506.
Peter Avalos [Sat, 18 Jun 2011 01:05:21 +0000 (15:05 -1000)]
Import awk-20110506.

* added #ifdef for isblank (allows -ffoo as well as -f foo arguments).
* fixed a subtle (and i hope low-probability) overflow error in
fldbld, by adding space for one extra \0.
* changed srand() to return the previous seed

12 years agoDelete old versions of awk and unversion directory name.
Peter Avalos [Fri, 17 Jun 2011 23:05:07 +0000 (13:05 -1000)]
Delete old versions of awk and unversion directory name.

13 years agoImport of awk version 20100523
Stathis Kamperis [Mon, 16 Aug 2010 17:12:59 +0000 (20:12 +0300)]
Import of awk version 20100523

16 years agoImport latest awk sources.
Peter Avalos [Sun, 6 May 2007 16:59:11 +0000 (16:59 +0000)]
Import latest awk sources.

17 years agoImport of awk 20050424
Peter Avalos [Wed, 1 Nov 2006 21:20:57 +0000 (21:20 +0000)]
Import of awk 20050424

20 years agoImport of awk 20040207
Eirik Nygaard [Sat, 17 Apr 2004 19:41:31 +0000 (19:41 +0000)]
Import of awk 20040207