OpenBSD CVS

CVS log for src/usr.bin/awk/lex.c


[BACK] Up to [local] / src / usr.bin / awk

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Sat Nov 25 16:31:33 2023 UTC (5 months, 3 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, HEAD
Changes since 1.31: +10 -6 lines
Diff to previous 1.31 (colored)

Update awk to the Nov 24, 2023 version.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Sep 17 14:49:44 2023 UTC (8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.30: +25 -2 lines
Diff to previous 1.30 (colored)

Update to the One True Awk, 2nd edition (Sep 12, 2023).

This corresponds to the 2nd edition of "The AWK Programming Language"
and adds support for UTF-8 and comma-separated value inputs.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Sep 10 14:59:00 2023 UTC (8 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Update awk to Sep 6, 2023 version.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Sep 9 18:59:43 2023 UTC (8 months, 1 week ago) by millert
Branch: MAIN
Changes since 1.28: +21 -12 lines
Diff to previous 1.28 (colored)

Update awk to Dec 15, 2022 version.

Force hex escapes in strings to be no more than two characters, as
they already are in regular expressions. This brings internal
consistency, as well as consistency with gawk.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 1 15:21:28 2022 UTC (20 months, 2 weeks ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Update awk to Aug 30, 2022 version.
Various leaks and use-after-free issues plugged/fixed.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 9 20:00:11 2020 UTC (3 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.26: +10 -5 lines
Diff to previous 1.26 (colored)

Update awk to December 8, 2020 version.
Prevents strings beginning with "inf" or "nan" from being interpreted
as infinity or not-a-number respectively which still parsing "inf"
and "nan" (with or without a leading sign) correctly.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Aug 28 16:29:16 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

Implement mktime() function for compatibility with mawk and gawk.
This is the only missing time function compared to those two
implementations.  Doc changes OK jmc@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 30 17:45:44 2020 UTC (3 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Update awk to July 30, 2020 version.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 30 17:11:10 2020 UTC (3 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.23: +4 -2 lines
Diff to previous 1.23 (colored)

Improved handling of an unescaped '/' in a bracket expression.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jul 13 14:03:52 2020 UTC (3 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Cast to uschar when storing a char in an int that will be used as an index.
Fixed as crash reported by Jan Stary when the input char has the high
bit set and FS is a regex.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 23 16:54:40 2020 UTC (3 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.21: +5 -3 lines
Diff to previous 1.21 (colored)

When parsing a character class don't increment openclass for a literal '['.
This allows expressions like '/[[/[]/' to parse which are also
allowed by gawk.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jun 13 01:21:01 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.20: +4 -1 lines
Diff to previous 1.20 (colored)

Integrate the bsd-features branch from awk github.
Implements the gensub(), systime() and strftime() functions for
greater gawk compatibility.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jun 13 01:19:55 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.19: +22 -7 lines
Diff to previous 1.19 (colored)

POSIX doesn't permit an unescaped '/' in an extended regular expression.
Unlike upstream awk, ours has historically allowed unescaped '/'
inside a bracket expression for compatibility with other awk
implementations but the check was too simple-minded.  This improves
the matching to allow things like /[]/]/, /[^]// and '/[abc[:digit:]/@#]/'
To enable strict POSIX compliance, set POSIXLY_CORRECT.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 10 21:05:50 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.18: +8 -6 lines
Diff to previous 1.18 (colored)

Update awk to Feb 28, 2020 version.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jun 10 21:05:02 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.17: +9 -7 lines
Diff to previous 1.17 (colored)

Update awk to Jan 31, 2020 version.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 10 21:04:40 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.16: +6 -3 lines
Diff to previous 1.16 (colored)

Update awk to Jan 5, 2020 version.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 10 21:03:56 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

Update awk to Nov 10, 2019 version.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 10 21:03:36 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

Update awk to Oct 24, 2019 version.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 10 21:02:33 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.13: +21 -22 lines
Diff to previous 1.13 (colored)

Update awk to Sep 10, 2019 version.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 10 21:01:32 2020 UTC (3 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.12: +12 -8 lines
Diff to previous 1.12 (colored)

Update awk to Jan 25, 2019 version.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Sep 28 19:27:18 2011 UTC (12 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Update awk to Aug 10, 2011 version; naddy@ reports no ports problems
from the update.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 6 20:38:33 2008 UTC (15 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.10: +15 -21 lines
Diff to previous 1.10 (colored)

Update awk to version 20071023; OK deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Jun 4 14:04:42 2008 UTC (15 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.9: +7 -1 lines
Diff to previous 1.9 (colored)

Extend awk with bitwise operations. This is an extension to the awk
spec and documented as such, but comes in handy from time to time.
The prototypes make it compatible with a similar GNU awk extension.

ok millert@, enthusiasm from deraadt@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 16 02:10:18 2006 UTC (18 years, 1 month ago) by hugh
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.8: +7 -3 lines
Diff to previous 1.8 (colored)

Handle / inside []s properly.
OK by otto and millert.
Offered back to bell-labs.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 30 01:52:48 2004 UTC (19 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +8 -3 lines
Diff to previous 1.7 (colored)

Update to version 20041222; OK deraadt@

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 2 21:04:09 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.6: +5 -1 lines
Diff to previous 1.6 (colored)

protos

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 19 21:24:28 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.5: +20 -8 lines
Diff to previous 1.5 (colored)

Update to the One True Awk version 20021213

Revision 1.5 / (download) - annotate - [select for diffs], Sat Sep 8 00:12:40 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.4: +8 -6 lines
Diff to previous 1.4 (colored)

Update to latest version of the One True Awk.  See the FIXES file
for details.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Dec 8 23:09:45 1999 UTC (24 years, 5 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.3: +18 -17 lines
Diff to previous 1.3 (colored)

June 6, 1999 version of the "one true awk"
Most of the changes are to avoid using a static buffer for error messages.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 20 17:31:29 1999 UTC (25 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.2: +9 -12 lines
Diff to previous 1.2 (colored)

April 16, 1999 version of the "one true awk"--64-bit fixes and more.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 18 17:06:30 1999 UTC (25 years, 1 month ago) by millert
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

March 5, 1999 version of the "one true awk"

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 25 16:17:11 1997 UTC (26 years, 8 months ago) by kstailey
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2

August 1997 version of "the one true awk"

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.