History log of /freebsd-current/contrib/one-true-awk/maketab.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# eb690a05 14-May-2024 Warner Losh <imp@FreeBSD.org>

awk: Merge in bsd-feature branch of OTA from 20240422 (31bb33a32f71)

In the last 2nd edition import, I mistakenly grabbed from the 'main'
branch of upstream rather than the bsd-feature branch. This means that
we have a regression in awk from that point forward: all the
BSD-specific bit functions (and a few others) were dropped. This
restores it at the same level.

MFC After: 1 day
Sponsored by: Netflix


# 1023317a 04-May-2024 Warner Losh <imp@FreeBSD.org>

ota: Merge one true awk 20240422 (a3b68e649d2d)

Apr 22, 2024:
fixed regex engine gototab reallocation issue that was
introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
Fixed a scan bug in split in the case the separator is a single
character. thanks to Oguz Ismail for spotting the issue.

Mar 10, 2024:
fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf. thanks to github user caffe3 for spotting
the issue and providing a fix, and to Miguel Pineiro Jr.
for the alternative fix.
MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
thanks to Miguel Pineiro Jr.

Sponsored by: Netflix


# f32a6403 28-Feb-2024 Warner Losh <imp@FreeBSD.org>

Merge one true awk from 2024-01-22 for the Awk Second Edition support

This brings in Unicode support, CSV support and a number of bug fixes.
They are 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).

Sponsored by: Netflix


# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# 10ce5b99 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Reapply r301289 by pfg:

| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.

# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# 90518252 03-Jun-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

MFV r300961:
one-true-awk: replace 0 with NULL for pointers

Also remove a redundant semicolon.


# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# 1023317a 04-May-2024 Warner Losh <imp@FreeBSD.org>

ota: Merge one true awk 20240422 (a3b68e649d2d)

Apr 22, 2024:
fixed regex engine gototab reallocation issue that was
introduced during the Nov 24 rewrite. Thanks to Arnold Robbins.
Fixed a scan bug in split in the case the separator is a single
character. thanks to Oguz Ismail for spotting the issue.

Mar 10, 2024:
fixed use-after-free bug in fnematch due to adjbuf invalidating
the pointers to buf. thanks to github user caffe3 for spotting
the issue and providing a fix, and to Miguel Pineiro Jr.
for the alternative fix.
MAX_UTF_BYTES in fnematch has been replaced with awk_mb_cur_max.
thanks to Miguel Pineiro Jr.

Sponsored by: Netflix


# f32a6403 28-Feb-2024 Warner Losh <imp@FreeBSD.org>

Merge one true awk from 2024-01-22 for the Awk Second Edition support

This brings in Unicode support, CSV support and a number of bug fixes.
They are 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).

Sponsored by: Netflix


# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# 10ce5b99 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Reapply r301289 by pfg:

| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.

# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# 90518252 03-Jun-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

MFV r300961:
one-true-awk: replace 0 with NULL for pointers

Also remove a redundant semicolon.


# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# f32a6403 28-Feb-2024 Warner Losh <imp@FreeBSD.org>

Merge one true awk from 2024-01-22 for the Awk Second Edition support

This brings in Unicode support, CSV support and a number of bug fixes.
They are 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).

Sponsored by: Netflix


# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# 10ce5b99 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Reapply r301289 by pfg:

| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.

# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# 90518252 03-Jun-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

MFV r300961:
one-true-awk: replace 0 with NULL for pointers

Also remove a redundant semicolon.


# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# f39dd6a9 07-Jul-2021 Warner Losh <imp@FreeBSD.org>

one-true-awk: import 20210221 (1e4bc42c53a1) which fixes a number of bugs

Import the latest bsd-features branch of the one-true-awk upstream:

o Move to bison for $YACC
o Set close-on-exec flag for file and pipe redirects that aren't std*
o lots of little fixes to modernize ocde base
o free sval member before setting it
o fix a bug where a{0,3} could match aaaa
o pull in systime and strftime from NetBSD awk
o pull in fixes from {Net,Free,Open}BSD (normalized our code with them)
o add BSD extensions and, or, xor, compl, lsheift, rshift (mostly a nop)

Also revert a few of the trivial FreeBSD changes that were done slightly
differently in the upstreaming process. Also, our PR database may have
been mined by upstream for these fixes, and Mikolaj Golub may deserve
credit for some of the fixes in this update.

Suggested by: Mikolaj Golub <to.my.trociny@gmail.com>
PR: 143363,143365,143368,143369,143373,143375,214782
Sponsored by: Netflix


# 10ce5b99 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Reapply r301289 by pfg:

| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.

# b5253557 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Merge from upstream at 4189ef5d from https://github.com/onetrueawk/awk.git

Note: this backs out a number of changes we've made to awk because
they aren't upstream, but are on the vendor branch. Those will be
reapplied. svn makes it needlessly difficult to know which ones, but
at least r315426, r301289, and maybe r301691, though there may be
others too. None of these are critical, so bisecting through this
point is safe for all but awk regression tests :).


# 90518252 03-Jun-2016 Pedro F. Giffuni <pfg@FreeBSD.org>

MFV r300961:
one-true-awk: replace 0 with NULL for pointers

Also remove a redundant semicolon.


# 91217c1c 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# 6023075d 09-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Flatten out vendor tree.

# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe

# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.

# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

# 10ce5b99 02-Jun-2019 Warner Losh <imp@FreeBSD.org>

Reapply r301289 by pfg:

| MFV r300961: one-true-awk: replace 0 with NULL for pointers
| Also remove a redundant semicolon.
| Also had to rebase on upstream pull.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# f96c46c6 15-Jan-2010 Ruslan Ermilov <ru@FreeBSD.org>

Update to a 26-Nov-2009 release.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# addad6af 05-Jun-2007 Rong-En Fan <rafan@FreeBSD.org>

Vendor import of bwk's 01-May-2007 release.

Approved by: delphij (mentor)
Nodded by: ru
Tested by: make universe


# 813da98d 12-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

Vendor import of bwk's 29-Nov-2002 release.
Most significant update is the inclusion of our port's locale patches.


# 2a55deb1 27-Oct-2001 David E. O'Brien <obrien@FreeBSD.org>

Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.